Hi !

I just stumbled about a disordering of operations in docs/mdev.txt:

---cut-here---
Basic Use
...
[0] mount -t proc proc /proc
[1] mount -t sysfs sysfs /sys
[2] echo /sbin/mdev > /proc/sys/kernel/hotplug
[3] mdev -s

Alternatively, without procfs the above becomes:
[1] mount -t sysfs sysfs /sys
[2] sysctl -w kernel.hotplug=/sbin/mdev
[3] mdev -s

Of course, a more "full" setup would entail executing this before the previous
code snippet:
[4] mount -t tmpfs -o size=64k,mode=0755 tmpfs /dev
[5] mkdir /dev/pts
[6] mount -t devpts devpts /dev/pts
---cut-here---

Look at the order of steps [3] and [4]. If you do "mdev -s" you populate the current /dev. In step [4] then you mount a tmpfs over the populated dev directory. This will result in a visible empty dev directory, as the populated directory gets hidden by the mounted tmpfs. So the order of steps should be 0, 1, 2, 4, 5, 6 then 3.

Would be better someone changes the doc, as I'm not a native English speaker.

--
Harald

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to