Ensure /mnt/tmp exists with 1777 before nixos-install

This commit is contained in:
randogoth 2026-02-01 21:02:31 +02:00
parent 09eccf1708
commit ba787cbda7

View file

@ -34,6 +34,8 @@ mount "${DISK}1" /mnt/boot
echo "[5/7] Copying flake to /etc/nixos" echo "[5/7] Copying flake to /etc/nixos"
mkdir -p /mnt/etc/nixos mkdir -p /mnt/etc/nixos
mkdir -p /mnt/tmp /mnt/var/tmp
chmod 1777 /mnt/tmp /mnt/var/tmp
if command -v rsync >/dev/null 2>&1; then if command -v rsync >/dev/null 2>&1; then
rsync -a --exclude '.git' --exclude 'result' --exclude 'node_modules' "${REPO_ROOT}/" /mnt/etc/nixos/ rsync -a --exclude '.git' --exclude 'result' --exclude 'node_modules' "${REPO_ROOT}/" /mnt/etc/nixos/
else else