summaryrefslogtreecommitdiffstats
path: root/src/initramfs
diff options
context:
space:
mode:
authorDirk2011-11-25 18:30:16 +0100
committerDirk2011-11-25 18:30:16 +0100
commit6bac51b34ea43ff90e1df02c7ed75db2ac6c8dd6 (patch)
tree67f4cda7efe2f4418dad9bfa976c01562f425615 /src/initramfs
parentMerge branch 'master' of openslx.org:openslx/core (diff)
downloadcore-6bac51b34ea43ff90e1df02c7ed75db2ac6c8dd6.tar.gz
core-6bac51b34ea43ff90e1df02c7ed75db2ac6c8dd6.tar.xz
core-6bac51b34ea43ff90e1df02c7ed75db2ac6c8dd6.zip
Systemd stuff for SuSE 12.1 ...
Diffstat (limited to 'src/initramfs')
-rw-r--r--src/initramfs/distro-specs/suse/functions-12.119
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