Bug#597084: grub-pc: /etc/kernel/postinst.d/zz-update-grub fails inside openvz chroot

Vladimir 'φ-coder/phcoder' Serbinenko phcoder at gmail.com
Mon Nov 8 16:33:41 UTC 2010


> It fails because of the way openvz guests look like (simfs as
> rootfs):
>
>   
What does linux expect as root= on command line in such config? How such
config can be detected and needed parameters figured out? Would it be
possible to have a root ssh access to such a system (since it's virtual
I guess you could copy one that contains no private data and wipe it
after we're done).
>   # /usr/sbin/grub-probe --target=device /
>   /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).
>
>   # cat /proc/self/mounts
>   none /proc proc rw 0 0
>   none /sys sysfs rw 0 0
>   simfs /dev simfs rw 0 0
>
> It works fine inside a KVM guest chroot which doesn't use the simfs
> as rootfs:
>
>   # /usr/sbin/grub-probe --target=device /
>   /dev/vda1
>
>   # cat /proc/self/mounts
>   rootfs / rootfs rw 0 0
>   none /sys sysfs rw,nosuid,nodev,noexec 0 0
>   none /proc proc rw,nosuid,nodev,noexec 0 0
>   udev /dev tmpfs rw,size=10240k,mode=755 0 0
>   none /dev/pts devpts rw,nosuid,noexec,mode=600,ptmxmode=000 0 0
>   /dev/disk/by-uuid/2bd80bd3-528c-431b-8b4a-47ecd1e27e24 / ext3 rw,errors=remount-ro,data=ordered 0 0
>   [...]
>
>   # readlink -f /dev/disk/by-uuid/2bd80bd3-528c-431b-8b4a-47ecd1e27e24
>   /dev/vda1
>
> I brought up a related issue on the grub mailinglist ~9 months ago:
> "execution of update-grub in chroots might fail" ->
> http://www.mail-archive.com/grub-devel@gnu.org/msg14328.html
>
> And related as well (but not 100% similar) is issue #538118.
> If you need further information, testing,... I'd be happy to help
> out.
>
> regards,
> -mika-
>
>
>
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel
>
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: id_dsa.pub
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20101108/578d6e31/attachment-0002.asc>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20101108/578d6e31/attachment-0002.pgp>


More information about the Pkg-grub-devel mailing list