feat(iso/dgn-install.sh): Allow declaring a swap partition

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