From b7aa53a6c615f86ea0edd1eabec08b8b0984eaf6 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 11 Mar 2013 23:52:40 +0100 Subject: Multiple updates and fixes; needs bash and xbps>=0.21. --- dracut/adduser.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dracut/adduser.sh') 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" -- cgit 1.4.1