diff options
author | Christian Rößler | 2019-06-25 16:38:53 +0200 |
---|---|---|
committer | Christian Rößler | 2019-06-25 16:38:53 +0200 |
commit | c80a3e23ca41e661a0574e9f4c52dfb7a4a9db96 (patch) | |
tree | 5cc66d30feb575fd966b88aa803101223f0aa4d3 /core | |
parent | [run-virt] Linux scripts +adminrun (diff) | |
parent | [rootfs-stage31] Silence messages from initial hotplug trigger (diff) | |
download | mltk-c80a3e23ca41e661a0574e9f4c52dfb7a4a9db96.tar.gz mltk-c80a3e23ca41e661a0574e9f4c52dfb7a4a9db96.tar.xz mltk-c80a3e23ca41e661a0574e9f4c52dfb7a4a9db96.zip |
Merge branch 'master' of git.openslx.org:openslx-ng/mltk
Diffstat (limited to 'core')
-rwxr-xr-x | core/rootfs/rootfs-stage31/data/init | 8 |
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" |