handle multiple runs a bit better, fix sudoloop

This commit is contained in:
SArpnt 2023-12-29 17:11:52 -05:00
parent b53544cb92
commit d5eaafcde7
Signed by: SArpnt
SSH Key Fingerprint: SHA256:wyRI40FXp6te9QA9r2OFJf+DtCZQmqZFNTj7EV6aMDA
2 changed files with 4 additions and 3 deletions

View File

@ -171,7 +171,7 @@ useradd -m -G games,realtime,wheel -c $nickname $user
passwd $user
begin
if not pacman -Q paru &> /dev/null
set -l paru (runuser $user --session-command "mktemp -d")
pushd $paru
runuser $user --session-command "git clone 'https://aur.archlinux.org/paru-bin.git' ."
@ -195,7 +195,7 @@ begin
set -a packages ventoy-bin
end
runuser $user --session-command "paru -Syu --sudoloop --noconfirm $(string join ' ' $packages)"
runuser $user --session-command "paru -Syu --sudoloop=true --noconfirm $(string join ' ' $packages)"
end
runuser $user --session-command "tldr -u"

View File

@ -42,6 +42,7 @@ end
tar xf overlay.tar --directory=/mnt
# make /mnt/etc/fstab
echo -n > /mnt/etc/fstab
set -lx swapdevice
begin
function getdevice
@ -104,7 +105,7 @@ echo "use the `exit` command to continue"
fish
# pacstrap
pacstrap -K /mnt base linux-zen linux-zen-headers linux-firmware fish
pacstrap -K /mnt --needed base linux-zen linux-zen-headers linux-firmware fish
begin
set -l script (mktemp -p /mnt/root)