From 71b15aafb64b8c8d032eab7d41e15c6e4f648c58 Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 6 Apr 2013 18:43:01 +0200 Subject: Simplify update call as pacman does no longer support SyncFirst --- mkarchroot.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mkarchroot.in b/mkarchroot.in index 454d789..9059cdb 100644 --- a/mkarchroot.in +++ b/mkarchroot.in @@ -38,7 +38,7 @@ usage() { while getopts 'r:ufnhC:M:c:' arg; do case "${arg}" in r) RUN="$OPTARG" ;; - u) RUN='/bin/sh -c "pacman -Syu --noconfirm && (pacman -Qqu >/dev/null && pacman -Su --noconfirm || exit 0)"' ;; + u) RUN='pacman -Syu --noconfirm' ;; f) FORCE='y' ;; C) pac_conf="$OPTARG" ;; M) makepkg_conf="$OPTARG" ;; @@ -128,7 +128,7 @@ chroot_lock () { chroot_run() { local dir=$1 shift - eval systemd-nspawn -D "${dir}" "${mount_args[@]}" -- ${@} 2>/dev/null + systemd-nspawn -D "${dir}" "${mount_args[@]}" -- ${@} 2>/dev/null } # }}} -- cgit v1.2.3-70-g09d2