Reload systemd services on post install script
The stx-10 -> stx-11 enabler patch adds some services related to the LVM snapshot feature auto-recovery requirement, and while these services are being correctly added after the patch is deployed, they aren't being enabled accordingly as they are on the presets, so this commit adds two instructions to the post install script to reload the systemd configuration. Test Plan PASS: install patch, verify the systemd configuration is updated PASS: remove patch, verify the systemd configuration is updated Closes-bug: 2127192 Change-Id: Ib6fc17db10771c1f0219bcd37810d4b97d7a0eed Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com>
This commit is contained in:
@@ -60,6 +60,10 @@ else
|
||||
$PUPPET_GRUB_SCRIPT --set-kernel-standard
|
||||
fi
|
||||
|
||||
### Reload systemd services
|
||||
systemctl preset-all --preset-mode=full
|
||||
systemctl daemon-reload
|
||||
|
||||
### Services to restart in all nodes
|
||||
# Set flag to restart software-agent
|
||||
touch /run/software/.restart.software-agent
|
||||
|
||||
Reference in New Issue
Block a user