diff options
author | Juan RP <xtraeme@gmail.com> | 2013-05-17 11:05:00 +0200 |
---|---|---|
committer | Juan RP <xtraeme@gmail.com> | 2013-05-17 11:05:00 +0200 |
commit | 9378eed0588b5d7aeada3d09ebbd5e0dead7a171 (patch) | |
tree | 41a33b5643d06bf6cde16cd7834f82a7ea2a1994 /dracut | |
parent | 781c00296569b20e2428c987ca4aeb479fdd7274 (diff) | |
download | hrmpf-9378eed0588b5d7aeada3d09ebbd5e0dead7a171.tar.gz hrmpf-9378eed0588b5d7aeada3d09ebbd5e0dead7a171.tar.xz hrmpf-9378eed0588b5d7aeada3d09ebbd5e0dead7a171.zip |
Modernize and make this work with current packages.
Diffstat (limited to 'dracut')
-rw-r--r-- | dracut/adduser.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/dracut/adduser.sh b/dracut/adduser.sh index f24a7a3..d3c19c3 100644 --- a/dracut/adduser.sh +++ b/dracut/adduser.sh @@ -12,7 +12,7 @@ echo "USERNAME=$USERNAME" >> ${NEWROOT}/etc/default/live.conf chmod 644 ${NEWROOT}/etc/default/live.conf # Create new user and remove password. We'll use autologin by default. -chroot ${NEWROOT} useradd -c $USERNAME -m $USERNAME -G adm,wheel -s /bin/sh +chroot ${NEWROOT} useradd -c $USERNAME -m $USERNAME -G systemd-journal,wheel -s /bin/sh chroot ${NEWROOT} passwd -d $USERNAME 2>&1 >/dev/null # Enable sudo permission by default. @@ -20,9 +20,6 @@ if [ -f ${NEWROOT}/etc/sudoers ]; then echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> ${NEWROOT}/etc/sudoers fi -chroot ${NEWROOT} systemctl disable graphical.target 2>&1 >/dev/null -chroot ${NEWROOT} systemctl enable multi-user.target 2>&1 >/dev/null - # 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" |