You are not logged in.

#1 2022-03-10 09:46:56

pn
Member
Registered: 2020-01-28
Posts: 39

[RESOLVED] pacman systemd-tmpfiles install airootfs

```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

#2 2022-03-10 10:21:19

pn
Member
Registered: 2020-01-28
Posts: 39

Re: [RESOLVED] pacman systemd-tmpfiles install airootfs

`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

#3 2022-03-10 10:34:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,292

Re: [RESOLVED] pacman systemd-tmpfiles install airootfs

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.

man pacman wrote:

-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

#4 2022-03-10 10:39:11

pn
Member
Registered: 2020-01-28
Posts: 39

Re: [RESOLVED] pacman systemd-tmpfiles install airootfs

Thanks, thats the reply I searched for

Offline

Board footer

Powered by FluxBB