mirror of
https://github.com/envmodules/modules.git
synced 2026-06-10 00:56:30 +08:00
Convert the --enable-quarantine-support installation option in a quarantine_support configuration option. When this option is enabled the autoinit sub-command produces the module shell code with quarantine mecahnism support. When disabled, code is generated without quarantine support. This way decision to have or not the quarantine mechanism code can also be made in initrc configuration file. As a result --enable-quarantine-support installation option new controls the default behavior to generate or not the quarantine code, but this could now be superseded in initrc configuration file. Different setup cases are foreseen: 1. quarantine code has been included in module shell function, then quarantine_support config is disabled > config disablement is not effective as shell code is already set 2. quarantine code has not been included in module shell function, then quarantine_support config is enabled > config enablement is not effective as shell code is already set 3. during module initialization, quarantine_support config is enabled in initrc > shell code generated with quarantine code 4. during module initialization, quarantine_support config is disabled in initrc > shell code generated without quarantine code 5. during module initialization, quarantine_support config is enabled by default or via env > shell code generated with quarantine code 6. during module initialization, quarantine_support config is disabled by default or via env > shell code generated with quarantine code