2024-02-07 11:18:09 +01:00
|
|
|
#!/bin/bash -eu
|
2022-03-14 11:29:19 +01:00
|
|
|
# vi: ts=4 expandtab
|
|
|
|
#
|
|
|
|
# Generate the compressed root directory for WSL manually.
|
|
|
|
# Type "plain" unfortunately does not execute lb_binary_* helpers.
|
|
|
|
|
|
|
|
case $ARCH in
|
|
|
|
amd64|arm64)
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "WSL root tarballs are not generated for $ARCH."
|
|
|
|
exit 0;;
|
|
|
|
esac
|
|
|
|
|
2022-03-24 14:02:40 +01:00
|
|
|
## remove attributes not supported by WSL's tar
|
|
|
|
setfattr -x system.posix_acl_access chroot/var/log/journal
|
|
|
|
setfattr -x system.posix_acl_default chroot/var/log/journal
|
|
|
|
|
2022-03-14 11:29:19 +01:00
|
|
|
# Remove initial ext4-formatted fs
|
|
|
|
rm -f binary/boot/filesystem.ext4
|