| Message ID | 20261120072149.2725461-1-hsimeliere.opensource@witekio.com |
|---|---|
| State | Not Applicable, archived |
| Delegated to: | Yoann Congal |
| Headers | show |
| Series | [blacksail] image_types: keep the rootfs mtimes in ext2/3/4 images | expand |
Please ignore, this was meant for wrynose. Resent as "[wrynose][PATCH v2]".
On Fri Nov 20, 2026 at 8:30 AM CET, Hugo Simeliere via openembedded-core wrote:
> Please ignore, this was meant for wrynose. Resent as "[wrynose][PATCH v2]".
Noted. But
https://patchwork.yoctoproject.org/project/oe-core/patch/20261120072058.2724815-1-hsimeliere.opensource@witekio.com/
is indeed for blacksail, right?
On Fri Nov 20, 2026 at 8:33 AM CET, Yoann Congal wrote: > Noted. But > https://patchwork.yoctoproject.org/project/oe-core/patch/20261120072058.2724815-1-hsimeliere.opensource@witekio.com/ > is indeed for blacksail, right? Yes, that one is for blacksail. I also mistakenly resent it as "[blacksail][PATCH v2]" after my "please ignore" mail; it is identical to this v1, so please take either one and drop the other. Hugo
On Fri Nov 20, 2026 at 8:45 AM CET, hsimeliere.opensource wrote: > On Fri Nov 20, 2026 at 8:33 AM CET, Yoann Congal wrote: >> Noted. But >> https://patchwork.yoctoproject.org/project/oe-core/patch/20261120072058.2724815-1-hsimeliere.opensource@witekio.com/ >> is indeed for blacksail, right? > > Yes, that one is for blacksail. > > I also mistakenly resent it as "[blacksail][PATCH v2]" after my > "please ignore" mail; it is identical to this v1, so please take > either one and drop the other. Ok, noted (kept the v2). > > Hugo
diff --git a/meta/classes-recipe/image_types.bbclass b/meta/classes-recipe/image_types.bbclass index 326602d960..79b9ffb9dd 100644 --- a/meta/classes-recipe/image_types.bbclass +++ b/meta/classes-recipe/image_types.bbclass @@ -81,6 +81,12 @@ oe_mkext234fs () { extra_imagecmd=$@ fi + # mke2fs reads SOURCE_DATE_EPOCH itself and clamps every inode time to it, + # so give it the time the rootfs files carry, as oe_mksquashfs does. + if [ -n "$SOURCE_DATE_EPOCH" ]; then + export SOURCE_DATE_EPOCH=$(stat -c '%Y' ${IMAGE_ROOTFS}) + fi + # If generating an empty image the size of the sparse block should be large # enough to allocate an ext4 filesystem using 4096 bytes per inode, this is # about 60K, so dd needs a minimum count of 60, with bs=1024 (bytes per IO)