Skip to content

Commit

Permalink
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 @@ -46,7 +46,7 @@ rootfs: base.tar

base.tar:
@echo -e '\e[1;31mExporting base.tar using docker...\e[m'
docker run --net=host --ulimit nofile=1024:10240 --name archwsl archlinux:base-devel /bin/bash -c "pacman-key --init; pacman-key --populate; sed -ibak -e 's/#Color/Color/g' -e 's/CheckSpace/#CheckSpace/g' /etc/pacman.conf; sed -ibak -e 's/IgnorePkg/#IgnorePkg/g' /etc/pacman.conf; echo | tee -a /etc/pacman.conf >/dev/null 2>&1; echo '#[multilib]' | tee -a /etc/pacman.conf >/dev/null 2>&1 && echo '#Include = /etc/pacman.d/mirrorlist' | tee -a /etc/pacman.conf >/dev/null 2>&1; sed -i '/usr\/share\/man/d' /etc/pacman.conf; pacman --noconfirm -Syyu; pacman --noconfirm --needed -Sy aria2 aspell autoconf-archive bc ccache dconf dnsutils docbook-xsl dos2unix doxygen figlet git grep hspell hunspell inetutils iputils iproute2 keychain libva-mesa-driver libva-utils libvoikko libxcrypt-compat linux-tools lolcat man-db man-pages mesa-vdpau nano ntp nuspell openssh procps socat sudo usbutils vi vim wget xdg-utils xmlto yelp-tools; wget https://pkg.wslutiliti.es/public.key && pacman-key --add public.key && rm ./public.key && pacman-key --lsign-key 2D4C887EB08424F157151C493DD50AA7E055D853; echo '[wslutilities]' | sudo tee -a /etc/pacman.conf >/dev/null 2>&1; echo 'Server = https://pkg.wslutiliti.es/arch/' | sudo tee -a /etc/pacman.conf >/dev/null 2>&1; pacman -Sy wslu; pacman --noconfirm -Rdd dbus; mkdir -p /etc/pacman.d/hooks; echo '%wheel ALL=(ALL) ALL' > /etc/sudoers.d/wheel; useradd -m -g users -G wheel builduser; passwd -d builduser; git clone https://aur.archlinux.org/dbus-x11.git /home/builduser/dbus-x11 && git clone https://aur.archlinux.org/yay-bin.git /home/builduser/yay-bin && git clone https://aur.archlinux.org/rate-mirrors.git /home/builduser/rate-mirrors; sudo chown -R builduser /home/builduser/dbus-x11 /home/builduser/yay-bin /home/builduser/rate-mirrors; cd /home/builduser/dbus-x11 && sudo -u builduser makepkg -si --noconfirm && libtool --finish /usr/lib; cd /home/builduser/yay-bin && sudo -u builduser makepkg -si --noconfirm; cd /home/builduser/rate-mirrors && sudo -u builduser makepkg -si --noconfirm; cd && userdel -r builduser; sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen && locale-gen; systemd-machine-id-setup; rm /var/lib/dbus/machine-id; dbus-uuidgen --ensure=/etc/machine-id; dbus-uuidgen --ensure; yes | LC_ALL=en_US.UTF-8 pacman -Scc"
docker run --net=host --ulimit nofile=1024:10240 --name archwsl archlinux:base-devel /bin/bash -c "pacman-key --init; pacman-key --populate; sed -ibak -e 's/#Color/Color/g' -e 's/CheckSpace/#CheckSpace/g' /etc/pacman.conf; sed -ibak -e 's/IgnorePkg/#IgnorePkg/g' /etc/pacman.conf; echo | tee -a /etc/pacman.conf >/dev/null 2>&1; echo '#[multilib]' | tee -a /etc/pacman.conf >/dev/null 2>&1 && echo '#Include = /etc/pacman.d/mirrorlist' | tee -a /etc/pacman.conf >/dev/null 2>&1; sed -i '/usr\/share\/man/d' /etc/pacman.conf; pacman --noconfirm -Syyu; pacman --noconfirm --needed -Sy aria2 aspell autoconf-archive bc ccache dconf dbus dnsutils docbook-xsl dos2unix doxygen figlet git grep hspell hunspell inetutils iputils iproute2 keychain libva-mesa-driver libva-utils libvoikko libxcrypt-compat linux-tools lolcat man-db man-pages mesa-vdpau nano ntp nuspell openssh procps socat sudo usbutils vi vim wget xdg-utils xmlto yelp-tools; wget https://pkg.wslutiliti.es/public.key && pacman-key --add public.key && rm ./public.key && pacman-key --lsign-key 2D4C887EB08424F157151C493DD50AA7E055D853; echo '[wslutilities]' | sudo tee -a /etc/pacman.conf >/dev/null 2>&1; echo 'Server = https://pkg.wslutiliti.es/arch/' | sudo tee -a /etc/pacman.conf >/dev/null 2>&1; pacman -Sy wslu; mkdir -p /etc/pacman.d/hooks; echo '%wheel ALL=(ALL) ALL' > /etc/sudoers.d/wheel; useradd -m -g users -G wheel builduser; passwd -d builduser; git clone https://aur.archlinux.org/yay-bin.git /home/builduser/yay-bin && git clone https://aur.archlinux.org/rate-mirrors.git /home/builduser/rate-mirrors; sudo chown -R builduser /home/builduser/yay-bin /home/builduser/rate-mirrors; cd /home/builduser/yay-bin && sudo -u builduser makepkg -si --noconfirm; cd /home/builduser/rate-mirrors && sudo -u builduser makepkg -si --noconfirm; cd && userdel -r builduser; sed -i 's/#en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen && locale-gen; systemd-machine-id-setup; rm /var/lib/dbus/machine-id; dbus-uuidgen --ensure=/etc/machine-id; dbus-uuidgen --ensure; yes | LC_ALL=en_US.UTF-8 pacman -Scc"
docker export --output=base.tar archwsl
docker rm -f archwsl

Expand Down

0 comments on commit 938841a

Please sign in to comment.