interactive pacstrap

This commit is contained in:
Daniel Langbein 2021-05-04 21:01:22 +02:00
parent db07cfe15d
commit 5d8bfab624
3 changed files with 11 additions and 3 deletions

View File

@ -208,7 +208,13 @@ function run_pacstrap() {
;; ;;
esac esac
sudo pacstrap /mnt "${PKGS[@]}" || return $? local args=()
if [ "${PACSTRAP_INTERACTIVE}" = "1" ]; then
args+=('-i') # run interactively
fi
args+=('/mnt')
sudo pacstrap "${args[@]}" "${PKGS[@]}" || return $?
} }
function run_genfstab() { function run_genfstab() {

View File

@ -28,3 +28,5 @@ BIOS_TYPE=uefi
# If set to "1", then the data, boot and luks partitions # If set to "1", then the data, boot and luks partitions
# will be left mounted/opened after installation # will be left mounted/opened after installation
LEAVE_MOUNTED=1 LEAVE_MOUNTED=1
PACSTRAP_INTERACTIVE=1

View File

@ -1,9 +1,9 @@
# Maintainer: Daniel Langbein <daniel@systemli.org> # Maintainer: Daniel Langbein <daniel@systemli.org>
_pkgname=de-p1st-kernel-default _pkgname=kernel-default
_reponame=arch _reponame=arch
pkgname="de-p1st-$_pkgname" pkgname="de-p1st-$_pkgname"
pkgver=0.0.4 pkgver=0.0.4
pkgrel=1 pkgrel=2
pkgdesc="The Linux kernel, modules and headers" pkgdesc="The Linux kernel, modules and headers"
arch=('any') arch=('any')
url="https://codeberg.org/privacy1st/${_reponame}" url="https://codeberg.org/privacy1st/${_reponame}"