[+] Add autologin
This commit is contained in:
parent
1a63fe11e9
commit
1fd6c6f37c
2 changed files with 3 additions and 5 deletions
|
@ -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
|
||||
fi
|
||||
|
||||
if [ "${archisoinstall}" == "y" ]; then
|
||||
links
|
||||
fi
|
||||
|
||||
su ${user} -c "chezmoi init --apply https://git.spectreos.de/simono41/dotfiles.git"
|
||||
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=-/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
|
||||
if [ $(ls /var/cache/pacman/pkg | wc -w) -gt 0 ]; then
|
||||
rm -R /var/cache/pacman/pkg/*
|
||||
|
|
|
@ -66,7 +66,7 @@ function mount_chroot() {
|
|||
|
||||
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
|
||||
mkdir -p ${work_dir}/${arch}/airootfs
|
||||
|
|
Loading…
Reference in a new issue