diff options
Diffstat (limited to 'meta/recipes-core/initrdscripts/files/init-install-efi.sh')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install-efi.sh | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index d58826a240..f564f4e2d6 100644 --- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh +++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh | |||
@@ -78,17 +78,23 @@ for hdname in $hdnamelist; do | |||
78 | cat /sys/block/$hdname/device/uevent | 78 | cat /sys/block/$hdname/device/uevent |
79 | fi | 79 | fi |
80 | echo | 80 | echo |
81 | # Get user choice | 81 | done |
82 | while true; do | 82 | |
83 | echo -n "Do you want to install this image there? [y/n] " | 83 | # Get user choice |
84 | read answer | 84 | while true; do |
85 | if [ "$answer" = "y" -o "$answer" = "n" ]; then | 85 | echo "Please select an install target or press n to exit ($hdnamelist ): " |
86 | read answer | ||
87 | if [ "$answer" = "n" ]; then | ||
88 | echo "Installation manually aborted." | ||
89 | exit 1 | ||
90 | fi | ||
91 | for hdname in $hdnamelist; do | ||
92 | if [ "$answer" = "$hdname" ]; then | ||
93 | TARGET_DEVICE_NAME=$answer | ||
86 | break | 94 | break |
87 | fi | 95 | fi |
88 | echo "Please answer y or n" | ||
89 | done | 96 | done |
90 | if [ "$answer" = "y" ]; then | 97 | if [ -n "$TARGET_DEVICE_NAME" ]; then |
91 | TARGET_DEVICE_NAME=$hdname | ||
92 | break | 98 | break |
93 | fi | 99 | fi |
94 | done | 100 | done |