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