summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorDieter Plaetinck <dieter@plaetinck.be>2009-07-28 22:27:48 +0200
committerDieter Plaetinck <dieter@plaetinck.be>2009-07-28 22:27:48 +0200
commit6abf8e0fddc7b47ae4a709a67ebdef8e10a11275 (patch)
tree10ad664bed3721f7c22b60da647869d91f8eee75 /src/core
parentc8c47a079a8d90aa35877b79c2f9c2b296f875f3 (diff)
fix for incorrect crypt device
Diffstat (limited to 'src/core')
-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 95f0af4..d1d7a21 100644
--- a/src/core/libs/lib-ui-interactive.sh
+++ b/src/core/libs/lib-ui-interactive.sh
@@ -1078,8 +1078,8 @@ generate_grub_menulst() {
debug 'FS' 'Grub kernel line? Found / on lvm on dm_crypt on raw'
lv_device=`echo "$ANSWER_DEVICES" | sed -n '1p' | cut -d ' ' -f1`
vg_device=`echo "$ANSWER_DEVICES" | sed -n '2p' | cut -d ' ' -f1`
- crypt_device=`echo "$ANSWER_DEVICES" | sed -n '4p' | cut -d ' ' -f1`
- kernel="kernel $subdir/vmlinuz26 root=$lv_device cryptdevice=$crypt_device:`basename $vg_device` ro"
+ raw_device=`echo "$ANSWER_DEVICES" | sed -n '5p' | cut -d ' ' -f1`
+ kernel="kernel $subdir/vmlinuz26 root=$lv_device cryptdevice=$raw_device:`basename $vg_device` ro"
elif echo "$ANSWER_DEVICES" | sed -n '1p' | grep -q 'dm_crypt$' && echo "$ANSWER_DEVICES" | sed -n '2p' | grep -q 'lvm-lv$' && echo "$ANSWER_DEVICES" | sed -n '5p' | grep -q 'raw$'
then
debug 'FS' 'Grub kernel line? Found / on dm_crypt on lvm on raw'