mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-14 22:12:01 +01:00
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:
parent
fc3b31575c
commit
c254f261fd
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user