Re: [yocto][meta-rockchip][PATCH] rockchip.wks: use uuid for /boot during fstab-update
On Fri 2021-10-01 @ 03:20:35 PM, Markus Volk wrote: > Since the recent patch to switch to UUIDs [0aa5e600: "use uuid > instead of hard-coding root device"] wic fstab-update is not able > to get the correct value for the used device anymore and falls to > the default 'sda'. Thus wrong /dev/sda entries are generated in fstab. > > For partitions that should be updated automatically this can be avoided > by either generate entries using uuid or label. > > Signed-off-by: MarkusVolk > --- > wic/rockchip.wks | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) I tweaked the patch so that the fields lined up vertically, but otherwise… Applied to meta-rockchip, master. Thanks! -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54968): https://lists.yoctoproject.org/g/yocto/message/54968 Mute This Topic: https://lists.yoctoproject.org/mt/85999141/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[yocto][meta-rockchip][PATCH] rockchip.wks: use uuid for /boot during fstab-update
Since the recent patch to switch to UUIDs [0aa5e600: "use uuid instead of hard-coding root device"] wic fstab-update is not able to get the correct value for the used device anymore and falls to the default 'sda'. Thus wrong /dev/sda entries are generated in fstab. For partitions that should be updated automatically this can be avoided by either generate entries using uuid or label. Signed-off-by: MarkusVolk --- wic/rockchip.wks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wic/rockchip.wks b/wic/rockchip.wks index 5ee276b..bd36ab0 100644 --- a/wic/rockchip.wks +++ b/wic/rockchip.wks @@ -20,7 +20,7 @@ part reserved1 --offset 4032 --fixed-size 64K part reserved2 --offset 4096 --fixed-size 4096K part loader2--offset 8192 --fixed-size 4096K--source rawcopy --sourceparams="file=u-boot.${UBOOT_SUFFIX}" part atf--offset 12288 --fixed-size 4096K -part /boot --offset 16384 --size 114688K --active --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot" +part /boot --offset 16384 --size 114688K --active --source bootimg-partition --fstype=vfat --label boot --sourceparams="loader=u-boot" --use-uuid part /--source rootfs --fstype=ext4 --label root --use-uuid bootloader --ptable gpt --append="console=tty1 console=${RK_CONSOLE_DEVICE},${RK_CONSOLE_BAUD}n8 rw rootfstype=ext4 init=/sbin/init" -- 2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#54926): https://lists.yoctoproject.org/g/yocto/message/54926 Mute This Topic: https://lists.yoctoproject.org/mt/85999141/21656 Group Owner: yocto+ow...@lists.yoctoproject.org Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-