handle multiple runs a bit better, fix sudoloop
This commit is contained in:
parent
b53544cb92
commit
d5eaafcde7
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue