diff options
author | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2013-05-02 05:24:28 +0200 |
---|---|---|
committer | Jan Alexander Steffens (heftig) <jan.steffens@gmail.com> | 2013-05-02 10:33:24 +0200 |
commit | 453558c4bb44b4bff43fcd22f96d4cfe1dbcf6f1 (patch) | |
tree | bd8ee0778dadb229581e205f19fd743e4e965d69 /archbuild.in | |
parent | 6e086f0e703194fcefe0040e2b5e967fa5ab307f (diff) |
mkarchroot: Refactor chroot running into a new script
Separates the two features of mkarchroot. Provides users of the new
arch-nspawn with the full feature set of systemd-nspawn.
For example, this can be used to bind custom directories into the chroot.
Diffstat (limited to 'archbuild.in')
-rw-r--r-- | archbuild.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/archbuild.in b/archbuild.in index bdb18c0..7872cd4 100644 --- a/archbuild.in +++ b/archbuild.in @@ -73,11 +73,11 @@ if ${clean_first} || [[ ! -d "${chroots}/${repo}-${arch}" ]]; then "${chroots}/${repo}-${arch}/root" \ "${base_packages[@]}" || abort else - setarch ${arch} mkarchroot \ - -u \ + setarch ${arch} arch-nspawn \ -C "@pkgdatadir@/pacman-${repo}.conf" \ -M "@pkgdatadir@/makepkg-${arch}.conf" \ - "${chroots}/${repo}-${arch}/root" || abort + "${chroots}/${repo}-${arch}/root" \ + pacman -Syu --noconfirm || abort fi msg "Building in chroot for [${repo}] (${arch})..." |