summaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorJonathan Bauer2013-02-25 17:39:16 +0100
committerJonathan Bauer2013-02-25 17:39:16 +0100
commit64b52244915f7a73403d54f5316bb2c3bd33239b (patch)
tree4034cd78b7d6bd78205e9e044757f3e374da9368 /data
parentMerge branch 'master' of ssh://openslx/openslx-ng/tm-scripts (diff)
downloadtm-scripts-64b52244915f7a73403d54f5316bb2c3bd33239b.tar.gz
tm-scripts-64b52244915f7a73403d54f5316bb2c3bd33239b.tar.xz
tm-scripts-64b52244915f7a73403d54f5316bb2c3bd33239b.zip
?
Diffstat (limited to 'data')
-rwxr-xr-xdata/stage3.1/init6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/stage3.1/init b/data/stage3.1/init
index 14516a50..f25ddc7b 100755
--- a/data/stage3.1/init
+++ b/data/stage3.1/init
@@ -21,6 +21,8 @@ mount -n -t tmpfs -o 'mode=755' run "/run"
[ ! -f /proc/cpuinfo ] && mount -n -t proc proc /proc
[ ! -d /sys/class ] && mount -n -t sysfs sysfs /sys
+echo "/sbin/mdev" > /proc/sys/kernel/hotplug
+
# read primary graphic adaptor configuration (without proprietary drivers yet)
( hwinfo --gfxcard > /etc/hwinfo ) &
@@ -36,7 +38,9 @@ mount -n -t aufs -o br:/dev/shm/uniontmp:/rorootfs=ro none /mnt
mkdir -p /mnt/uniontmp /mnt/tmp
mount -n --move /dev/shm/uniontmp /mnt/uniontmp
-ln -sf /mnt/lib /
+[ ! -d /lib ] && unlink /lib && mkdir /lib
+mount --bind /mnt/lib /lib
+#ln -sf /mnt/lib /
cat /proc/uptime >/mnt/tmp/runtime