From 453558c4bb44b4bff43fcd22f96d4cfe1dbcf6f1 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Thu, 2 May 2013 05:24:28 +0200 Subject: 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. --- archbuild.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'archbuild.in') 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})..." -- cgit v1.2.3