summaryrefslogtreecommitdiffstats
path: root/data/stage3.1/init
diff options
context:
space:
mode:
authorJonathan Bauer2013-02-21 12:23:16 +0100
committerJonathan Bauer2013-02-21 12:23:16 +0100
commitf1d2a176caae51bf1dac6127c1b4303cbce7515a (patch)
tree53e02f7cf571995438e34e034e3f9ea78e08b125 /data/stage3.1/init
parent[systemd] kmod variable fix (diff)
downloadtm-scripts-f1d2a176caae51bf1dac6127c1b4303cbce7515a.tar.gz
tm-scripts-f1d2a176caae51bf1dac6127c1b4303cbce7515a.tar.xz
tm-scripts-f1d2a176caae51bf1dac6127c1b4303cbce7515a.zip
[core] stage31 lib as symlink to use /mnt/lib when squashfs is mounted
Diffstat (limited to 'data/stage3.1/init')
-rwxr-xr-xdata/stage3.1/init5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/stage3.1/init b/data/stage3.1/init
index c51abbea..7e633ff9 100755
--- a/data/stage3.1/init
+++ b/data/stage3.1/init
@@ -13,6 +13,7 @@
#############################################################################
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/openslx/bin:/openslx/sbin
+export LD_LIBRARY_PATH=/openslx/lib
mount -n -t tmpfs -o 'mode=755' run "/run"
@@ -35,7 +36,7 @@ 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 -s /mnt/lib/modules /lib/
+ln -sf /mnt/lib /
cat /proc/uptime >/mnt/tmp/runtime
@@ -67,6 +68,8 @@ case $(cat /etc/hwinfo) in
esac
( modprobe -a drm fbcon; mdev -s ) &
+#ln -s /mnt/share /
+
# load required network and usb controller drivers, filter out wireless adaptors
while ps | grep -v grep | grep -q " hwinfo --netcard" ; do usleep 10 ; done
nwcardlist="forcedeth|e1000e|e1000|e100|tg3|via-rhine|r8169|pcnet32"