From 97435a4574d0aa255015022bd698deb287c911fc Mon Sep 17 00:00:00 2001 From: Minhyeok Park Date: Mon, 20 Jan 2025 20:37:01 +0900 Subject: [PATCH] fix: update init-next.ps1 to correct pacman commands and ensure non-interactive installations --- init-next.ps1 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/init-next.ps1 b/init-next.ps1 index f3ec16c..d82d93e 100644 --- a/init-next.ps1 +++ b/init-next.ps1 @@ -1,13 +1,12 @@ 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-keyring --init -wsl pacman-keyring --populate -wsl pacman -Sy archlinux-keyring -wsl pacman -Syu git zsh base base-devel +wsl pacman-key --init +wsl pacman-key --populate +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' > /etc/sudoers.d/wheel" +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 pmh:password | chpasswd" wsl sh -c "printf '[user]\ndefault=pmh' >> /etc/wsl.conf"