diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/initramfs/distro-specs/suse/functions-12.1 | 19 |
1 files changed, 19 insertions, 0 deletions
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 |