rpi: make example image support Y2038

Message ID 20220421173134.13686-1-henning.schild@siemens.com
State Accepted, archived
Headers show
Series rpi: make example image support Y2038 | expand

Commit Message

Henning Schild April 21, 2022, 9:31 a.m. UTC
In the build we actually receive a warning
WARNING: mc:rpi-arm-bullseye:isar-image-base-1.0-r0 do_wic_image:
WARNING: The ext2 filesystem mounted at / has no Y2038 support.

This commit switches over to ext4 and appends the mke2fs args we need to
handle y2038, with it the warning is gone. And people that might take
that wks will not see a bad example.

Tested on a "Raspberry Pi 3 Model B Rev 1.2"

Signed-off-by: Henning Schild <henning.schild@siemens.com>
---
 meta-isar/scripts/lib/wic/canned-wks/rpi-sdimg.wks | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Anton Mikanovich May 5, 2022, 3:45 a.m. UTC | #1
21.04.2022 20:31, Henning Schild wrote:
> In the build we actually receive a warning
> WARNING: mc:rpi-arm-bullseye:isar-image-base-1.0-r0 do_wic_image:
> WARNING: The ext2 filesystem mounted at / has no Y2038 support.
>
> This commit switches over to ext4 and appends the mke2fs args we need to
> handle y2038, with it the warning is gone. And people that might take
> that wks will not see a bad example.
>
> Tested on a "Raspberry Pi 3 Model B Rev 1.2"
>
> Signed-off-by: Henning Schild <henning.schild@siemens.com>

Applied to next, thanks.

Patch

diff --git a/meta-isar/scripts/lib/wic/canned-wks/rpi-sdimg.wks b/meta-isar/scripts/lib/wic/canned-wks/rpi-sdimg.wks
index c788213b2a4d..e5a3668b8f26 100644
--- a/meta-isar/scripts/lib/wic/canned-wks/rpi-sdimg.wks
+++ b/meta-isar/scripts/lib/wic/canned-wks/rpi-sdimg.wks
@@ -1,5 +1,5 @@ 
 part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --size 10
 
-part / --source rootfs --ondisk mmcblk0 --fstype=ext2 --label root --align 4096 --exclude-path=boot
+part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --mkfs-extraopts "-T default" --label root --align 4096 --exclude-path=boot
 
 bootloader