I'm trying to install arch using proot(instead of chroot). I'm following arch wiki. Steps I've followed:
1. Downloaded and extracted arch bootstrap file.
2. Instead of using arch-chroot script in the bin folder(which requires chroot and hence root permission), I'm trying to use
proot with proper arguments.
The wiki instructs to follow these command if I don't use arch-chroot script:
# mount --bind /tmp/root.x86_64 /tmp/root.x86_64 # cd /tmp/root.x86_64 # cp /etc/resolv.conf etc # mount -t proc /proc proc # mount --make-rslave --rbind /sys sys # mount --make-rslave --rbind /dev dev # mount --make-rslave --rbind /run run # (assuming /run exists on the system) # chroot /tmp/root.x86_64 /bin/bash
To achieve same result with
proot , I'm using this script instead:
proot -b /dev -b /sys -b /run -b /proc -r /home/lubas/arch/root.x86_64/ -w / -0
When I try to run
pacstrap /mnt base , I get these errors:
==> Creating install root at /mnt mount: /mnt/proc: permission denied. ==> ERROR: failed to setup chroot /mnt umount: bad usage Try 'umount --help' for more information.
Can anyone tell me how to fix this?
Note: I fear using root privilege to install arch on chroot and run the same. I've seen Arch can be installed on android(without root). That's why I'm trying to do that on my machine so that I can learn arch without any risk of messing my system.