systemd: set caps to systemd-detect-virt; issue daemon-reexec on upgrade.
This commit is contained in:
parent
975abf30bf
commit
4ac0a7601a
2 changed files with 8 additions and 3 deletions
|
@ -1,8 +1,13 @@
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
post)
|
post)
|
||||||
|
setcap cap_dac_override,cap_sys_ptrace+ep usr/bin/systemd-detect-virt || :
|
||||||
|
|
||||||
if [ -c dev/urandom -a ! -f etc/machine-id ]; then
|
if [ -c dev/urandom -a ! -f etc/machine-id ]; then
|
||||||
systemd-machine-id-setup
|
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
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -1,14 +1,14 @@
|
||||||
# Template file for 'systemd'
|
# Template file for 'systemd'
|
||||||
pkgname=systemd
|
pkgname=systemd
|
||||||
version=195
|
version=195
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-distro=other --libexecdir=/usr/lib
|
configure_args="--with-distro=other --libexecdir=/usr/lib
|
||||||
--disable-selinux --disable-tcpwrap --with-rootprefix=/usr
|
--disable-selinux --disable-tcpwrap --with-rootprefix=/usr
|
||||||
--with-sysvinit-path= --with-sysvrcd-path= --disable-audit
|
--with-sysvinit-path= --with-sysvrcd-path= --disable-audit
|
||||||
--with-usb-ids-path=/usr/share/hwdata/usb.ids
|
--with-usb-ids-path=/usr/share/hwdata/usb.ids
|
||||||
--with-pci-ids-path=/usr/share/hwdata/pci.ids --disable-static"
|
--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
|
makedepends="pkg-config intltool gperf libxslt docbook-xsl acl-devel pam-devel
|
||||||
dbus-devel libcap-devel libkmod-devel liblzma-devel cryptsetup-devel
|
dbus-devel libcap-devel libkmod-devel liblzma-devel cryptsetup-devel
|
||||||
libblkid-devel glib-devel libgcrypt-devel python-devel qrencode-devel
|
libblkid-devel glib-devel libgcrypt-devel python-devel qrencode-devel
|
||||||
|
|
Loading…
Reference in a new issue