We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b1ea8a5 commit 1840048Copy full SHA for 1840048
1 file changed
modules/share/airootfs.any/root/customize_airootfs.sh
@@ -174,8 +174,8 @@ create_user "${username}" "${password}"
174
175
176
# Set up auto login
177
-if [[ -f /etc/systemd/system/getty@tty1.service.d/autologin.conf ]]; then
178
- sed -i s/%USERNAME%/"${username}"/g /etc/systemd/system/getty@tty1.service.d/autologin.conf
+if [[ -f "/etc/systemd/system/getty@.service.d/autologin.conf" ]]; then
+ sed -i "s|%USERNAME%|${username}|g" "/etc/systemd/system/getty@.service.d/autologin.conf"
179
fi
180
181
0 commit comments