mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-10-20 11:34:12 +00:00
Create a separate WSL image than CPC so it can be managed independently. Co-authored-by: Didier Roche <didrocks@ubuntu.com>
25 lines
691 B
Bash
Executable File
25 lines
691 B
Bash
Executable File
#!/bin/bash -eux
|
|
# 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
|
|
|
|
# The reason not using just tar .. -C chroot . 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 chroot
|
|
tar --xattrs --sort=name -czf ../livecd.ubuntu-wsl.rootfs.tar.gz *
|
|
cd ..
|
|
|
|
# Remove initial ext4-formatted fs
|
|
rm -f binary/boot/filesystem.ext4
|