On 07/09/2016 09:16 μμ, Thanos Baloukas wrote:
On 07/09/2016 08:39 μμ, Bruce Dubbs wrote:
William Harrington wrote:
On Wed, September 7, 2016 03:14, Samuel Tyler wrote:
Sorry - I should have said - I am using systemd.
On Wed, Sep 07, 2016 at 11:26:55AM +1000, Samuel Tyler wrote:
When is /dev populated? When I reboot, it says /dev/sda1 is
unavailable.
/dev only contains console and null.
LFS 7.9
Review the README in the systemd source or in
/usr/share/doc/systemd-x.y.z/README and make sure your kernel config is
set according to the required/recommended kernel options. Systemd
populates /dev when it mounts devtmpfs or if the kernel automounts it.
Actually, I think that systemd/udev generally does not populate /dev.
The kernel should do that via CONFIG_DEVTMPFS. The only thing udev
(part of systemd) does is change permissions, usr/group ownership, and
create symlinks.
-- Bruce
I was puzzled about that. According to
http://cateee.net/lkddb/web-lkddb/DEVTMPFS.html
you are right.
Do I understand it right?
The kernel creates a tmpfs and populates it with device nodes.
That tmpfs is mounted on /dev either by the kernel it's self
if CONFIG_DEVTMPFS_MOUNT is set, or by systemd if it's not set.
If that is correct, the answer to the question "When is /dev populated?"
is "when that tmpfs is mounted on it (on /dev). And since this mount
can be done by systemd, systemd can populate /dev.
So William is right too.
--
Thanos
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page
Do not top post on this list.
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
http://en.wikipedia.org/wiki/Posting_style