OpenNebula / addon-context-linux

Linux VM Contextualization
Apache License 2.0
56 stars 73 forks source link

Allow user to disable automatic Swap mounting #260

Closed Th0masL closed 2 years ago

Th0masL commented 2 years ago

By looking at the script loc-14-mount-swap, we can see that there's no way the user can tell the script to not mount Swap partition automatically.

It would be convenient to be able to add a Context Variable on the VM that would allow to not mount the Swap partition.

For example, adding DISABLE_SWAP with the value true could make the loc-14-mount-swap script to not try to mount the Swap partitions.

ospalax commented 2 years ago

Solved by PR: https://github.com/OpenNebula/addon-context-linux/pull/262