lxd-virtual-machine-image: install initial configuration read-write

(cherry picked from commit dfd0d14efc)
This commit is contained in:
Adam Stephens 2024-05-31 09:40:13 -04:00 committed by github-actions[bot]
parent 4f6b97a61e
commit 017fbd720a
2 changed files with 2 additions and 3 deletions

View File

@ -20,7 +20,7 @@
};
in ''
if [ ! -e /etc/nixos/configuration.nix ]; then
install -m 644 -D ${config} /etc/nixos/configuration.nix
install -m 0644 -D ${config} /etc/nixos/configuration.nix
fi
'';

View File

@ -20,8 +20,7 @@
};
in ''
if [ ! -e /etc/nixos/configuration.nix ]; then
mkdir -p /etc/nixos
cp ${config} /etc/nixos/configuration.nix
install -m 0644 -D ${config} /etc/nixos/configuration.nix
fi
'';