fix: flatpak not installing + services fails
This commit is contained in:
parent
891bb949bf
commit
11b35cdf38
@ -1,22 +1,21 @@
|
||||
#!/bin/bash
|
||||
#shellcheck disable=SC2154
|
||||
|
||||
for i in ./modules/prechroot/*.sh; do
|
||||
for i in modules/prechroot/*.sh; do
|
||||
bash -x "$i"
|
||||
done
|
||||
|
||||
cp -r ./modules/chroot/ /mnt/
|
||||
(cd ./modules/ || exit
|
||||
for i in ./chroot/*.sh; do
|
||||
arch-chroot /mnt/ bash -x "/$i"
|
||||
done
|
||||
cp -r modules/chroot/ /mnt/
|
||||
|
||||
for i in ./chroot/user/*.sh; do
|
||||
arch-chroot /mnt/ su - "$username" -c "bash -x '/$i'"
|
||||
done
|
||||
)
|
||||
for i in modules/chroot/*.sh; do
|
||||
arch-chroot /mnt bash -x "${i/modules/}"
|
||||
done
|
||||
|
||||
for i in ./modules/postchroot/*.sh; do
|
||||
for i in modules/chroot/user/*.sh; do
|
||||
arch-chroot /mnt su - "$username" -c "bash -x '${i/modules/}'"
|
||||
done
|
||||
|
||||
for i in modules/postchroot/*.sh; do
|
||||
bash -x "$i"
|
||||
done
|
||||
|
||||
|
@ -6,7 +6,7 @@ hwclock --systohc
|
||||
|
||||
while read -r l; do
|
||||
sed -i "/^#\s*$l.UTF-8/s/^#\s*//" /etc/locale.gen
|
||||
done < <(sed 's/,/\n/g' "$locales")
|
||||
done <<< "${locales//,/$'\n'}"
|
||||
locale-gen
|
||||
|
||||
echo "LANG=$lang.UTF-8" > /etc/locale.conf
|
||||
|
@ -4,5 +4,5 @@
|
||||
shell="$(sed -n "/$shell/{p;q}" /etc/shells)"
|
||||
useradd -mG wheel,video "$username" -s "${shell:-/bin/bash}"
|
||||
|
||||
echo "root:$rootpasswd" | chpasswd
|
||||
echo "root:$rootpasswd" | chpasswd
|
||||
echo "$username:$userpasswd" | chpasswd
|
||||
|
@ -1,11 +1,10 @@
|
||||
#!/bin/bash
|
||||
#shellcheck disable=SC2154
|
||||
|
||||
systemctl enable \
|
||||
iwd.service \
|
||||
nftables.service \
|
||||
reflector.timer \
|
||||
systemd-networkd.service \
|
||||
systemd-resolved.service \
|
||||
systemd-timesyncd.service \
|
||||
tlp.service
|
||||
systemctl enable iwd.service
|
||||
systemctl enable nftables.service
|
||||
systemctl enable reflector.timer
|
||||
systemctl enable systemd-networkd.service
|
||||
systemctl enable systemd-resolved.service
|
||||
systemctl enable systemd-timesyncd.service
|
||||
systemctl enable tlp.service
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#shellcheck disable=SC2154
|
||||
|
||||
[ -s flatpak.txt ] && xargs flatpak install -y < flatpak.txt
|
||||
[ -s /chroot/flatpak.txt ] && xargs flatpak install -y < /chroot/flatpak.txt
|
||||
|
@ -31,7 +31,7 @@ printf '%s\n' \
|
||||
org.gimp.GIMP \
|
||||
org.gtk.Gtk3theme.Materia-dark \
|
||||
org.mozilla.firefox \
|
||||
>> flatpak.txt
|
||||
>> modules/chroot/flatpak.txt
|
||||
|
||||
case "$(lspci | grep 'VGA\|3D')" in
|
||||
*AMD*) echo vulkan-radeon >> pkglist.txt ;;
|
||||
|
@ -6,7 +6,6 @@ GREEN=$'\e[32m'
|
||||
NORMAL=$'\e[0m'
|
||||
|
||||
echo "${BOLD}${GREEN}DONE. Umount? [Y/n]${NORMAL} " && read -r ANS
|
||||
|
||||
case "$ANS" in
|
||||
''|[Yy]*) ;;
|
||||
*) exit ;;
|
||||
|
@ -2,17 +2,17 @@
|
||||
#shellcheck disable=SC2154
|
||||
|
||||
case "$(lscpu)" in
|
||||
*AMD*) echo amd-ucode >> pkglist.txt ;;
|
||||
*AMD*) echo amd-ucode >> pkglist.txt ;;
|
||||
*Intel*) echo intel-ucode >> pkglist.txt ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
[ -s "$flatpakpkg" ] \
|
||||
[ -s modules/chroot/flatpak.txt ] \
|
||||
&& printf '%s\n' flatpak xdg-desktop-portal-gtk >> pkglist.txt
|
||||
|
||||
[ -f /sys/class/power_supply/BAT0 ] && echo tlp >> pkglist.txt
|
||||
|
||||
pacstrap -C rootfs/etc/pacman.conf -K /mnt/ \
|
||||
pacstrap -C rootfs/etc/pacman.conf -K /mnt \
|
||||
base linux{,-lts,-firmware} "$shell" - < pkglist.txt
|
||||
|
||||
find /mnt/etc -name '*.pacnew' -delete
|
||||
find /mnt/etc/ -name '*.pacnew' -delete
|
||||
|
Loading…
Reference in New Issue
Block a user