diff --git a/debian/changelog b/debian/changelog index e8da1e4c9..70f4de781 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +grub2 (1.99~20101124-2) UNRELEASED; urgency=low + + * Fix comma-separation in handling of grub-pc/install_devices. + + -- Colin Watson Fri, 26 Nov 2010 12:23:06 +0000 + grub2 (1.99~20101124-1) experimental; urgency=low * New Bazaar snapshot (command priorities, build fixes, grub-mkdevicemap diff --git a/debian/postinst.in b/debian/postinst.in index 2bead169e..ebef5555d 100644 --- a/debian/postinst.in +++ b/debian/postinst.in @@ -387,7 +387,7 @@ case "$1" in test "$(uname -s)" = Linux; then # Migrate to new by-id naming scheme. db_get grub-pc/install_devices - old_devices="$RET" + old_devices="$(echo "$RET" | sed 's/, / /g')" new_devices= # Common-case optimisation: if the list of devices is # identical to the LHS of grub-mkdevicemap's output, then @@ -443,7 +443,7 @@ case "$1" in db_get grub-pc/install_devices valid=1 for device in $RET; do - if [ ! -e "$device" ]; then + if [ ! -e "${device%,}" ]; then valid=0 break fi @@ -500,7 +500,7 @@ case "$1" in db_go db_get "$question" failed_devices= - for i in `echo $RET | sed -e 's/,/ /g'` ; do + for i in `echo $RET | sed -e 's/, / /g'` ; do real_device="$(readlink -f "$i")" if grub-install --force --no-floppy $real_device ; then # We just installed GRUB 2; then also generate grub.cfg.