summaryrefslogtreecommitdiffstats
path: root/core/rootfs/rootfs-stage31/data
diff options
context:
space:
mode:
authorJonathan Bauer2019-07-08 16:34:45 +0200
committerJonathan Bauer2019-07-08 16:34:45 +0200
commit5461e434d24d01989efc523ced78c21e4e94e5ad (patch)
tree94c8900a4652ff3bdb56e3c5b9e61533a20d7b5e /core/rootfs/rootfs-stage31/data
parent[xorg] add xterm (diff)
parent[run-virt] Add --query to check existence of plugin (diff)
downloadmltk-5461e434d24d01989efc523ced78c21e4e94e5ad.tar.gz
mltk-5461e434d24d01989efc523ced78c21e4e94e5ad.tar.xz
mltk-5461e434d24d01989efc523ced78c21e4e94e5ad.zip
Merge branch 'master' into installer
Diffstat (limited to 'core/rootfs/rootfs-stage31/data')
-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 9717ca11..a9bcd1c3 100755
--- a/core/rootfs/rootfs-stage31/data/init
+++ b/core/rootfs/rootfs-stage31/data/init
@@ -31,19 +31,19 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/openslx/bin:/opt/openslx/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"