From c3243f6040b6a064ea1e5f910d8199789725967d Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Mon, 20 Jan 2025 20:40:03 +0900 Subject: [PATCH] fix: update init-next.ps1 to add Arch Linux mirror and correct sudoers configuration --- init-next.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init-next.ps1 b/init-next.ps1 index d82d93e..0532fcc 100644 --- a/init-next.ps1 +++ b/init-next.ps1 @@ -1,4 +1,5 @@ wsl --import Arch ./Arch ./Arch/rootfs.tar.gz +wsl sed -i '1iServer = http://ftp.lanet.kr/pub/archlinux/\$repo/os/\$arch' /etc/pacman.d/mirrorlist wsl pacman-key --init wsl pacman-key --populate @@ -6,7 +7,7 @@ wsl pacman -Sy --noconfirm archlinux-keyring wsl pacman -Syu --noconfirm git zsh base base-devel wsl useradd -m -G wheel -s /bin/zsh pmh -wsl sh -c "echo '%wheel ALL=(ALL:ALL) NOPASSWD: ALL' > /ewsl sed -i '1iServer = http://ftp.lanet.kr/pub/archlinux/\$repo/os/\$arch' /etc/pacman.d/mirrorlisttc/sudoers.d/wheel" +wsl sh -c "echo '%wheel ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/wheel" wsl sh -c "echo pmh:password | chpasswd" wsl sh -c "printf '[user]\ndefault=pmh' >> /etc/wsl.conf"