Unify with dir layout of -dual images. Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar> --- archiso/mkarchiso | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/archiso/mkarchiso b/archiso/mkarchiso index 7bbc827..1f74e06 100755 --- a/archiso/mkarchiso +++ b/archiso/mkarchiso @@ -12,6 +12,7 @@ CREATE_DEFAULT="n" INSTALL_DIR="arch" APPNAME=$(basename "${0}") +ARCH=$(uname -m) # usage: usage <exitvalue> usage () @@ -115,7 +116,7 @@ _pacman () command_create () { echo "====> Creating working directory: ${work_dir}" - mkdir -p "${work_dir}/iso/${INSTALL_DIR}" + mkdir -p "${work_dir}/iso/${INSTALL_DIR}/${ARCH}" mkdir -p "${work_dir}/root-image/" if [ "${PKGLIST}" != "" ]; then @@ -157,7 +158,7 @@ _mksquash () { return 1 fi - sqimg="${work_dir}/iso/${INSTALL_DIR}/$(basename ${1}).sqfs" + sqimg="${work_dir}/iso/${INSTALL_DIR}/${ARCH}/$(basename ${1}).sqfs" echo "====> Generating SquashFS image for '${1}'" if [ -e "${sqimg}" ]; then dirhaschanged=$(find ${1} -newer ${sqimg}) @@ -215,7 +216,8 @@ _imgcommon () { fi if ! sed "s|archisolabel=[^ ]*|archisolabel=${LABEL}|; - s|%INSTALL_DIR%|${INSTALL_DIR}|" -i ${work_dir}/iso/syslinux/syslinux.cfg; then + s|%INSTALL_DIR%|${INSTALL_DIR}| + s|%ARCH%|${ARCH}|" -i ${work_dir}/iso/syslinux/syslinux.cfg; then echo "Error: ${work_dir}/iso/syslinux/syslinux.cfg, doesn't exist, aborting." exit 1 fi -- 1.7.3.1