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