Ensure /mnt/tmp exists with 1777 before nixos-install
This commit is contained in:
parent
09eccf1708
commit
ba787cbda7
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue