[OE-core] [meta-oe][PATCH] wic: Fix partition files UIDs on multi rootfs images
Tom Rini
trini at konsulko.com
Fri May 11 15:45:10 UTC 2018
On Fri, May 11, 2018 at 04:32:31PM +0200, Ricardo Ribalda Delgado wrote:
> When a wks makes reference to multiple rootfs, libspeudo data is not
> properly chossen. This results in filesystems with invalid UIDs for all
> the files.
>
> This can be tested with this .wks file:
> part / --source rootfs --fstype=ext4 --rootfs-dir=core-image-base
> part /mnt/data1/ --fstype=ext4 --source rootfs --rootfs-dir=core-image-minimal
> part /mnt/data2/ --fstype=ext4 --source rootfs --rootfs-dir=core-image-minimal
>
> And this script
>
> $bitbake core-image-minimal core-image-base syslinux
> $losetup --partscan --find --read-only --show test*direct
> $sudo mount /dev/loop0p1 /mnt
> $ls -lan /mnt
> otal 40
> drwxr-xr-x 18 0 0 1024 May 11 16:11 .
> drwxr-xr-x 25 0 0 4096 May 6 06:31 ..
> drwxr-xr-x 2 1000 1000 3072 May 11 15:51 bin
> drwxr-xr-x 2 1000 1000 1024 May 11 13:59 boot
> drwxr-xr-x 2 1000 1000 1024 May 11 13:59 dev
> drwxr-xr-x 25 1000 1000 3072 May 11 15:51 etc
> drwxr-xr-x 3 1000 1000 1024 May 11 13:59 home
> drwxr-xr-x 6 1000 1000 3072 May 11 15:51 lib
> drwx------ 2 0 0 12288 May 11 16:11 lost+found
> drwxr-xr-x 2 1000 1000 1024 May 11 13:59 media
> drwxr-xr-x 3 1000 1000 1024 May 11 15:50 mnt
> drwxr-xr-x 2 1000 1000 1024 May 11 13:59 proc
> drwxr-xr-x 2 1000 1000 1024 May 11 15:51 run
> drwxr-xr-x 2 1000 1000 3072 May 11 15:51 sbin
> drwxr-xr-x 2 1000 1000 1024 May 11 13:59 sys
> drwxr-xr-t 2 1000 1000 1024 May 11 13:59 tmp
> drwxr-xr-x 10 1000 1000 1024 May 11 14:54 usr
> drwxr-xr-x 8 1000 1000 1024 May 11 14:55 var
> $sudo losetup -d /dev/loop0
>
> Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda at gmail.com>
Reviewed-by: Tom Rini <trini at konsulko.com>
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20180511/bccb9d03/attachment-0002.sig>
More information about the Openembedded-core
mailing list