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