grub-installer fails when /boot is bindmounted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Wubi |
Fix Released
|
Medium
|
Unassigned | ||
grub-installer (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: grub-installer
Grubinstaller fails when /boot is bindmounted as is the case in https:/
=== modified file 'grub-installer'
--- grub-installer 2007-12-20 11:59:33 +0000
+++ grub-installer 2008-01-10 00:59:40 +0000
@@ -273,9 +273,12 @@
rootfs=$(findfs /)
bootfs=$(findfs /boot)
+bootfstype=
+if [ -d "$bootfs" ] && [ "$bootfstype" = "none" ]; then
+ bootfs=$rootfs
+ bootfstype=
+fi
[ -n "$bootfs" ] || bootfs="$rootfs"
-
-bootfstype=
[ -n "$bootfstype" ] || bootfstype=
case $ARCH in
@@ -292,18 +295,21 @@
sed 's:\(/dev/
case $prefix in
- /dev/md)
- disc_offered_
- ;;
- /dev/mapper)
- disc_offered_
- ;;
- /dev/[hs]
- disc_offered_
- ;;
- *)
- disc_offered_
- ;;
+ /dev/loop)
+ disc_offered_
+ ;;
+ /dev/md)
+ disc_offered_
+ ;;
+ /dev/mapper)
+ disc_offered_
+ ;;
+ /dev/[hs]
+ disc_offered_
+ ;;
+ *)
+ disc_offered_
+ ;;
esac
disc_offered=
Related branches
Changed in wubi: | |
status: | In Progress → Fix Committed |
Changed in wubi: | |
status: | Fix Committed → Fix Released |
Fix submitted upstream