Skip to content

Commit 1d90561

Browse files
committed
wip: WSL compatibility
Signed-off-by: Jan Pokorný <JenomPokorny@gmail.com>
1 parent 055f197 commit 1d90561

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

apps/microshift-vm/tasks.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ rm -f "$WSL_ROOTFS/etc/resolv.conf"
8686
for svc in systemd-resolved.service systemd-networkd.service NetworkManager.service systemd-tmpfiles-setup.service systemd-tmpfiles-clean.service tmp.mount systemd-tmpfiles-setup-dev-early.service systemd-tmpfiles-setup-dev.service; do
8787
ln -sf /dev/null "$WSL_ROOTFS/etc/systemd/system/$svc"
8888
done
89-
TARGET="$(realpath ./dist/x86_64/microshift-vm-x86_64.wsl)"
90-
cd "$WSL_ROOTFS"
91-
tar --numeric-owner -c . --exclude=./proc --exclude=./sys --exclude=./dev --exclude=./run --exclude=./mnt | gzip --best >"$TARGET"
89+
tar -c --numeric-owner --exclude=./proc --exclude=./sys --exclude=./dev --exclude=./run --exclude=./mnt -C "$WSL_ROOTFS" | gzip --best >./dist/x86_64/microshift-vm-x86_64.wsl
9290
'''
9391
sources = ["microshift.pkr.hcl", "cloud-init/*", "rootfs/**/*", "install.sh", "wsl/*"]
9492
outputs = ["dist/**/*.wsl"]

0 commit comments

Comments
 (0)