From 8f265e16983e7b021f0843a17ae810a0e2d2aecc Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 12 Oct 2011 14:08:47 +0200 Subject: [PATCH] systemd: do not depend in sulogin, use /bin/sh for now. --- srcpkgs/systemd/template | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/srcpkgs/systemd/template b/srcpkgs/systemd/template index a6f245d881a..4d3c16eb3a0 100644 --- a/srcpkgs/systemd/template +++ b/srcpkgs/systemd/template @@ -1,6 +1,7 @@ # Template file for 'systemd' pkgname=systemd version=37 +revision=1 distfiles="http://www.freedesktop.org/software/$pkgname/$pkgname-$version.tar.bz2" build_style=gnu_configure configure_args="--with-distro=other --with-rootdir= --localstatedir=/var @@ -78,4 +79,10 @@ post_install() done # Create /sbin/init for compatibility. ln -sf /bin/systemd ${DESTDIR}/sbin/init + + # Do not use /sbin/sulogin, sysvinit has been fully removed. + for f in console-shell emergency rescue; do + sed -i -e "s|/sbin/sulogin|/bin/sh|" \ + ${DESTDIR}/lib/systemd/system/${f}.service + done }