[archiso] mkarchiso: init cmd: test for file instead of directory
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
This commit is contained in:
parent
773f118e19
commit
c2b6209532
1 changed files with 4 additions and 1 deletions
|
@ -48,9 +48,12 @@ _show_space_usage () {
|
||||||
}
|
}
|
||||||
|
|
||||||
_chroot_init() {
|
_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
|
mkdir -p ${work_dir}/root-image
|
||||||
_pacman "base syslinux"
|
_pacman "base syslinux"
|
||||||
|
: > "${work_dir}/mkarchiso.init"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue