Mounting proc in a chroot?

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Post Reply
Message
Author
s243a
Posts: 2580
Joined: Tue 02 Sep 2014, 04:48
Contact:

Mounting proc in a chroot?

#1 Post by s243a »

In the sandbox.sh (and also psandbox.sh) proc is mounted as follows:

Code: Select all

mount -t proc none $FAKEROOT/proc
on archwiki they give the alternative one-liner:

Code: Select all

mount -t proc /proc proc/
https://wiki.archlinux.org/index.php/Chroot

The first variant works on Buster (running from a save folder on the hard drive), in my tiny_puduan running from a save folder on a usb drive (PUPMODE=13?), the first command causes /proc to become unmounted. I'm guessing there might be things in my initrd scripts that I should fix but I have no clue where to start.

I'm also wondering if the second form given by archwiki might avoid this problem. However, I also wonder if the second form might cause problems when trying to unmount proc/.

Maybe, there is some kind of test I can do to see if the first form will work properly and if not do the second form.
Find me on [url=https://www.minds.com/ns_tidder]minds[/url] and on [url=https://www.pearltrees.com/s243a/puppy-linux/id12399810]pearltrees[/url].

Post Reply