44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
|
#!/usr/bin/env bash
|
||
|
#
|
||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
|
||
|
set -e -u
|
||
|
|
||
|
# Warning: customize_airootfs.sh is deprecated! Support for it will be removed in a future archiso version.
|
||
|
|
||
|
sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen
|
||
|
locale-gen
|
||
|
|
||
|
ln -sf /usr/share/zoneinfo/UTC /etc/localtime
|
||
|
|
||
|
usermod -s /usr/bin/zsh root
|
||
|
cp -aT /etc/skel/ /root/
|
||
|
chmod 700 /root
|
||
|
# unset the root password
|
||
|
passwd -d root
|
||
|
|
||
|
sed -i 's/#\(PermitRootLogin \).\+/\1yes/' /etc/ssh/sshd_config
|
||
|
sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
|
||
|
sed -i 's/#\(Storage=\)auto/\1volatile/' /etc/systemd/journald.conf
|
||
|
|
||
|
sed -i 's/#\(HandleSuspendKey=\)suspend/\1ignore/' /etc/systemd/logind.conf
|
||
|
sed -i 's/#\(HandleHibernateKey=\)hibernate/\1ignore/' /etc/systemd/logind.conf
|
||
|
sed -i 's/#\(HandleLidSwitch=\)suspend/\1ignore/' /etc/systemd/logind.conf
|
||
|
|
||
|
systemctl enable pacman-init.service choose-mirror.service systemd-networkd.service systemd-resolved.service
|
||
|
systemctl set-default graphical.target
|
||
|
systemctl enable sddm.service
|
||
|
|
||
|
pacman-key --init
|
||
|
pacman-key --populate archlinux carli
|
||
|
pacman-key --lsign-key 7B01FA17CA801345
|
||
|
|
||
|
groupscarli="adm,audio,disk,floppy,log,network,optical,rfkill,storage,video,wheel,sys"
|
||
|
useradd -m -g users -G $groupscarli -s /bin/bash liveuser
|
||
|
passwd -d liveuser
|
||
|
|
||
|
#set permissions
|
||
|
chmod 750 /etc/sudoers.d
|
||
|
chmod 750 /etc/polkit-1/rules.d
|
||
|
chgrp polkitd /etc/polkit-1/rules.d
|