r/linuxfromscratch • • Dec 25 '20

Initial device nodes overwritten by `/dev` mount

In LFS 7.3.1, we are instructed to create console and null devices in $LFS/dev using mknod. But right after, in 7.3.2, we bind mount /dev onto $LFS/dev, which overwrites these devices (or, at the very least, changes their permissions).

Is this a mistake? Should these steps be inverted?

2 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/cynoelectrophoresis Dec 25 '20

Good point. Perhaps they'll be needed once I stop relying on the host kernel. Guess I'll see.