Skip to content

Commit

Permalink
fix: do not extract xattrs in unsquashfs
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dsseng committed Nov 28, 2024
1 parent fc3b315 commit c254f26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/extensions/kernel_modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func extractRootfsFromInitramfs(r io.Reader, rootfsFilePath string) error {
}

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

return cmd.Run()
Expand Down

0 comments on commit c254f26

Please sign in to comment.