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 || :
|
|
|
|
|
2013-02-27 13:20:02 +00:00
|
|
|
if [ -c dev/urandom -a ! -f etc/machine-id ]; then
|
|
|
|
systemd-machine-id-setup
|
|
|
|
fi
|
2013-07-23 05:40:06 +00:00
|
|
|
systemctl enable getty@tty1.service || :
|
2013-02-27 19:43:24 +00:00
|
|
|
|
2012-10-25 05:29:18 +00:00
|
|
|
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
|