X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Fboot.sh;h=c031f00384602bbcfcf26f10dec8e8fe8ad23c2c;hb=3b0def1c54e6cd384d1514b26fbf28b091638808;hp=9539496ad24db2bb59a8c538f8acb07e3675ab5c;hpb=91f7dd99ace16941e74e0b4d4889e46b39194429;p=live-boot-grml.git diff --git a/scripts/boot.sh b/scripts/boot.sh index 9539496..c031f00 100755 --- a/scripts/boot.sh +++ b/scripts/boot.sh @@ -2,66 +2,10 @@ # set -e -if [ -e /scripts/functions ] -then - # initramfs-tools specific (FIXME) - . /scripts/functions -fi - -for _SCRIPT in /lib/live/boot/* +for _SCRIPT in /lib/live/boot/????-* do if [ -e "${_SCRIPT}" ] then . ${_SCRIPT} fi done - -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/image" -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 - -old_root_overlay_label="live-rw" -old_home_overlay_label="home-rw" -custom_overlay_label="persistence" -persistence_list="live-persistence.conf" - -if [ ! -f /live.vars ] -then - touch /live.vars -fi