feat: enable factory reset

This commit is contained in:
Lars Sjöström 2025-03-17 22:22:35 +01:00
parent df3a42da4b
commit dc8ed2a774
No known key found for this signature in database
3 changed files with 34 additions and 11 deletions
pkgs/rootfs

View file

@ -57,6 +57,7 @@ Environment=SYSTEMD_REPART_MKFS_OPTIONS_BTRFS=--nodiscard
ExecStart=
ExecStart=systemd-repart --dry-run=no --generate-crypttab=/run/crypttab --generate-fstab=/run/fstab
EOF
ln -sf ../systemd-repart.service ./usr/lib/systemd/system/initrd-root-fs.target.wants/systemd-repart.service
# gen initrd
find . -print0 | cpio --null --owner=root:root -o --format=newc | xz -9 --check=crc32 > ../initrd.xz