diff options
| author | Daniel Baumann <daniel@debian.org> | 2012-07-02 17:40:11 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2012-07-18 23:34:15 +0200 |
| commit | 2e70d7be610c9e45787c37352d36241de3c155d7 (patch) | |
| tree | 907ee7a7f6f49d4a3e3ece474a270b09b1bfd2e6 /scripts/boot.sh | |
| parent | 4640db7ffcef9dbc7e335d4c0323a7920a178b04 (diff) | |
| download | live-boot-2e70d7be610c9e45787c37352d36241de3c155d7.tar.gz live-boot-2e70d7be610c9e45787c37352d36241de3c155d7.zip | |
Renaming boot scripts for refactoring them into numbered plugins.
Diffstat (limited to 'scripts/boot.sh')
| -rwxr-xr-x | scripts/boot.sh | 58 |
1 files changed, 1 insertions, 57 deletions
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 |
