From 42f3b442e9f95adf815c8e09fe6c81b0947cebf2 Mon Sep 17 00:00:00 2001 From: Didier Roche Date: Thu, 5 Dec 2024 15:22:15 +0100 Subject: [PATCH] Create livecd-roots tarball as a .wsl extension Co-authored-by: Carlos Nihelton --- live-build/ubuntu-wsl/hooks/99-tar.binary | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/live-build/ubuntu-wsl/hooks/99-tar.binary b/live-build/ubuntu-wsl/hooks/99-tar.binary index c28915fe..58c50efc 100755 --- a/live-build/ubuntu-wsl/hooks/99-tar.binary +++ b/live-build/ubuntu-wsl/hooks/99-tar.binary @@ -16,5 +16,10 @@ esac setfattr -x system.posix_acl_access chroot/var/log/journal setfattr -x system.posix_acl_default chroot/var/log/journal +# Create the rootfs as a .wsl extension +cd chroot +tar --xattrs --sort=name -czf ../livecd.$PROJECT${SUBARCH:+-$SUBARCH}.wsl * +cd .. + # Remove initial ext4-formatted fs rm -f binary/boot/filesystem.ext4