Scripts run by one-contexd will not be executed in a subshell - this
will fix the issue with the START_SCRIPT which would hold the boot if
any long-running process would originate in it (e.g. daemon/service).
User still will need to do something like this inside the START_SCRIPT
(or any other context script) otherwise SIGTERM will be sent:
nohup service nginx start &
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
Since EL9 does not contain the legacy network scripts,
add EL9 support without network-scripts dependency
Signed-off-by: Elkhan Mammadli <elkhan.mammadli@protonmail.com>
- Change the value to 'C' (POSIX) which is more generic
- LANG can be insufficiant and will not override LC_TIME for example if
that was set
- LC_ALL will ensure that all categories of locale are POSIX C
- This commit also provides a way for the scripts to find the original
locale via '_one_orig_*' variables if that would be needed
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
New variable RECOMMENDS can be used as a weak dependency list on rpm and
deb based distros.
The package open-vm-tools is moved to RECOMMENDS on el7 and el8 due to
the absence of arm64 version of these packages in RH distros.
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* F #227: Update network context
- Rework support for DHCP and DHCP6
- Support new context ETH?_METHOD and ETH?_IP6_METHOD
- Add new loc-10-network netcfg interface: initialize_network
- Wipe out stale netcfg configs to avoid conflicts
- Add reference links for some workarounds
- Fix shellcheck
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* F #227: Let networkd to use default for IPv6
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* F #227: Improve cleanup in initialize_network
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* F #227: Fix Network Manager reconfiguration
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* M #-: Update systemd service descriptions
* F #227: Adapt FreeBSD, support live reconfiguration
* B #239: Use systemctl --no-block in udev on Debian-like
* F #227: Fix unmanaged-devices with NM on ubuntu
Instead of touching 10-globally-managed-devices.conf during netcfg-nm
script we are shipping the file as part of the package. The reason is
that this file must be in place *BEFORE* Network Manager daemon is
started and reload is not sufficiant (read: it does not work). Other
option would be to restarting NM instead of reloading but that would
ifup/down all interfaces which is not a desired behavior especially if
those are in use (recontextualization).
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* F #227: Improve cleanup for NM
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* F #227: Fix initialize_network usage and cleanup
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* F #227: Workaround FreeBSD emul. NIC attach, manage rtsold
* F #227: Fix is_true argument usage
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* F #227: Improve NM reconfigure
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* F #227: Fix NM and networkd reconfiguration
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* F #227: Fix netplan's issue with empty stanzas
Signed-off-by: Petr Ospalý <pospaly@opennebula.io>
* B #239: Use abs. path /bin/systemctl in Debian-like udev
Closes#239
Co-authored-by: Vlastimil Holer <vholer@opennebula.io>