fix(rootfs): symlink /var/tmp to /tmp if no state partition available

this enable systemd networkd and resolved to work
This commit is contained in:
Lars Sjöström 2025-03-26 11:57:03 +01:00
parent c470bf6d59
commit d10bd7bb04
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -1 +0,0 @@
/nix/store/9m1cdv4fiky0mihfx3ck8vcknclcagn2-patos-image

View file

@ -21,11 +21,12 @@ runCommand "patos-rootfs"
''
### create directory structure
mkdir -p $out/etc/repart.d $out/dev $out/proc $out/sys \
$out/tmp $out/root $out/run $out/boot $out/mnt $out/home $out/srv $out/var/tmp
$out/tmp $out/root $out/run $out/boot $out/mnt $out/home $out/srv $out/var
ln -sf /usr/bin $out/bin
ln -sf /usr/bin $out/sbin
ln -sf /usr/lib $out/lib
ln -sf /usr/lib $out/lib64
ln -sf /tmp $out/var/tmp
ln -sf ../proc/self/mounts $out/etc/mtab
### install systemd