We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d644bd3 commit 45eef8fCopy full SHA for 45eef8f
distrobox-init
@@ -1779,8 +1779,9 @@ for host_mount_ro in ${HOST_MOUNTS_RO}; do
1779
printf "Warning: %s integration with the host failed, runtime sync for %s disabled.\n" "${host_mount_ro}" "${host_mount_ro}"
1780
# Fallback options for files, we do a hard copy of it
1781
if [ -f /run/host"${host_mount_ro}" ]; then
1782
- rm -f "${host_mount_ro}"
1783
- cp -f /run/host"${host_mount_ro}" "${host_mount_ro}"
+ if ! (rm -f "${host_mount_ro}" && cp -f /run/host"${host_mount_ro}" "${host_mount_ro}"); then
+ printf "Warning: Hard copy failed. Error: %s\n" "$(cp -f /run/host"${host_mount_ro}" "${host_mount_ro}" 2>&1)"
1784
+ fi
1785
fi
1786
1787
done
0 commit comments