From 6bac51b34ea43ff90e1df02c7ed75db2ac6c8dd6 Mon Sep 17 00:00:00 2001 From: Dirk Date: Fri, 25 Nov 2011 18:30:16 +0100 Subject: Systemd stuff for SuSE 12.1 ... --- src/initramfs/distro-specs/suse/functions-12.1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'src/initramfs') diff --git a/src/initramfs/distro-specs/suse/functions-12.1 b/src/initramfs/distro-specs/suse/functions-12.1 index 98daafa4..bb275ef8 100644 --- a/src/initramfs/distro-specs/suse/functions-12.1 +++ b/src/initramfs/distro-specs/suse/functions-12.1 @@ -22,6 +22,25 @@ # D_DIRINDXS - directories in client filesystem which should be present # anyhow +# distro specific function called from servconfig script +config_distro () { +# clean the runlevel directories which will be populated by the stage3 setup +rm -rf /mnt/etc/init.d* +touch /mnt/var/log/btmp +touch /mnt/var/log/lastlog +for file in systemd-hostnamed.service dbus-org.freedesktop.hostname1.service \ + remount-rootfs.service avahi-dnsconfd.service fsck* \ + Network* postfix*; do /mnt/lib/systemd/system/${file} +done + +# enable magic sysrequest for the clients +sed -e "1i# /etc/sysctl.conf - modified by $0 version $version" \ + -e "s,kernel.sysrq =.*,kernel.sysrq = 1," \ + -i /mnt/etc/sysctl.conf + +} + + # start portmapper (needed at least for nfs and nis services) config_portmap () { # portmap is provided via rpcbind in suse 11.1,2,3,4 and 12.1 -- cgit v1.2.3-55-g7522