Skip to content

Commit f012e98

Browse files
authored
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.
1 parent b54328d commit f012e98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

create_inst.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if [[ "$CW_UPDATE_INSTALLATION" == "yes" ]];then
5858
export SINGULARITY_BIND="$SINGULARITY_BIND,$PWD/_inst_dir:$CW_INSTALLATION_PATH,$_inst_path/_bin:$_inst_path/bin"
5959
print_info "Copying installation to writable area, might take a while" 1
6060
print_info "$(readlink -f $CW_INSTALLATION_PREFIX)" 1
61-
$_CONTAINER_EXEC cp -a $CW_SOURCE_MOUNT_POINT/. $CW_INSTALLATION_PATH
61+
$_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 ; }
6262
elif [[ "$CW_MODE" == "wrapdisk" ]];then
6363
export SINGULARITY_BIND="$SINGULARITY_BIND,$PWD/_inst_dir:$CW_INSTALLATION_PATH,$CW_WRAP_SRC:$CW_SOURCE_MOUNT_POINT"
6464
_CONTAINER_EXEC="singularity --silent exec _deploy/$CW_CONTAINER_IMAGE"

0 commit comments

Comments
 (0)