summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorSimon Rettberg2019-06-25 16:32:40 +0200
committerSimon Rettberg2019-06-25 16:32:40 +0200
commit4f72ba44e31acfccdf8b5cf12a88326add6bb159 (patch)
treec8fb78d70a25c5248d9c9923a9d8251e9d403eef /core
parent[vbox-src] Overhaul CPU config, remove USB overrides (diff)
downloadmltk-4f72ba44e31acfccdf8b5cf12a88326add6bb159.tar.gz
mltk-4f72ba44e31acfccdf8b5cf12a88326add6bb159.tar.xz
mltk-4f72ba44e31acfccdf8b5cf12a88326add6bb159.zip
[rootfs-stage31] Silence messages from initial hotplug trigger
Diffstat (limited to 'core')
-rwxr-xr-xcore/rootfs/rootfs-stage31/data/init8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/rootfs/rootfs-stage31/data/init b/core/rootfs/rootfs-stage31/data/init
index 90439500..ce195961 100755
--- a/core/rootfs/rootfs-stage31/data/init
+++ b/core/rootfs/rootfs-stage31/data/init
@@ -22,19 +22,19 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin
# import common functions
. "/inc/functions"
+# NOTE: busybox mount is only available through the busybox binary,
+# the link had to be dropped, to prevent bugs in the stage32.
# mount the important standard directories
mkdir -p /tmp /proc /sys /dev /run
+busybox mount -n -t devtmpfs -o 'rw,relatime,nosuid,noexec,mode=0755' initramfsdevs /dev
[ ! -f /proc/cpuinfo ] && busybox mount -n -t proc proc /proc
echo "/sbin/hotplug" > "/proc/sys/kernel/hotplug"
bench_event "KERNEL" "Kernel initialized"
[ ! -d /sys/class ] && busybox mount -n -t sysfs sysfs /sys
-find /sys/devices/pci* -type f -name modalias -exec /sbin/hotplug --file {} \; &
+find /sys/devices/pci* -type f -name modalias -exec /sbin/hotplug --file {} \; &> /dev/null &
HOTPLUG=$!
-# NOTE: busybox mount is only available through the busybox binary,
-# the link had to be dropped, to prevent bugs in the stage32.
-busybox mount -n -t devtmpfs -o 'rw,relatime,nosuid,noexec,mode=0755' initramfsdevs /dev
busybox mount -n -t tmpfs -o 'mode=755,size=10m' run "/run"
busybox mount -n -t tmpfs -o 'mode=755,size=50m' temp "/tmp"