This commit is contained in:
2025-03-23 17:55:15 +01:00
parent 793ef6ca6f
commit 07801d65b2
6 changed files with 42 additions and 18 deletions

View File

@@ -6,19 +6,19 @@ NSPAWN_NAME=nixos-@hostname@
TARBALL=./nixos-@hostname@.tar.xz
test $(id -u) -eq 0 || {
>&2 echo you must run this as root
echo >&2 you must run this as root
exit 1
}
if ! >/dev/null command -v systemd-nspawn; then
>&2 echo "systemd-nspawn" not found in PATH
>&2 echo consider installing 'systemd-container'
echo >&2 "systemd-nspawn" not found in PATH
echo >&2 consider installing 'systemd-container'
exit 1
fi
if ! >/dev/null command -v machinectl; then
>&2 echo "machinectl" not found in PATH
>&2 echo consider installing 'systemd-container'
echo >&2 "machinectl" not found in PATH
echo >&2 consider installing 'systemd-container'
exit 1
fi