416d6b421156b25edc5793bbff0943c7205c2e16
[live-boot-grml.git] / scripts / boot / 9990-aaa-fixme.sh
1 #!/bin/sh
2
3 export PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4
5 echo "/root/lib" >> /etc/ld.so.conf
6 echo "/root/usr/lib" >> /etc/ld.so.conf
7
8 mountpoint="/live/medium"
9 alt_mountpoint="/media"
10 LIVE_MEDIA_PATH="live"
11
12 HOSTNAME="host"
13
14 mkdir -p "${mountpoint}"
15 tried="/tmp/tried"
16
17 # Create /etc/mtab for debug purpose and future syncs
18 if [ ! -d /etc ]
19 then
20         mkdir /etc/
21 fi
22
23 if [ ! -f /etc/mtab ]
24 then
25         touch /etc/mtab
26 fi
27
28 if [ ! -x "/bin/fstype" ]
29 then
30         # klibc not in path -> not in initramfs
31         export PATH="${PATH}:/usr/lib/klibc/bin"
32 fi
33
34 # handle upgrade path from old udev (using udevinfo) to
35 # recent versions of udev (using udevadm info)
36 if [ -x /sbin/udevadm ]
37 then
38         udevinfo='/sbin/udevadm info'
39 else
40         udevinfo='udevinfo'
41 fi
42
43 custom_overlay_label="persistence"
44 persistence_list="persistence.conf"
45 old_persistence_list="live-persistence.conf"
46
47 if [ ! -f /live.vars ]
48 then
49         touch /live.vars
50 fi