Skip to content

Commit

Permalink
Add WSLInterop.conf to execute windows binary
Browse files Browse the repository at this point in the history
  • Loading branch information
sileshn committed Mar 11, 2023
1 parent 9641aeb commit 52664d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ rootfs: base.tar

base.tar:
@echo -e '\e[1;31mExporting base.tar using docker...\e[m'
docker run --name debiansidwsl --net=host --platform linux/amd64 debian:sid /bin/bash -c "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections; apt-get update; apt-get install -y -q apt-utils; apt-get full-upgrade -y -q; apt-get install -y -q apt-transport-https iproute2 aria2 bash-completion build-essential ca-certificates curl dialog figlet htop iputils-ping lolcat locales lsof nano software-properties-common sudo tree vim; sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen && locale-gen; apt-get autoremove -y; apt-get clean;"
docker run --name debiansidwsl --net=host --platform linux/amd64 debian:sid /bin/bash -c "echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections; apt-get update; apt-get install -y -q apt-utils; apt-get full-upgrade -y -q; apt-get install -y -q apt-transport-https iproute2 aria2 bash-completion build-essential ca-certificates curl dialog figlet htop iputils-ping lolcat locales lsof nano software-properties-common sudo tree vim; sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen && locale-gen; sudo sh -c 'echo :WSLInterop:M::MZ::/init:PF > /usr/lib/binfmt.d/WSLInterop.conf'; apt-get autoremove -y; apt-get clean;"
docker export --output=base.tar debiansidwsl
docker rm -f debiansidwsl

Expand Down

0 comments on commit 52664d0

Please sign in to comment.