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