From d13c747c67a140362a463e186fcdc900a42c840f Mon Sep 17 00:00:00 2001 From: nl6720 Date: Mon, 5 Oct 2020 13:20:23 +0300 Subject: archiso/initcpio/hooks/archiso: remove redundant /sfs/ from airootfs mount point Remove /run/archiso/bootmnt directory if nothing is mounted there. An empty directory is just confusing. --- hooks/archiso | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hooks/archiso b/hooks/archiso index 716c69e..bf98332 100644 --- a/hooks/archiso +++ b/hooks/archiso @@ -221,15 +221,16 @@ archiso_mount_handler() { mkdir -p "/run/archiso/cowspace/${cow_directory}" chmod 0700 "/run/archiso/cowspace/${cow_directory}" - _mnt_sfs "/run/archiso/bootmnt/${archisobasedir}/${arch}/airootfs.sfs" "/run/archiso/sfs/airootfs" - if [ -f "/run/archiso/sfs/airootfs/airootfs.img" ]; then - _mnt_dmsnapshot "/run/archiso/sfs/airootfs/airootfs.img" "${newroot}" "/" + _mnt_sfs "/run/archiso/bootmnt/${archisobasedir}/${arch}/airootfs.sfs" "/run/archiso/airootfs" + if [ -f "/run/archiso/airootfs/airootfs.img" ]; then + _mnt_dmsnapshot "/run/archiso/airootfs/airootfs.img" "${newroot}" "/" else - _mnt_overlayfs "/run/archiso/sfs/airootfs" "${newroot}" "/" + _mnt_overlayfs "/run/archiso/airootfs" "${newroot}" "/" fi if [ "${copytoram}" = "y" ]; then umount -d /run/archiso/bootmnt + rmdir /run/archiso/bootmnt fi } -- cgit v1.2.3-70-g09d2