Re: [OE-core] [PATCH] classes/image_types_wic.bbclass: fix racing risk on rootfs

2020-05-19 Thread hongxu
On 5/19/20 6:19 PM, Richard Purdie wrote: On Tue, 2020-05-19 at 00:00 +0800, hongxu wrote: Since wic image creation will temporarily update rootfs/etc/fstab to add UUID (*temporarily* means rootfs/etc/fstab will be recovered after wic image creation), there is a potential racing risk with other

Re: [OE-core] [PATCH] classes/image_types_wic.bbclass: fix racing risk on rootfs

2020-05-19 Thread Richard Purdie
On Tue, 2020-05-19 at 00:00 +0800, hongxu wrote: > Since wic image creation will temporarily update rootfs/etc/fstab > to add UUID (*temporarily* means rootfs/etc/fstab will be recovered > after wic image creation), there is a potential racing risk with other > image creation (such as tar, ext) >

[OE-core] [PATCH] classes/image_types_wic.bbclass: fix racing risk on rootfs

2020-05-18 Thread hongxu
Since wic image creation will temporarily update rootfs/etc/fstab to add UUID (*temporarily* means rootfs/etc/fstab will be recovered after wic image creation), there is a potential racing risk with other image creation (such as tar, ext) Such as UUID was unexpected in tar.bz2's fstab: $ cat

Re: [OE-core] [PATCH] classes/image_types_wic.bbclass: fix racing risk on rootfs

2019-10-28 Thread Ross Burton
On 28/10/2019 16:09, Hongxu Jia wrote: Since wic image creation will temporarily update rootfs/etc/fstab (*temporarily* means the fstab will be recovered after wic image creation), there is still racing risk during the temporarily time for other image creation (such as tar, ext) Could this be

[OE-core] [PATCH] classes/image_types_wic.bbclass: fix racing risk on rootfs

2019-10-28 Thread Hongxu Jia
Since wic image creation will temporarily update rootfs/etc/fstab (*temporarily* means the fstab will be recovered after wic image creation), there is still racing risk during the temporarily time for other image creation (such as tar, ext) Make a copy of rootfs(as rootfs_wic), and create wic