Skip to content

Commit c254f26

Browse files
committed
fix: do not extract xattrs in unsquashfs
Fix building on SELinux systems. Extracting xattrs led to return code 2 as a non-critical error. This should not influence extension build. Signed-off-by: Dmitry Sharshakov <[email protected]>
1 parent fc3b315 commit c254f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/pkg/extensions/kernel_modules.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ func extractRootfsFromInitramfs(r io.Reader, rootfsFilePath string) error {
194194
}
195195

196196
func unsquash(squashfsPath, dest, path string) error {
197-
cmd := exec.Command("unsquashfs", "-d", dest, "-f", "-n", squashfsPath, path)
197+
cmd := exec.Command("unsquashfs", "-no-xattrs", "-d", dest, "-f", "-n", squashfsPath, path)
198198
cmd.Stderr = os.Stderr
199199

200200
return cmd.Run()

0 commit comments

Comments
 (0)