summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-08-01 11:08:44 -0300
committerNicolás Reynolds <apoyosis@correo.inta.gob.ar>2011-08-01 11:08:44 -0300
commit74eb858cd962a3178724b83cefa8f43baaffa1ef (patch)
tree96c4f10d420ef28314bc6bfe566feb4c0dc263d4
parentd07f199e451e4b7172e59f32e44b3fb207f8504b (diff)
Applied patch to fix issue1222011.08.1
-rw-r--r--src/core/libs/lib-ui-interactive.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/libs/lib-ui-interactive.sh b/src/core/libs/lib-ui-interactive.sh
index fa366e4..9399e59 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -901,9 +901,9 @@ interactive_grub() {
# the partition with seperate /boot or to $PART_ROOT.
# So that bootdev is always our real partition with /boot....
bootdev=$(mount | grep $var_TARGET_DIR/boot | cut -d' ' -f 1)
- # check if bootdev or PART_ROOT is on a md raid array
+ # check if PART_ROOT (or bootdev, if it is a blockdevice) is on a md raid array
# This dialog is only shown when we detect / or /boot on a raid device.
- if device_is_raid $bootdev || device_is_raid $PART_ROOT; then
+ if device_is_raid $PART_ROOT || ( [ -n "$bootdev" ] && device_is_raid "$bootdev" ); then
ask_yesno "Do you have your system installed on software raid?\nAnswer 'YES' to install grub to another hard disk." no
if [ $? -eq 0 ]; then
onraid=true