Skip to content

Commit

Permalink
Verbose warning
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Nortamo authored Apr 17, 2023
1 parent b54328d commit f012e98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion create_inst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f012e98

Please sign in to comment.