We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3059262 + 072a497 commit c1ba81bCopy full SHA for c1ba81b
pkg/bootc/bootc_disk.go
@@ -38,14 +38,14 @@ const imageMetaXattr = "user.bootc.meta"
38
// tempLosetupWrapperContents is a workaround for https://github.com/containers/bootc/pull/487/commits/89d34c7dbcb8a1fa161f812c6ba0a8b49ccbe00f
39
const tempLosetupWrapperContents = `#!/bin/bash
40
set -euo pipefail
41
-args=()
+args=(/usr/sbin/losetup --direct-io=off)
42
for arg in "$@"; do
43
case $arg in
44
--direct-io=*) echo "ignoring: $arg" 1>&2;;
45
- *) args+="$arg" ;;
+ *) args+=("$arg") ;;
46
esac
47
done
48
-exec /usr/sbin/losetup "$@" --direct-io=off
+exec "${args[@]}"
49
`
50
51
// DiskImageConfig defines configuration for the
0 commit comments