From 94a4f11d80c1417eb6b4e5a53097dfca78bbec6f Mon Sep 17 00:00:00 2001 From: fzielcke-guest Date: Fri, 29 May 2009 06:57:27 +0000 Subject: [PATCH] change sed expression /(fd[0-9]\+)/d to /^(fd[0-9]\+)/d --- debian/grub-pc.postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/grub-pc.postinst b/debian/grub-pc.postinst index ae905cb30..f5192286a 100644 --- a/debian/grub-pc.postinst +++ b/debian/grub-pc.postinst @@ -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