summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2013-10-02 19:37:39 -0300
committerGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2013-10-02 19:37:39 -0300
commitc2b620953250360ba8cbdcb8db46791527b4abf4 (patch)
treeede5d3a565131d1595083285bcf6bb9f4e8e9dc1
parent773f118e193b83b73bd7bc2a46d6cdaa8c61ffe7 (diff)
downloadarchiso32-c2b620953250360ba8cbdcb8db46791527b4abf4.tar.xz
[archiso] mkarchiso: init cmd: test for file instead of directory
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
-rwxr-xr-xarchiso/mkarchiso5
1 files changed, 4 insertions, 1 deletions
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
}