2011-10-08 17:09:58 +00:00
|
|
|
case "${ACTION}" in
|
|
|
|
post)
|
2012-10-25 05:29:18 +00:00
|
|
|
setcap cap_dac_override,cap_sys_ptrace+ep usr/bin/systemd-detect-virt || :
|
|
|
|
|
2011-10-17 14:19:38 +00:00
|
|
|
if [ -c dev/urandom -a ! -f etc/machine-id ]; then
|
2012-09-22 13:46:06 +00:00
|
|
|
systemd-machine-id-setup
|
2012-10-25 05:29:18 +00:00
|
|
|
systemctl enable getty@.service || :
|
|
|
|
fi
|
|
|
|
if [ "$UPDATE" = "yes" -a -e sys/fs/cgroup/systemd ]; then
|
2013-01-07 11:37:37 +00:00
|
|
|
udevadm hwdb --update
|
|
|
|
journalctl --update-catalog
|
2012-10-25 05:29:18 +00:00
|
|
|
systemctl --system daemon-reexec || :
|
2011-10-17 14:19:38 +00:00
|
|
|
fi
|
2011-10-08 17:09:58 +00:00
|
|
|
;;
|
|
|
|
esac
|