Comment 0 for bug 700910

Revision history for this message
Mario Limonciello (superm1) wrote :

Binary package hint: grub2

version: 1.99~20110106-1ubuntu1

I'm attempting to install GRUB2 to the same device that contains AUFS. Eg the entire ISO image is placed on a partition, and i'm trying to install GRUB to that same partition while booted into an environment that has that AUFS image loaded.

Here's what the mount layout looks like:
---------------------------
# mount
aufs on / type aufs (rw)
none on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
/dev/sda2 on /cdrom type vfat (rw,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 on /rofs type squashfs (ro,noatime)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)

---------------------------
Here's the GRUB install command I am using:
---------------------------
# sudo grub-install --force --root-directory=/cdrom /dev/sda2
/usr/sbin/grub-probe: error: cannot stat `aufs'.
Auto-detection of a filesystem of aufs failed.
Please report this together with the output of "/usr/sbin/grub-probe --device-map="/cdrom/boot/grub/device.map" --target=fs -v /cdrom/boot/grub" to <email address hidden>

---------------------------
Here's a rather simple GRUB probe line that is failing. It should return /dev/sda2 (as that's where /cdrom is actually mounted)
---------------------------
# grub-probe --verbose --target=device /cdrom/boot/grub/
aufs

---------------------------
Here's the GRUB probe that grub-install requested in bugs
---------------------------
# /usr/sbin/grub-probe --device-map="/cdrom/boot/grub/device.map" --target=fs -v /cdrom/boot/grub
/usr/sbin/grub-probe: info: scanning hd0 for LVM.
/usr/sbin/grub-probe: info: scanning hd0 for LVM.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for aufs. Check your device.map.

---------------------------
This seems to be a recent occurrence, but I don't have an exact GRUB version that the regression started at this time.