Skip to content

Commit 5ef6529

Browse files
committed
Merge branch 'systemd-all-autologin' into dev
2 parents d81afcd + 1840048 commit 5ef6529

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/share/airootfs.any/root/customize_airootfs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ create_user "${username}" "${password}"
174174

175175

176176
# 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
177+
if [[ -f "/etc/systemd/system/[email protected]/autologin.conf" ]]; then
178+
sed -i "s|%USERNAME%|${username}|g" "/etc/systemd/system/[email protected]/autologin.conf"
179179
fi
180180

181181

0 commit comments

Comments
 (0)