From 3a8e3de608a1dd98884ffa7e31f6aba2ad77565d Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 24 Mar 2023 20:56:06 +0000 Subject: [PATCH] arch-chroot: delay selecting chroot/unshare setup Signed-off-by: Emil Velikov --- arch-chroot.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch-chroot.in b/arch-chroot.in index b0a2bbc..ba23d48 100644 --- a/arch-chroot.in +++ b/arch-chroot.in @@ -2,7 +2,6 @@ shopt -s extglob -setup=chroot_setup unshare=0 m4_include(common) @@ -99,7 +98,6 @@ while getopts ':hNu:' flag; do exit 0 ;; N) - setup=unshare_setup unshare=1 ;; u) @@ -121,7 +119,9 @@ shift args=("$@") if (( unshare )); then + setup=unshare_setup $mount_unshare bash -c "$(declare_all); arch-chroot" else + setup=chroot_setup arch-chroot fi