You are not logged in.
```shell
# pacman --root=/mnt -Syu linux-firmware
/proc/ is not mounted, but required for successful operation of systemd-tmpfiles. Please mount /proc/. Alternatively, consider using the --root= or --image= switches.
```
On a second note, `airootfs` is way too tiny to contain `linux-firmware` and `linux` at the same time. It can barely contain one of them. And `pacman` does use `airootfs` to contain its cache. Maybe a switch to change `pacman` working directory? (https://wiki.archlinux.org/title/Pacman#Package_cache_directory can help)
On a third note, `# pacman --root=/mnt -Syu linux` gives `install: cannot stat '/dev/stdin': No such file or directory`
And, by the way
```shell
# ls /dev/stdin
stdin
# file /proc
/proc: directory
```
Last edited by pn (2022-03-10 10:39:32)
Offline
`arch-chroot /mnt` works way better. Though it gives a `failed to open file /sys/devices/system/cpu/microcode/reload read-only file system` but thats considered anecdotal
Offline
I have no clue what you are trying to do nor what your actual problem is.
If you're intending to repair or amend packages to an installed system without explicitly chrooting in you should use the --sysroot argument.
-r, --root <path>
Specify an alternative installation root (default is /). This should not be used as a way to install software into /usr/local instead of /usr. NOTE: If database path or log file are not specified on either the command line or in pacman.conf(5), their default location will be inside this root path. NOTE: This option is not suitable for performing operations on a mounted guest system. See --sysroot instead.
Offline
Thanks, thats the reply I searched for
Offline