feat: UKI
This commit is contained in:
parent
bfbd034ce3
commit
dd265819a0
26 changed files with 55 additions and 56 deletions
18
modules/00-prechroot/20-pkg.sh
Normal file
18
modules/00-prechroot/20-pkg.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
#shellcheck disable=SC2154
|
||||
|
||||
case "$(lscpu)" in
|
||||
*AMD*) echo amd-ucode >> pkglist.txt ;;
|
||||
*Intel*) echo intel-ucode >> pkglist.txt ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
[ -s modules/chroot/flatpak.txt ] \
|
||||
&& printf '%s\n' flatpak xdg-desktop-portal-gtk >> pkglist.txt
|
||||
|
||||
[ -d /sys/class/power_supply/BAT0 ] && echo tlp >> pkglist.txt
|
||||
|
||||
pacstrap -C rootfs/etc/pacman.conf -K /mnt \
|
||||
base linux{,-lts,-firmware} "$shell" efibootmgr sbctl - < pkglist.txt
|
||||
|
||||
find /mnt/etc/ -name '*.pacnew' -delete
|
||||
Loading…
Add table
Add a link
Reference in a new issue