a8fc6e8b7c91cdd6af14966fb1345542a397bb47
[live-boot-grml.git] / components / 9990-aaa-fixme.sh
1 #!/bin/sh
2
3 PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
4 export PATH
5
6 echo "/root/lib" >> /etc/ld.so.conf
7 echo "/root/usr/lib" >> /etc/ld.so.conf
8
9 mountpoint="/live/medium"
10 alt_mountpoint="/media"
11 LIVE_MEDIA_PATH="live"
12
13 HOSTNAME="host"
14
15 mkdir -p "${mountpoint}"
16 mkdir -p /var/lib/live/boot
17
18 # Create /etc/mtab for debug purpose and future syncs
19 mkdir -p /etc
20
21 if [ ! -f /etc/mtab ]
22 then
23         touch /etc/mtab
24 fi
25
26 if [ ! -x "/bin/fstype" ]
27 then
28         # klibc not in path -> not in initramfs
29         PATH="${PATH}:/usr/lib/klibc/bin"
30         export PATH
31 fi
32
33 custom_overlay_label="persistence"
34 persistence_list="persistence.conf"
35
36 if [ ! -f /live.vars ]
37 then
38         touch /live.vars
39 fi