chore(sb): use systemd kernel cmdline condition

This commit is contained in:
Lars Sjöström 2025-03-19 15:03:15 +01:00
parent 6819565d79
commit c748e17279
No known key found for this signature in database
4 changed files with 11 additions and 30 deletions
pkgs/image

View file

@ -22,7 +22,7 @@ runCommand pname {
env = {
# vfat options won't efi won't find the fs otherwise.
SYSTEMD_REPART_MKFS_OPTIONS_VFAT = "-S 512 -c";
SYSTEMD_REPART_MKFS_OPTIONS_EROFS = "--all-root"; # -zlz4hc,12 -C1048576 -Efragments,dedupe,ztailpacking";
SYSTEMD_REPART_MKFS_OPTIONS_EROFS = "--all-root -zlz4hc,12 -C1048576 -Efragments,dedupe,ztailpacking";
};
kernelCmdLine = "console=ttyS0 patos.secureboot=true";
@ -218,8 +218,8 @@ Type=root
Label=root-${version}
CopyBlocks=/$rootPart
UUID=$rootUuid
SizeMinBytes=256M
SizeMaxBytes=256M
SizeMinBytes=64M
SizeMaxBytes=64M
ReadOnly=1
EOF
@ -229,8 +229,6 @@ Type=root-verity
Label=verity-${version}
CopyBlocks=/$verityPart
UUID=$verityUuid
SizeMinBytes=10M
SizeMaxBytes=10M
ReadOnly=1
EOF