systemd: set caps to systemd-detect-virt; issue daemon-reexec on upgrade.

This commit is contained in:
Juan RP 2012-10-25 07:29:18 +02:00
parent 975abf30bf
commit 4ac0a7601a
2 changed files with 8 additions and 3 deletions

View File

@ -1,8 +1,13 @@
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
systemctl enable getty@.service || true
systemctl enable getty@.service || :
fi
if [ "$UPDATE" = "yes" -a -e sys/fs/cgroup/systemd ]; then
systemctl --system daemon-reexec || :
fi
;;
esac

View File

@ -1,14 +1,14 @@
# Template file for 'systemd'
pkgname=systemd
version=195
revision=3
revision=4
build_style=gnu-configure
configure_args="--with-distro=other --libexecdir=/usr/lib
--disable-selinux --disable-tcpwrap --with-rootprefix=/usr
--with-sysvinit-path= --with-sysvrcd-path= --disable-audit
--with-usb-ids-path=/usr/share/hwdata/usb.ids
--with-pci-ids-path=/usr/share/hwdata/pci.ids --disable-static"
depends="dbus run-parts kbd>=1.15.3_5 polkit"
depends="dbus run-parts kbd>=1.15.3_5 polkit libcap-progs"
makedepends="pkg-config intltool gperf libxslt docbook-xsl acl-devel pam-devel
dbus-devel libcap-devel libkmod-devel liblzma-devel cryptsetup-devel
libblkid-devel glib-devel libgcrypt-devel python-devel qrencode-devel