[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: search --label not working on mmcblk
From: |
Andrei Borzenkov |
Subject: |
Re: search --label not working on mmcblk |
Date: |
Tue, 26 Oct 2021 18:02:55 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 |
On 26.10.2021 12:38, Matthias Schoepfer wrote:
> Hi!
>
> I have quite a funny behavior that I am not able to grasp. I am using
> grub on an "embedded" device to switch between two root file system
> partitions (A / B update schema). To set / read the partition, I use the
> grubenv. This part works as a charm.
>
> Now I switched to eMMC as storage. I gave it a gpt partition table and
> besides a EFI parition, I have the root partition labeled rootfs1 and
> rootfs2. Since the numbers of the devices may be different when for
> example a USB drive is attached, I am using the PARTLABELs for getting
> the root device.
>
> While
>
> search --label rootfs1
>
It searches for filesystem label, not for partition label.
> finds the rootfs1, it does not find
>
> search --label rootfs2
>
> even if I give the correct hints. When I boot "manually" with
> (hd3,gpt3), everything works and the linux kernel is finding the root
> partition given as
>
> root=PARTLABEL=rootfs2 rootwait
>
> What can I do to debug this?!
>
Show output of blkid after booting Linux with both devices connected.
> I am using grub2 as shipped with yocto hardknott:
>
> https://alpha.gnu.org/gnu/grub/grub-2.06~rc1.tar.xz
>
> Modules build in: boot linux ext2 fat serial part_msdos part_gpt normal
> efi_gop iso9660 search loadenv test acpi squash4 all_video multiboot2
>
> Any help how to tackle this is appreciated.
>
> Regards,
>
> Matthias
>
>
>