* wic/wks boot using labels instead of partitions
@ 2022-09-16 21:41 Mark Hatle
2022-09-17 6:20 ` [OE-core] " Markus Volk
0 siblings, 1 reply; 3+ messages in thread
From: Mark Hatle @ 2022-09-16 21:41 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
Is there a way to tell the _generated_ fstab to use labels to boot and not hard
coded partitions?
If I remove the --ondisk <device> attribute from the wks file it defaults to
/dev/sda.
What I tried was:
part /boot --source bootimg-partition --fstype=vfat --label boot --active
--align 4 size 16
part / --source rootfs --fstype=ext4 --label root --align 4
If I manually add --no-fstab-update to the wks entries and add the following to
the system default fstab:
LABEL=boot /boot vfat default 0 2
This works. But I'd like to automate it within the wks.
(Alternatively I could use uuid instead of label booting, but either case, I
need to only boot with the uuid or label -- not the partition as the location of
the disk can change.)
--Mark
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core] wic/wks boot using labels instead of partitions
2022-09-16 21:41 wic/wks boot using labels instead of partitions Mark Hatle
@ 2022-09-17 6:20 ` Markus Volk
2022-09-17 14:35 ` Mark Hatle
0 siblings, 1 reply; 3+ messages in thread
From: Markus Volk @ 2022-09-17 6:20 UTC (permalink / raw)
To: Mark Hatle; +Cc: Patches and discussions about the oe-core layer
[-- Attachment #1: Type: text/plain, Size: 1473 bytes --]
--use-label
This should do it.
Am Fr, 16. Sep 2022 um 16:41:48 -0500 schrieb Mark Hatle
<mark.hatle@kernel.crashing.org>:
> Is there a way to tell the _generated_ fstab to use labels to boot
> and not hard coded partitions?
>
> If I remove the --ondisk <device> attribute from the wks file it
> defaults to /dev/sda.
>
> What I tried was:
>
> part /boot --source bootimg-partition --fstype=vfat --label boot
> --active --align 4 size 16
> part / --source rootfs --fstype=ext4 --label root --align 4
>
>
> If I manually add --no-fstab-update to the wks entries and add the
> following to the system default fstab:
>
> LABEL=boot /boot vfat default 0 2
>
>
> This works. But I'd like to automate it within the wks.
>
> (Alternatively I could use uuid instead of label booting, but either
> case, I need to only boot with the uuid or label -- not the partition
> as the location of the disk can change.)
>
> --Mark
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#170823):
> <https://lists.openembedded.org/g/openembedded-core/message/170823>
> Mute This Topic: <https://lists.openembedded.org/mt/93732744/3618223>
> Group Owner: openembedded-core+owner@lists.openembedded.org
> <mailto:openembedded-core+owner@lists.openembedded.org>
> Unsubscribe:
> <https://lists.openembedded.org/g/openembedded-core/unsub>
> [f_l_k@t-online.de <mailto:f_l_k@t-online.de>]
> -=-=-=-=-=-=-=-=-=-=-=-
>
[-- Attachment #2: Type: text/html, Size: 1911 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [OE-core] wic/wks boot using labels instead of partitions
2022-09-17 6:20 ` [OE-core] " Markus Volk
@ 2022-09-17 14:35 ` Mark Hatle
0 siblings, 0 replies; 3+ messages in thread
From: Mark Hatle @ 2022-09-17 14:35 UTC (permalink / raw)
To: Markus Volk; +Cc: Patches and discussions about the oe-core layer
Thank you, this worked perfectly.
On 9/17/22 1:20 AM, Markus Volk wrote:
> --use-label
>
> This should do it.
>
> Am Fr, 16. Sep 2022 um 16:41:48 -0500 schrieb Mark Hatle
> <mark.hatle@kernel.crashing.org>:
>> Is there a way to tell the _generated_ fstab to use labels to boot and not
>> hard coded partitions? If I remove the --ondisk <device> attribute from the
>> wks file it defaults to /dev/sda. What I tried was: part /boot --source
>> bootimg-partition --fstype=vfat --label boot --active --align 4 size 16 part /
>> --source rootfs --fstype=ext4 --label root --align 4 If I manually add
>> --no-fstab-update to the wks entries and add the following to the system
>> default fstab: LABEL=boot /boot vfat default 0 2 This works. But I'd like to
>> automate it within the wks. (Alternatively I could use uuid instead of label
>> booting, but either case, I need to only boot with the uuid or label -- not
>> the partition as the location of the disk can change.) --Mark
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#170825): https://lists.openembedded.org/g/openembedded-core/message/170825
> Mute This Topic: https://lists.openembedded.org/mt/93732744/3616948
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [mark.hatle@kernel.crashing.org]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-09-17 14:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-16 21:41 wic/wks boot using labels instead of partitions Mark Hatle
2022-09-17 6:20 ` [OE-core] " Markus Volk
2022-09-17 14:35 ` Mark Hatle
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.