[OE-core] [PATCH v5 0/7] #11662 - wic should mount /boot

Richard Purdie richard.purdie at linuxfoundation.org
Sat Jul 29 07:40:19 UTC 2017


On Fri, 2017-07-28 at 12:29 +0300, Ed Bartosh wrote:
> This patchset adds /boot to the /etc/fstab of root partition, making
> it mounted on boot. It also fixes reporting and testing issues
> caused by this change.
> 
> The patchset also fixes long standing bug: wic updated fstab
> inplace in rootfs directory. This causes other tasks working with
> rootfs directory to produce incorrect results or crash. This is
> fixed by hadlinking rootfs content to the temporary directory before
> updating fstab.
> 
> This approach caused do_image_tar to fail with the error "file
> changed as we read it"
> as hardlinking changes files ctime. In order to solve this we had to
> modify do_image_tar to ignore file changes.
> 
> Changes in v2: squashed patches by reviewer's request
> Changes in v3: unlink /etc/fstab in rootfs copy before updating it
> Changes in v4: used 'cp -a' instead of copyhardlinktree to avoid
>                do_image_tar failure due to changed ctime
> Changes in v5: back to hardlinking. ignored tar exit code 1.

This patchset had a couple of issues, the tar command change was a
bashism '[[' so I changed it to '['. The cp -a change also doesn't work
cross device so I resurrected one of the previous versions of that
patch that uses copyhardlinktree.

As I mentioned previously, if we can speed up that function, great. We
do need to handle cross device linkage though (and there may be an
optimisation to have wic use the same device for the temp rootfs?).

The updated series is going through tests again now.

Cheers,

Richard




More information about the Openembedded-core mailing list