diff options
author | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2013-10-02 19:37:39 -0300 |
---|---|---|
committer | Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> | 2013-10-02 19:37:39 -0300 |
commit | c2b620953250360ba8cbdcb8db46791527b4abf4 (patch) | |
tree | ede5d3a565131d1595083285bcf6bb9f4e8e9dc1 | |
parent | 773f118e193b83b73bd7bc2a46d6cdaa8c61ffe7 (diff) | |
download | archiso32-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-x | archiso/mkarchiso | 5 |
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 } |