Sofiya wrote: Thu Sep 19, 2024 7:26 pm
wiak wrote: Thu Sep 19, 2024 3:05 pm
Sofiya wrote: Thu Sep 19, 2024 12:32 pm
Let's automate it - by adding code in archstrap_wiak_mod.sh
sed -i 's/^DownloadUser/#DownloadUser/g' "$rootfs"/etc/pacman.conf
And
sed -i 's/^#DownloadUser/DownloadUser/g' "$rootfs"/etc/pacman.conf
new " archstrap_wiak_mod.sh "
Ah, good you found that. I've only just found time to login to the forum tonight or even view it. Been busy so found no time to investigate and happy I don't now need to... Okay I better remember where this post is so I can modify my own copy of archstrap_wiak_mod.sh.
Here is your " archstrap_wiak_mod.sh "
https://gitlab.com/firstrib/firstrib/-/ ... iak_mod.sh
So all of a sudden, we have two new pacman.conf options (well spotted Sofiya):
DownloadUser = username
Specifies the user to switch to for downloading files. If this config option is not set then the downloads are done as the user running pacman.
DisableSandbox
Disable the default sandbox applied to the process downloading files on Linux systems. Useful if experiencing landlock related failures while downloading files when running a Linux kernel that does not support this feature.
However, I just noted that I had some extra lines at the end of my original arch_wiak_mod.sh that crept in there by accident I think; do no harm but seem superfluous...
It may be a good idea to also use the new DisableSandbox option; I will think about this...
In above, Sofiya, I think the correct one is likely to be:
sed -i 's/^DownloadUser/#DownloadUser/g' "$rootfs"/etc/pacman.conf
rather than ever:
sed -i 's/^#DownloadUser/DownloadUser/g' "$rootfs"/etc/pacman.conf
but perhaps through experiment you have found differently?
Anyway - I'll fix my original archstrap_wiak_mod.sh and try it when I have time (but I have no time...).
But... that bash script archstrap.sh is long not maintained by its originator (2 years). I will likely move to using official arch small bootstrap release and build on top of that via built_firstrib_rootfs.sh f_plugin since official arch bootstrap release will always be well-maintained, which is the important thing - can also use that to make other small KLA/FR releases; but again might be a while till I move to using official arch small bootstrap release: https://geo.mirror.pkgbuild.com/iso/latest/ File: archlinux-bootstrap-x86_64.tar.zst