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 <dmitry.sharshakov@siderolabs.com>
This commit is contained in:
Dmitry Sharshakov 2024-11-28 19:14:38 +01:00
parent fc3b31575c
commit c254f261fd
No known key found for this signature in database
GPG Key ID: 9866BBFAF691F3AF

View File

@ -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()