From c55c693fd94586376bfd4fda8b3e5f6b73f6c46b Mon Sep 17 00:00:00 2001 From: themylogin Date: Wed, 14 Feb 2024 13:28:44 +0100 Subject: [PATCH] Do not pass `-exclude-file` to `unsquashfs` on FreeBSD --- truenas_install/__main__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/truenas_install/__main__.py b/truenas_install/__main__.py index 4f8280fb..1ae9e806 100644 --- a/truenas_install/__main__.py +++ b/truenas_install/__main__.py @@ -488,7 +488,11 @@ def main(): "-f", "-da", "16", "-fr", "16", - "-exclude-file", exclude_list_file.name, + ] + ( + ["-exclude-file", exclude_list_file.name] + if not IS_FREEBSD + else [] + ) + [ os.path.join(src, "rootfs.squashfs"), ] p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)