feat: copy chroot to /mnt/
This commit is contained in:
parent
2f3664acaa
commit
0a2b926e9d
16 changed files with 27 additions and 13 deletions
|
|
@ -1,17 +0,0 @@
|
|||
#!/bin/bash
|
||||
#shellcheck disable=SC2154
|
||||
|
||||
case "$(lscpu)" in
|
||||
*AMD*) pkg+=(amd-ucode) ;;
|
||||
*Intel*) pkg+=(intel-ucode) ;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
[ -n "$flatpak" ] && pkg+=(flatpak xdg-desktop-portal-gtk)
|
||||
|
||||
[ -f /sys/class/power_supply/BAT0 ] && pkg+=(tlp)
|
||||
|
||||
pacstrap -C rootfs/etc/pacman.conf -K /mnt/ \
|
||||
base linux{,-lts,-firmware} "$shell" "${pkg[@]}"
|
||||
|
||||
find /mnt/etc -name '*.pacnew' -delete
|
||||
Loading…
Add table
Add a link
Reference in a new issue