change sed expression /(fd[0-9]\+)/d to /^(fd[0-9]\+)/d

This commit is contained in:
fzielcke-guest 2009-05-29 06:57:27 +00:00
parent 646ebc4047
commit 94a4f11d80

View File

@ -14,7 +14,7 @@ case "$1" in
if [ ! -z "$2" ] && test -e /boot/grub/core.img ; then
# If we're upgrading _and_ chainload-install is likely to have happened
db_subst grub-pc/install_devices CHOICES `sed -e "/(fd[0-9]\+)/d;s,.*\t,,g" /boot/grub/device.map | tr '\n' ',' | sed -e 's/,$//g;s/,/, /g'`
db_subst grub-pc/install_devices CHOICES `sed -e "/^(fd[0-9]\+)/d;s,.*\t,,g" /boot/grub/device.map | tr '\n' ',' | sed -e 's/,$//g;s/,/, /g'`
db_input high grub-pc/install_devices || true
db_go
db_get grub-pc/install_devices