.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
-.TH LIVE\-BOOT 7 28.06.2012 3.0~a35\-1 "Debian Live Project"
+.TH LIVE\-BOOT 7 18.07.2012 3.0~a36\-1 "Debian Live Project"
.SH NAME
\fBlive\-boot\fP \- System Boot Scripts
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
-.TH LIVE\-BOOT conf 28.06.2012 3.0~a35\-1 "Debian Live Project"
+.TH LIVE\-BOOT conf 18.07.2012 3.0~a36\-1 "Debian Live Project"
.SH NAME
\fBlive\-persistence.conf\fP \- Configuration file for persistence media in
-.TH LIVE\-BOOT 7 2012\-06\-28 3.0~a35-1 "Debian Live Project"
+.TH LIVE\-BOOT 7 2012\-07\-18 3.0~a36-1 "Debian Live Project"
.SH NAME
\fBlive\-boot\fR \- System Boot Scripts
-.TH LIVE\-BOOT conf 2012\-06\-28 3.0~a35-1 "Debian Live Project"
+.TH LIVE\-BOOT conf 2012\-07\-18 3.0~a36-1 "Debian Live Project"
.SH NAME
\fBlive-persistence.conf\fR \- Configuration file for persistence media in
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
-.TH LIVE\-BOOT 7 28.06.2012 3.0~a35\-1 "Proyecto Debian Live"
+.TH LIVE\-BOOT 7 18.07.2012 3.0~a36\-1 "Proyecto Debian Live"
.SH NOMBRE
\fBlive\-boot\fP \- Scripts de Arranque del Sistema
.\" This file was generated with po4a. Translate the source file.
.\"
.\"*******************************************************************
-.TH LIVE\-BOOT conf 28.06.2012 3.0~a35\-1 "Proyecto Debian Live"
+.TH LIVE\-BOOT conf 18.07.2012 3.0~a36\-1 "Proyecto Debian Live"
.SH NOMBRE
\fBlive\-persistence.conf\fP \- Fichero para configurar medios de almacenamiento
msgid ""
msgstr ""
"Project-Id-Version: live-boot 3.0~a35-1\n"
-"POT-Creation-Date: 2012-06-28 14:28+0300\n"
+"POT-Creation-Date: 2012-07-18 23:56+0300\n"
"PO-Revision-Date: 2012-04-08 22:48+0300\n"
"Last-Translator: Daniel Baumann <daniel@debian.org>\n"
"Language-Team: none\n"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "2012-06-28"
-msgstr "28.06.2012"
+msgid "2012-07-18"
+msgstr "18.07.2012"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "3.0~a35-1"
+msgid "3.0~a36-1"
msgstr ""
#. type: TH
msgid ""
msgstr ""
"Project-Id-Version: live-boot 3.0~a35-1\n"
-"POT-Creation-Date: 2012-06-28 14:28+0300\n"
+"POT-Creation-Date: 2012-07-18 23:56+0300\n"
"PO-Revision-Date: 2012-04-08 22:48+0300\n"
"Last-Translator: Daniel Baumann <daniel@debian.org>\n"
"Language-Team: none\n"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "2012-06-28"
-msgstr "28.06.2012"
+msgid "2012-07-18"
+msgstr "18.07.2012"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "3.0~a35-1"
+msgid "3.0~a36-1"
msgstr ""
#. type: TH
msgid ""
msgstr ""
"Project-Id-Version: live-boot 3.0~a35-1\n"
-"POT-Creation-Date: 2012-06-28 14:28+0300\n"
+"POT-Creation-Date: 2012-07-18 23:56+0300\n"
"PO-Revision-Date: 2012-06-07 20:29+0200\n"
"Last-Translator: Carlos Zuferri «chals» <chals@altorricon.com>\n"
"Language-Team: none\n"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "2012-06-28"
-msgstr "28.06.2012"
+msgid "2012-07-18"
+msgstr "18.07.2012"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "3.0~a35-1"
-msgstr "3.0~a35-1"
+msgid "3.0~a36-1"
+msgstr "3.0~a36-1"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
msgid ""
msgstr ""
"Project-Id-Version: live-boot 3.0~a35-1\n"
-"POT-Creation-Date: 2012-06-28 14:28+0300\n"
+"POT-Creation-Date: 2012-07-18 23:56+0300\n"
"PO-Revision-Date: 2012-06-07 19:11+0200\n"
"Last-Translator: Carlos Zuferri «chals» <chals@altorricon.com>\n"
"Language-Team: none\n"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "2012-06-28"
-msgstr "28.06.2012"
+msgid "2012-07-18"
+msgstr "18.07.2012"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "3.0~a35-1"
-msgstr "3.0~a35-1"
+msgid "3.0~a36-1"
+msgstr "3.0~a36-1"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
msgid ""
msgstr ""
"Project-Id-Version: live-boot VERSION\n"
-"POT-Creation-Date: 2012-06-28 14:28+0300\n"
+"POT-Creation-Date: 2012-07-18 23:56+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "2012-06-28"
+msgid "2012-07-18"
msgstr ""
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "3.0~a35-1"
+msgid "3.0~a36-1"
msgstr ""
#. type: TH
msgid ""
msgstr ""
"Project-Id-Version: live-boot VERSION\n"
-"POT-Creation-Date: 2012-06-28 14:28+0300\n"
+"POT-Creation-Date: 2012-07-18 23:56+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "2012-06-28"
+msgid "2012-07-18"
msgstr ""
#. type: TH
#: en/live-boot.7:1 en/live-persistence.conf.5:1
#, no-wrap
-msgid "3.0~a35-1"
+msgid "3.0~a36-1"
msgstr ""
#. type: TH
# 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
--- /dev/null
+#!/bin/sh
+
+#set -e
+
+DRACUT_FIXME ()
+{
+ # dracut entry point for live-boot is FIXME(); function
+ Main
+}
--- /dev/null
+#!/bin/sh
+
+#set -e
+
+mountroot ()
+{
+ # initramfs-tools entry point for live-boot is mountroot(); function
+ Main
+}
--- /dev/null
+#!/bin/sh
+
+#set -e
+
+Cmdline ()
+{
+ for _PARAMETER in ${_CMDLINE}
+ do
+ case "${_PARAMETER}" in
+ live-boot.read-only|read-only)
+ LIVE_READ_ONLY="true"
+ ;;
+
+ live-boot.swapon=*|swapon=*)
+ LIVE_SWAPON="true"
+ LIVE_SWAPON_DEVICES="${_PARAMETER#*swapon=}"
+ ;;
+
+ live-boot.swapon|swapon)
+ LIVE_SWAPON="true"
+ ;;
+
+ live-boot.verify-checksums|verify-checksums)
+ LIVE_VERIFY_CHECKSUMS="true"
+ ;;
+
+ # Special options
+ live-boot.debug|debug)
+ LIVE_DEBUG="true"
+ ;;
+ esac
+ done
+}
continue
fi
- echo -n "Setting ${_DEVICE} read-only..." > /dev/console
+ echo -n "live-boot: Setting ${_DEVICE} read-only..." > /dev/console
blockdev --setro ${_DEVICE}
_RETURN="${?}"
Swapon ()
{
- _DEVICES="/dev/sd* /dev/vd*"
+ if [ "${LIVE_SWAPON}" != "true" ]
+ then
+ return 0
+ fi
+
+ LIVE_SWAPON_DEVICES="${LIVE_SWAPON_DEVICES:-/dev/sd* /dev/vd*}"
if [ -e /run ]
then
_FSTAB="/root/etc/fstab"
fi
- for _DEVICE in ${_DEVICES}
+ for _DEVICE in $(echo ${LIVE_SWAPON_DEVICES} | sed -e 's|,| |g')
do
if [ ! -b "${_DEVICE}" ]
then
fi
# Add new swap entries
- for _DEVICE in _SWAP_DEVICES
+ for _DEVICE in ${_SWAP_DEVICES}
do
echo "${_DEVICE} swap swap defaults 0 0" >> "${_FSTAB}"
done
--- /dev/null
+#!/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
#set -e
-Cmdline ()
+Cmdline_old ()
{
for _PARAMETER in ${_CMDLINE}
do
case "${_PARAMETER}" in
- live-boot.read-only|read-only)
- LIVE_READ_ONLY="true"
- ;;
-
- live-boot.swapon)
- LIVE_SWAPON="true"
- ;;
-
- live-boot.verify-checksums|verify-checksums)
- LIVE_VERIFY_CHECKSUMS="true"
- ;;
-
- # Special options
- live-boot.debug|debug)
- LIVE_DEBUG="true"
- ;;
-
-
- # parameters below need review (FIXME)
skipconfig)
NOFSTAB="true"
NONETWORKING="true"
# set -e
-mountroot ()
+Main ()
{
if [ -x /scripts/local-top/cryptroot ]
then
_CMDLINE="$(cat /proc/cmdline)"
Cmdline
+ Cmdline_old
case "${LIVE_DEBUG}" in
true)
--- /dev/null
+scripts overview
+
+00xx initramfs "bootstrapping"
+
+0xxx live-boot internals
+
+1xxx find and mount rootfs
+
+2xxx find and mount persistence
+
+3xxx anything after that involves read or write access to the rootfs