about summary refs log tree commit diff
path: root/dracut/adduser.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dracut/adduser.sh')
-rw-r--r--dracut/adduser.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/dracut/adduser.sh b/dracut/adduser.sh
index e242529..f3aa323 100644
--- a/dracut/adduser.sh
+++ b/dracut/adduser.sh
@@ -20,6 +20,10 @@ if [ -f ${NEWROOT}/etc/sudoers ]; then
 	echo "${USERNAME}  ALL=(ALL) NOPASSWD: ALL" >> ${NEWROOT}/etc/sudoers
 fi
 
+chroot ${NEWROOT} systemctl disable graphical.target
+chroot ${NEWROOT} systemctl enable multi-user.target
+touch ${NEWROOT}/etc/sysctl.conf
+
 # Enable autologin for agetty(8).
 if [ -f ${NEWROOT}/usr/lib/systemd/system/getty@.service ]; then
         rm -f "${NEWROOT}/etc/systemd/system/getty.target.wants/getty@tty1.service"