case "${ACTION}" in
post)
	setcap cap_dac_override,cap_sys_ptrace+ep usr/bin/systemd-detect-virt || :

	if [ -c dev/urandom -a ! -f etc/machine-id ]; then
		systemd-machine-id-setup
	fi
	systemctl enable getty@tty1.service || :

	if [ "$UPDATE" = "yes" -a -e sys/fs/cgroup/systemd ]; then
		udevadm hwdb --update
		journalctl --update-catalog
		systemctl --system daemon-reexec || :
	fi
	;;
esac