Skip to content

Commit

Permalink
Renaming boot scripts for refactoring them into numbered plugins.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-baumann committed Jul 18, 2012
1 parent 4640db7 commit 2e70d7b
Show file tree
Hide file tree
Showing 20 changed files with 58 additions and 57 deletions.
58 changes: 1 addition & 57 deletions scripts/boot.sh
Expand Up @@ -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
57 changes: 57 additions & 0 deletions scripts/boot/9990-aaa-fixme.sh
@@ -0,0 +1,57 @@
#!/bin/sh

if [ -e /scripts/functions ]
then
# initramfs-tools specific (FIXME)
. /scripts/functions
fi

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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2e70d7b

Please sign in to comment.