Adding upstream version 4.0~a1.
[debian-live-boot.git] / scripts / boot / 9990-aaa-fixme.sh
blob416d6b421156b25edc5793bbff0943c7205c2e16
1 #!/bin/sh
3 export PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbin:/bin:/sbin"
5 echo "/root/lib" >> /etc/ld.so.conf
6 echo "/root/usr/lib" >> /etc/ld.so.conf
8 mountpoint="/live/medium"
9 alt_mountpoint="/media"
10 LIVE_MEDIA_PATH="live"
12 HOSTNAME="host"
14 mkdir -p "${mountpoint}"
15 tried="/tmp/tried"
17 # Create /etc/mtab for debug purpose and future syncs
18 if [ ! -d /etc ]
19 then
20 mkdir /etc/
23 if [ ! -f /etc/mtab ]
24 then
25 touch /etc/mtab
28 if [ ! -x "/bin/fstype" ]
29 then
30 # klibc not in path -> not in initramfs
31 export PATH="${PATH}:/usr/lib/klibc/bin"
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'
43 custom_overlay_label="persistence"
44 persistence_list="persistence.conf"
45 old_persistence_list="live-persistence.conf"
47 if [ ! -f /live.vars ]
48 then
49 touch /live.vars