From f012e9872f083ca6b1f2d9a109011a727d6fa0ca Mon Sep 17 00:00:00 2001 From: Henrik Nortamo <40563680+Nortamo@users.noreply.github.com> Date: Mon, 17 Apr 2023 17:37:53 +0300 Subject: [PATCH] Verbose warning Explicit warning if we fail to copy squashfs content. We also choose to fail here instead of emitting a warning as failing to copy some files could lead to a broken installation. --- create_inst.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create_inst.sh b/create_inst.sh index 2dba932..d62beed 100755 --- a/create_inst.sh +++ b/create_inst.sh @@ -58,7 +58,7 @@ if [[ "$CW_UPDATE_INSTALLATION" == "yes" ]];then export SINGULARITY_BIND="$SINGULARITY_BIND,$PWD/_inst_dir:$CW_INSTALLATION_PATH,$_inst_path/_bin:$_inst_path/bin" print_info "Copying installation to writable area, might take a while" 1 print_info "$(readlink -f $CW_INSTALLATION_PREFIX)" 1 - $_CONTAINER_EXEC cp -a $CW_SOURCE_MOUNT_POINT/. $CW_INSTALLATION_PATH + $_CONTAINER_EXEC cp -a $CW_SOURCE_MOUNT_POINT/. $CW_INSTALLATION_PATH || { print_err "Failed to copy some files, most likely incorrect file permissions inside the squashfs image" && false ; } elif [[ "$CW_MODE" == "wrapdisk" ]];then export SINGULARITY_BIND="$SINGULARITY_BIND,$PWD/_inst_dir:$CW_INSTALLATION_PATH,$CW_WRAP_SRC:$CW_SOURCE_MOUNT_POINT" _CONTAINER_EXEC="singularity --silent exec _deploy/$CW_CONTAINER_IMAGE"