feat(iso/dgn-install.sh): Allow declaring a swap partition
All checks were successful
build configuration / build_vault01 (push) Successful in 52s
build configuration / build_storage01 (push) Successful in 52s
build configuration / build_web01 (push) Successful in 1m9s
build configuration / build_compute01 (push) Successful in 1m16s

This commit is contained in:
Tom Hubrecht 2024-01-10 17:46:28 +01:00
parent d194b58813
commit ace755b6b5

View file

@ -18,6 +18,10 @@ while [ "$#" -gt 0 ]; do
bootDevice="$1"
shift 1
;;
--swap)
swapDevice="$1"
shift 1
;;
--domain)
domain="$1"
shift 1
@ -52,6 +56,10 @@ mkdir /mnt/boot
mount "$bootDevice" /mnt/boot
if [ "x$swapDevice" != "x" ]; then
swapon "$swapDevice"
fi
# Generate configration
nixos-generate-config --root /mnt