You are not logged in.
I think I am doing something wrong, but I'm not sure what.
mkdir /home/<username>/tex-chroot
sudo mount --bind /home/<username>/tex-chroot /srv/tex-chroot
sudo setfacl -m g:alpm:rwx /srv/tex-chroot/
mkarchroot /srv/tex-chroot/root base-devel
arch-nspawn /srv/tex-chroot/root pacman -Syu ghostscript fontforge python-pdfrw perl-pdf-api2
mkarchroot and arch-nspawn ask fro a sudo password, which makes sense as everything ends up owned by root.
total 56
lrwxrwxrwx 1 root root 7 Ebr 7 2024 bin -> usr/bin/
drwxr-xr-x 2 root root 4096 Ebr 7 2024 boot/
drwxr-xr-x 2 root root 4096 Tach 1 21:21 dev/
drwxr-xr-x 44 root root 4096 Tach 1 21:28 etc/
drwxr-xr-x 2 root root 4096 Ebr 7 2024 home/
lrwxrwxrwx 1 root root 7 Ebr 7 2024 lib -> usr/lib/
lrwxrwxrwx 1 root root 7 Ebr 7 2024 lib64 -> usr/lib/
drwxr-xr-x 2 root root 4096 Ebr 7 2024 mnt/
drwxr-xr-x 2 root root 4096 Ebr 7 2024 opt/
dr-xr-xr-x 2 root root 4096 Tach 1 21:21 proc/
drwxr-x--- 4 root root 4096 Tach 1 21:22 root/
drwxr-xr-x 2 root root 4096 Tach 1 21:21 run/
lrwxrwxrwx 1 root root 7 Ebr 7 2024 sbin -> usr/bin/
drwxr-xr-x 4 root root 4096 Tach 1 21:22 srv/
dr-xr-xr-x 2 root root 4096 Tach 1 21:21 sys/
drwxrwxrwt 2 root root 4096 Tach 1 21:21 tmp/
drwxr-xr-x 9 root root 4096 Tach 1 21:28 usr/
drwxr-xr-x 12 root root 4096 Tach 1 21:22 var/
I'm not sure if I just don't understand how this kind of setup is supposed to work or whether I should end up with a different result. Am I supposed to need root privileges every time I touch it? If so, I suspect I should not be using a chroot here and should look at other options. If not, what am I doing wrong?
Last edited by cfr (2024-11-02 01:24:36)
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline