[Bug 959790] Re: grub-mkrelpath produce incorrect paths if /boot is a bind mount
Kasper Dupont
959790 at bugs.launchpad.net
Mon Mar 19 23:09:02 UTC 2012
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/959790
Title:
grub-mkrelpath produce incorrect paths if /boot is a bind mount
Status in “grub2” package in Ubuntu:
New
Bug description:
grub-mkconfig uses grub-mkrelpath to find out which paths to put in
grub.cfg, but in some cases grub-mkrelpath produce an incorrect
output.
If / and /boot are both mountpoints of different directories from the
same physical file system, grub-mkrelpath will use the wrong entry
from /proc/self/mountinfo. It should use the entry for /boot to
produce the correct path, but it picks the entry for / when given a
path under /boot.
For example if /proc/self/mountinfo contains:
20 1 8:1 /lucid / rw,relatime - ext4 ....
26 20 8:1 /boot /boot rw,relatime - ext4 ....
Then running "grub-mkrelpath /boot/grub" outputs /lucid/boot/grub, but
it should have output /boot/grub.
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: grub-common 1.99~rc1-13ubuntu3 [modified: usr/bin/grub-mkrelpath]
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic 2.6.38.2
Uname: Linux 2.6.38-8-generic i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Tue Mar 20 00:00:30 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: grub2
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/959790/+subscriptions
More information about the foundations-bugs
mailing list