From c2b620953250360ba8cbdcb8db46791527b4abf4 Mon Sep 17 00:00:00 2001 From: Gerardo Exequiel Pozzi Date: Wed, 2 Oct 2013 19:37:39 -0300 Subject: [PATCH] [archiso] mkarchiso: init cmd: test for file instead of directory Signed-off-by: Gerardo Exequiel Pozzi --- archiso/mkarchiso | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index e6a2195..9655167 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -48,9 +48,12 @@ _show_space_usage () { } _chroot_init() { - if [[ ! -d ${work_dir}/root-image ]]; then + if [[ -f "${work_dir}/mkarchiso.init" ]]; then + _msg_info "Initial enviroment already installed, skipping." + else mkdir -p ${work_dir}/root-image _pacman "base syslinux" + : > "${work_dir}/mkarchiso.init" fi }