[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#681227: [PATCH] Allow bootdev to be "dummy"



The workaround for 681227 prevents grub-installer from trying to
install to devices that don't exist.  This breaks installations on
systems that use grub-efi or grub-yeeloong, since they set the device
to "dummy".  This patch fixes the workaround to allow this value.
---
 grub-installer |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grub-installer b/grub-installer
index b370bf7..5d9fd77 100755
--- a/grub-installer
+++ b/grub-installer
@@ -652,7 +652,7 @@ if [ -z "$frdisk" ]; then
 	bootdevs="$bootdev"
 	for bootdev in $bootdevs; do
 		# workaround for #681227
-		if [ ! -b $bootdev ]; then
+		if [ ! -b $bootdev -a $bootdev != dummy ]; then
 			continue
 		fi
 		grub_install_params=
-- 
1.7.10.4


Reply to: