forked from DGNum/infrastructure
feat(iso/dgn-install.sh): Allow declaring a swap partition
This commit is contained in:
parent
d194b58813
commit
ace755b6b5
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue