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.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/dracut/adduser.sh b/dracut/adduser.sh
index bc30a98..736e33e 100644
--- a/dracut/adduser.sh
+++ b/dracut/adduser.sh
@@ -27,7 +27,7 @@ fi
 
 # Enable autologin for agetty(8) on tty1 with runit.
 if [ -d ${NEWROOT}/etc/runit ]; then
-    sed -e "s|\-8|& -a $USERNAME|g" -i ${NEWROOT}/etc/sv/agetty-tty1/run
+    sed "s|agetty|& -a $USERNAME|" -i ${NEWROOT}/etc/sv/agetty-tty1/run
 fi
 
 # Enable autologin for agetty(8) on tty1 with systemd.