mirror of
https://github.com/truenas/scale-build.git
synced 2025-12-24 21:07:00 +00:00
Fix .squashfs files not being cleaned up (#797)
This commit is contained in:
@@ -245,10 +245,10 @@ def build_extensions():
|
||||
|
||||
run(["mksquashfs", td, f"{sysext_extensions_dir}/functioning-dpkg.raw"])
|
||||
|
||||
with tempfile.NamedTemporaryFile(suffix=".squashfs") as tf:
|
||||
tf.close()
|
||||
run(["mksquashfs", CHROOT_BASEDIR, tf.name, "-one-file-system"])
|
||||
do_build_extensions(tf.name, sysext_extensions_dir)
|
||||
with tempfile.TemporaryDirectory() as td:
|
||||
rootfs_image = f"{td}/rootfs.squashfs"
|
||||
run(["mksquashfs", CHROOT_BASEDIR, rootfs_image, "-one-file-system"])
|
||||
do_build_extensions(rootfs_image, sysext_extensions_dir)
|
||||
|
||||
external_extesions_dir = os.path.join(RELEASE_DIR, "extensions")
|
||||
os.makedirs(external_extesions_dir, exist_ok=True)
|
||||
|
||||
Reference in New Issue
Block a user