mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-09-11 11:36:40 +03:00
infect: have swap usage optional (#91)
Doesn't work everywhere with swapon, e.g. osuosl openstack cluster. Without swap it can succeed though, it's not a hard prerequisite for the infection to take effect.
This commit is contained in:
parent
2ec52a0ede
commit
36e19e3b30
@ -310,10 +310,14 @@ infect() {
|
||||
|
||||
checkEnv
|
||||
prepareEnv
|
||||
if [[ -z "$NO_SWAP" ]]; then
|
||||
makeSwap # smallest (512MB) droplet needs extra memory!
|
||||
fi
|
||||
makeConf
|
||||
infect
|
||||
if [[ -z "$NO_SWAP" ]]; then
|
||||
removeSwap
|
||||
fi
|
||||
|
||||
if [[ -z "$NO_REBOOT" ]]; then
|
||||
reboot
|
||||
|
Loading…
Reference in New Issue
Block a user