Replace mdev with udev in init script and don't mount /proc twice.
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
# process == program to run
|
# process == program to run
|
||||||
|
|
||||||
# Startup the system
|
# Startup the system
|
||||||
::sysinit:/bin/mount -t proc proc /proc
|
# ::sysinit:/bin/mount -t proc proc /proc
|
||||||
::sysinit:/bin/mount -o remount,rw /
|
::sysinit:/bin/mount -o remount,rw /
|
||||||
::sysinit:/bin/mkdir -p /dev/pts /dev/shm
|
::sysinit:/bin/mkdir -p /dev/pts /dev/shm
|
||||||
::sysinit:/bin/mount -a
|
::sysinit:/bin/mount -a
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
# Buildroot's default inittab for BusyBox.
|
# Buildroot's default inittab for BusyBox.
|
||||||
id:3:initdefault:
|
id:3:initdefault:
|
||||||
|
|
||||||
si0::sysinit:/bin/mount -t proc proc /proc
|
# si0::sysinit:/bin/mount -t proc proc /proc
|
||||||
si1::sysinit:/bin/mount -o remount,rw /
|
si1::sysinit:/bin/mount -o remount,rw /
|
||||||
si2::sysinit:/bin/mkdir -p /dev/pts /dev/shm
|
si2::sysinit:/bin/mkdir -p /dev/pts /dev/shm
|
||||||
si3::sysinit:/bin/mount -a
|
si3::sysinit:/bin/mount -a
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ fi
|
|||||||
|
|
||||||
mount -t sysfs sysfs /sys
|
mount -t sysfs sysfs /sys
|
||||||
|
|
||||||
mdev -s
|
mount -t devtmpfs -o nosuid,mode=0755 devtmpfs /dev
|
||||||
|
|
||||||
mkdir -p /dev/pts
|
mkdir -p /dev/pts
|
||||||
mkdir -p /dev/shm
|
mkdir -p /dev/shm
|
||||||
@@ -53,6 +53,7 @@ mount -n -o move /proc /rootfs/proc
|
|||||||
mount -n -o move /sys /rootfs/sys
|
mount -n -o move /sys /rootfs/sys
|
||||||
mount -n -o move /run /rootfs/run
|
mount -n -o move /run /rootfs/run
|
||||||
mount -n -o move /tmp /rootfs/tmp
|
mount -n -o move /tmp /rootfs/tmp
|
||||||
|
mount -n -o move /dev /rootfs/dev
|
||||||
mount -n -o move /dev/shm /rootfs/dev/shm
|
mount -n -o move /dev/shm /rootfs/dev/shm
|
||||||
mount -n -o move /dev/pts /rootfs/dev/pts
|
mount -n -o move /dev/pts /rootfs/dev/pts
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user