clarification of command use

This commit is contained in:
joborun linux 2023-09-18 09:56:23 +00:00
parent 0fb106778b
commit 0dfdc1920f
1 changed files with 16 additions and 1 deletions

View File

@ -99,6 +99,21 @@ Go build some packages (read our wiki entries for building and building like job
#### Note: ####
Thanks to [[u/unix21311 | https://www.reddit.com/user/unix21311/]] a detail that escaped us not actually using a different distro to do the installation, till pacman and mirrorlists are installed in the chroot the flag --conf /mnt/etc/pacman.conf must be used for your local pacman to be reading a different configuration and repositories than what is native. So the 2nd step of installation was modified. In the first step you use the pacman.conf that is temporary to install joborun's pacman, the 2nd step is using the chroot's own new pacman.conf.
Thanks to [[u/unix21311 | https://www.reddit.com/user/unix21311/]] a detail that escaped us, not actually using a different distro to do the installation, till pacman and mirrorlists are installed in the chroot the flag --config /mnt/etc/pacman.conf must be used for your local pacman to be reading a different configuration and repositories than what is native. So the 2nd step of installation was modified. In the first step you use the pacman.conf that is temporary to install joborun's pacman, the 2nd step is using the chroot's own new pacman.conf.
<pre>pacman -Syu -r /mnt</pre>
uses the native (host's) pacman to install into the chroot /mnt
<pre>pacman -Syu --config /tnp/alternative-pacman.conf -r /mnt</pre>
uses this alternative pacman.conf stored somewhere else
<pre>sudo arch-chroot /mnt pacman -Syu</pre>
uses the pacman installed into /mnt (target) and therefore /mnt/etc/pacman.conf