chore: more clean up

This commit is contained in:
Lars Sjöström 2025-03-04 14:20:13 +01:00
parent 529061df5e
commit e5367bac84
No known key found for this signature in database
2 changed files with 16 additions and 12 deletions
pkgs/rootfs

View file

@ -46,6 +46,7 @@ ExecStart=
ExecStart=-/sbin/getty -L %I 115200 vt100
EOF
# Configure systemd-repart
cat <<EOF > $out/etc/repart.d/10-esp.conf
[Partition]
Type=esp
@ -73,7 +74,7 @@ SplitName=-
EOF
# as rootfs is read-only we need to configure the fstab and cryptsetup generators to look
# for config under /run (which are generated by systemd-repart)
# for config under /run (which are generated by systemd-repart in initrd)
rm -f $out/etc/systemd/system.conf
cat <<EOF > $out/etc/systemd/system.conf
[Manager]
@ -81,6 +82,7 @@ DefaultEnvironment=PATH=/bin:/sbin:/usr/bin
ManagerEnvironment=PATH=/bin:/sbin:/usr/bin SYSTEMD_CRYPTTAB=/run/crypttab SYSTEMD_SYSROOT_FSTAB=/run/fstab SYSTEMD_FSTAB=/run/fstab
EOF
# Overlay mount for /etc which makes it read-write in runtime
cat <<EOF > $out/usr/lib/systemd/system/etc.mount
[Unit]
Description=Overlay mount for /etc