From 2bb15e03f49a000eb517fe5cdf90f5dcfbfd1db5 Mon Sep 17 00:00:00 2001 From: Balint Reczey Date: Fri, 17 May 2019 16:41:21 +0200 Subject: [PATCH] wsl.binary: Add comment about tar usage --- live-build/ubuntu-cpc/hooks.d/base/wsl.binary | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/live-build/ubuntu-cpc/hooks.d/base/wsl.binary b/live-build/ubuntu-cpc/hooks.d/base/wsl.binary index 4bf42800..05f51e30 100755 --- a/live-build/ubuntu-cpc/hooks.d/base/wsl.binary +++ b/live-build/ubuntu-cpc/hooks.d/base/wsl.binary @@ -45,6 +45,10 @@ if [ -d $rootfs_dir/var/log/journal ]; then setfattr -x system.posix_acl_default $rootfs_dir/var/log/journal fi +# The reason not using just tar .. -C $rootfs_dir . is that using '.' was found +# not working once and checking if using the simpler command is safe needs +# verification of the app installation on all Windows 10 builds we support +# with WSL. cd $rootfs_dir tar --xattrs --sort=name -czf ../livecd.ubuntu-cpc.wsl.rootfs.tar.gz * cd ..