Skip to content

Commit

Permalink
🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
JarbasAl committed Nov 26, 2024
1 parent 79b0d6b commit bc22867
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autologin.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin %u --noclear %I 38400 linux
4 changes: 4 additions & 0 deletions build_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ echo "$HOSTNAME" > /etc/hostname
# Update /etc/hosts to reflect the new hostname
sed -i "s/127.0.1.1.*$/127.0.1.1\t$HOSTNAME/" /etc/hosts

echo "Enabling user auto-login ..."
mkdir -p /etc/systemd/system/[email protected]
cp -v /mounted-github-repo/autologin.conf /etc/systemd/system/[email protected]/autologin.conf
sed -i 's/%u/\$USER/g' /etc/systemd/system/[email protected]/autologin.conf

# Update package list and install necessary tools
echo "Updating base system..."
Expand Down

0 comments on commit bc22867

Please sign in to comment.