[+] Add autologin

This commit is contained in:
Simon Rieger 2022-10-06 21:03:06 +02:00
parent 1a63fe11e9
commit 1fd6c6f37c
2 changed files with 3 additions and 5 deletions

View file

@ -593,10 +593,6 @@ if ! [ -f "/etc/X11/xorg.conf.d/40-libinput.conf" ]; then
ln -s /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/40-libinput.conf ln -s /usr/share/X11/xorg.conf.d/40-libinput.conf /etc/X11/xorg.conf.d/40-libinput.conf
fi fi
if [ "${archisoinstall}" == "y" ]; then
links
fi
su ${user} -c "chezmoi init --apply https://git.spectreos.de/simono41/dotfiles.git" su ${user} -c "chezmoi init --apply https://git.spectreos.de/simono41/dotfiles.git"
su ${user} -c "chezmoi update -v" su ${user} -c "chezmoi update -v"
@ -672,6 +668,8 @@ if [ "${archisoinstall}" == "y" ]; then
echo "ExecStart=" >> ${mountpoint}/etc/systemd/system/getty\@tty1.service.d/autologin.conf echo "ExecStart=" >> ${mountpoint}/etc/systemd/system/getty\@tty1.service.d/autologin.conf
echo "ExecStart=-/usr/bin/agetty --autologin ${user} -s %I 115200,38400,9600 vt102" >> ${mountpoint}/etc/systemd/system/getty\@tty1.service.d/autologin.conf echo "ExecStart=-/usr/bin/agetty --autologin ${user} -s %I 115200,38400,9600 vt102" >> ${mountpoint}/etc/systemd/system/getty\@tty1.service.d/autologin.conf
links
pacman -Qq > /pkglist.txt pacman -Qq > /pkglist.txt
if [ $(ls /var/cache/pacman/pkg | wc -w) -gt 0 ]; then if [ $(ls /var/cache/pacman/pkg | wc -w) -gt 0 ]; then
rm -R /var/cache/pacman/pkg/* rm -R /var/cache/pacman/pkg/*

View file

@ -66,7 +66,7 @@ function mount_chroot() {
function system() { function system() {
pacman -Sy arch-install-scripts squashfs-tools dosfstools libisoburn --needed pacman -Sy arch-install-scripts squashfs-tools dosfstools libisoburn --needed --noconfirm
if [ "${makesystem}" == "y" ]; then if [ "${makesystem}" == "y" ]; then
mkdir -p ${work_dir}/${arch}/airootfs mkdir -p ${work_dir}/${arch}/airootfs