[Top][All Lists]

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

Re: Future of installing GRUB to LVM volumes (and loop devices)

From: Sebastian Pipping
Subject: Re: Future of installing GRUB to LVM volumes (and loop devices)
Date: Tue, 12 May 2015 12:41:19 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.6.0

On 05/06/2015 07:16 PM, Andrei Borzenkov wrote:
> address@hidden:~/build/grub> findmnt /mnt
> /mnt   /dev/loop0p1 ext2   rw,relatime
> address@hidden:~/build/grub> sudo ./grub-probe -t fs /mnt
> ext2
> address@hidden:~/build/grub> sudo ./grub-probe -t partmap /mnt
> msdos
> address@hidden:~/build/grub> 
> address@hidden:~/build/grub> /usr/sbin/losetup --help
> ...
>  -P, --partscan                create a partitioned loop device
> ...

Thanks for introducing me to --partscan.  It's too young for Debian
wheezy, though.

>> Auto-detection of a filesystem of /dev/mapper/loop0p1 failed.
>> Try with --recheck.
>> If the problem persists please report this together with the output of
>> "/usr/sbin/grub-probe --device-map="/mnt/loop-root/boot/grub/"
>> --target=fs -v /mnt/loop-root/boot/grub" to <address@hidden>
>> 1
>> # mount | fgrep /mnt/loop-root
>> /dev/mapper/loop0p1 on /mnt/loop-root type ext4
> There is no feasible way to map this device back to contained device,
> short of scanning all maps, finding all partition labels on them and
> matching maps against labels.

Why not?

lsblk manages to detect that /dev/mapper/loop0p1 is a child of /dev/loop0:

# lsblk | fgrep loop | sed 's| \{23\}||'
loop0                 7:0    0   100M  0 loop
└─loop0p1 (dm-9)    254:9    0    96M  0 part  /mnt/loop-root

> Half working solution would be to assume that it is always child map.
> Or you can take shortcut and assume that /dev/mapper/XXXXpY is
> partition of /dev/mapper/XXX but you still will need to verify it.
> Patches are welcome.

I am still wondering: how come it was working in GRUB 2.00 but now
longer is?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]