Re: Where does /dev get mounted?

From: Brett Neumeier <>
Date: Mon, 30 Oct 2017 13:54:21 -0500

On Oct 30, 2017 1:50 PM, "Laurent Bercot" <> wrote:

But I do have a question: as documented, I find that when stage1's child
> process execs into stage2, there is a devtmpfs mounted at /dev. I don't
> understand where this happens! I see where the stage 1 script mounts a
> tmpfs at /run, but I don't see anything there, or in the initial s6
> scandir, that mounts /dev. What am I missing?

 If you created your stage 1 script with s6-linux-init-maker, and you
see nothing in your stage 1 that mounts /dev, it means that you told
s6-linux-init-maker that your kernel automounts /dev at boot time.

 So, your /dev is already mounted when the kernel spawns init. The
kernel option triggering that behaviour is named CONFIG_DEVTMPFS_MOUNT.

Thanks Laurent! I'm sure that's how it's set up, and I just forgot I'd
enabled that configuration setting.


Received on Mon Oct 30 2017 - 18:54:21 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:38:49 UTC