]> code.ossystems Code Review - openembedded-core.git/commit
wic: Optimise fstab modification for ext2/3/4 and msdos partitions
authorPaul Barker <pbarker@konsulko.com>
Tue, 19 Jan 2021 16:26:10 +0000 (16:26 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 20 Jan 2021 22:46:11 +0000 (22:46 +0000)
commit5fb8ae0e9159597d7eaa9307a3a8543800bf9405
tree2d55b6dc0d77d00c3551fbddc87eaca7053c11a6
parentce682a73b7447652f898ce1d1d0416a456df5416
wic: Optimise fstab modification for ext2/3/4 and msdos partitions

The fix for [Yocto #13994] required the rootfs directory to be copied
(using hardlinks if possible) when modifying the fstab file under wic.

We can optimise this copy away for filesystems where we have the tools
to modify the contents of the partition image after it is created. For
ext2/3/4 filesystems we have the debugfs tool and for msdos/vfat
filesystems we have the mcopy tool. So for any of these filesystems we
skip the modification of the fstab file in the rootfs directory (and
skip the associated copy unless it is otherwise necessary) and update
the contents of fstab directly in the partition image.

Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/partition.py
scripts/lib/wic/plugins/source/rootfs.py