summaryrefslogtreecommitdiff
path: root/components/9990-aaa-fixme.sh
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2013-06-24 21:38:08 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2013-06-24 21:38:08 +0200
commita331218718282c5496ff062a0f6aa55908224862 (patch)
treed42688bb069ed11d54ca122c64884661c2f2bcd8 /components/9990-aaa-fixme.sh
parent0aa07bd386f516176364e710e8b9132036c72986 (diff)
downloadlive-boot-a331218718282c5496ff062a0f6aa55908224862.tar.gz
live-boot-a331218718282c5496ff062a0f6aa55908224862.zip
Reorganizing components in source tree.
Diffstat (limited to 'components/9990-aaa-fixme.sh')
-rwxr-xr-xcomponents/9990-aaa-fixme.sh50
1 files changed, 50 insertions, 0 deletions
diff --git a/components/9990-aaa-fixme.sh b/components/9990-aaa-fixme.sh
new file mode 100755
index 0000000..416d6b4
--- /dev/null
+++ b/components/9990-aaa-fixme.sh
@@ -0,0 +1,50 @@
+#!/bin/sh
+
+export PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
+
+echo "/root/lib" >> /etc/ld.so.conf
+echo "/root/usr/lib" >> /etc/ld.so.conf
+
+mountpoint="/live/medium"
+alt_mountpoint="/media"
+LIVE_MEDIA_PATH="live"
+
+HOSTNAME="host"
+
+mkdir -p "${mountpoint}"
+tried="/tmp/tried"
+
+# Create /etc/mtab for debug purpose and future syncs
+if [ ! -d /etc ]
+then
+ mkdir /etc/
+fi
+
+if [ ! -f /etc/mtab ]
+then
+ touch /etc/mtab
+fi
+
+if [ ! -x "/bin/fstype" ]
+then
+ # klibc not in path -> not in initramfs
+ export PATH="${PATH}:/usr/lib/klibc/bin"
+fi
+
+# handle upgrade path from old udev (using udevinfo) to
+# recent versions of udev (using udevadm info)
+if [ -x /sbin/udevadm ]
+then
+ udevinfo='/sbin/udevadm info'
+else
+ udevinfo='udevinfo'
+fi
+
+custom_overlay_label="persistence"
+persistence_list="persistence.conf"
+old_persistence_list="live-persistence.conf"
+
+if [ ! -f /live.vars ]
+then
+ touch /live.vars
+fi