Adding upstream version 3.0~b1. upstream/3.0_b1
authorDaniel Baumann <daniel@debian.org>
Thu, 16 Aug 2012 10:24:30 +0000 (12:24 +0200)
committerDaniel Baumann <daniel@debian.org>
Thu, 16 Aug 2012 10:26:37 +0000 (12:26 +0200)
28 files changed:
Makefile
VERSION
backends/initramfs-tools/live.hook
bin/live-new-uuid [deleted file]
manpages/de/live-boot.de.7
manpages/de/live-persistence.conf.de.5
manpages/en/live-boot.7
manpages/en/live-persistence.conf.5
manpages/es/live-boot.es.7
manpages/es/live-persistence.conf.es.5
manpages/po/de/live-boot.7.po
manpages/po/de/live-persistence.conf.5.po
manpages/po/es/live-boot.7.po
manpages/po/es/live-persistence.conf.5.po
manpages/pot/live-boot.7.pot
manpages/pot/live-persistence.conf.5.pot
scripts/boot.sh
scripts/boot/0020-initramfs-tools
scripts/boot/0110-debug
scripts/boot/0120-read-only
scripts/boot/3010-verify-checksums
scripts/boot/3020-swapon
scripts/boot/9990-aaa-fixme.sh
scripts/boot/9990-main.sh
scripts/boot/9990-netbase.sh
scripts/boot/9990-networking.sh
scripts/boot/9990-overlay.sh
scripts/boot/README

index b3c7ba2..9d03254 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ SHELL := sh -e
 
 LANGUAGES = $(shell cd manpages/po && ls)
 
 
 LANGUAGES = $(shell cd manpages/po && ls)
 
-SCRIPTS = backends/*/* bin/* scripts/*.sh scripts/*/*
+SCRIPTS = backends/*/* bin/* scripts/*.sh scripts/*/*-*
 
 all: build
 
 
 all: build
 
@@ -46,9 +46,6 @@ install:
        cp -r scripts/boot.sh scripts/boot $(DESTDIR)/lib/live
 
        # Installing executables
        cp -r scripts/boot.sh scripts/boot $(DESTDIR)/lib/live
 
        # Installing executables
-       mkdir -p $(DESTDIR)/sbin
-       cp bin/live-new-uuid bin/live-swapfile $(DESTDIR)/sbin
-
        mkdir -p $(DESTDIR)/usr/share/initramfs-tools/hooks
        cp backends/initramfs-tools/live.hook $(DESTDIR)/usr/share/initramfs-tools/hooks/live
        mkdir -p $(DESTDIR)/usr/share/initramfs-tools/scripts
        mkdir -p $(DESTDIR)/usr/share/initramfs-tools/hooks
        cp backends/initramfs-tools/live.hook $(DESTDIR)/usr/share/initramfs-tools/hooks/live
        mkdir -p $(DESTDIR)/usr/share/initramfs-tools/scripts
diff --git a/VERSION b/VERSION
index cf9496d..cd57b67 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-3.0~a38-1
+3.0~b1-1
index 78aae2e..89420b6 100755 (executable)
@@ -6,19 +6,15 @@ set -e
 
 [ "${QUIET}" ] || echo -n "live-boot:"
 
 
 [ "${QUIET}" ] || echo -n "live-boot:"
 
-# Reading configuration files
-if [ -e /etc/live/boot.conf ]
-then
-       . /etc/live/boot.conf
-fi
-
-if ls /etc/live/boot.d/*.conf > /dev/null 2>&1
-then
-       for _FILE in /etc/live/boot.d/*.conf
-       do
-               . ${_FILE}
-       done
-fi
+# Reading configuration file from filesystem and live-media
+for _FILE in /etc/live/boot.conf /etc/live/boot/* \
+            /live/image/live/boot.conf /live/image/live/boot/*
+do
+       if [ -e "${_FILE}" ]
+       then
+               . "${_FILE}"
+       fi
+done
 
 # Checking live-boot
 if [ ! -e /lib/live/boot ]
 
 # Checking live-boot
 if [ ! -e /lib/live/boot ]
@@ -46,11 +42,7 @@ done
 # udev dependencies
 for FILE in /lib/udev/*_id
 do
 # udev dependencies
 for FILE in /lib/udev/*_id
 do
-       if [ ! -e "${DESTDIR}/${FILE}" ]
-       then
-               mkdir -p "${DESTDIR}/lib/udev"
-               copy_exec "${FILE}" /lib/udev
-       fi
+       copy_exec "${FILE}"
 done
 
 # wheezy/sid
 done
 
 # wheezy/sid
@@ -65,7 +57,7 @@ fi
 # Configuration: keymap (usefull when using encryption)
 if [ -x /bin/loadkeys ] && [ -r /etc/console/boottime.kmap.gz ]
 then
 # Configuration: keymap (usefull when using encryption)
 if [ -x /bin/loadkeys ] && [ -r /etc/console/boottime.kmap.gz ]
 then
-       copy_exec /bin/loadkeys /bin
+       copy_exec /bin/loadkeys
 
        mkdir -p "${DESTDIR}"/etc
        cp /etc/console/boottime.kmap.gz "${DESTDIR}"/etc
 
        mkdir -p "${DESTDIR}"/etc
        cp /etc/console/boottime.kmap.gz "${DESTDIR}"/etc
@@ -84,7 +76,7 @@ manual_add_modules btrfs
 # Filesystem: cifs
 if [ -x /sbin/mount.cifs ]
 then
 # Filesystem: cifs
 if [ -x /sbin/mount.cifs ]
 then
-       copy_exec /sbin/mount.cifs /sbin
+       copy_exec /sbin/mount.cifs
         manual_add_modules cifs
 fi
 
         manual_add_modules cifs
 fi
 
@@ -101,7 +93,7 @@ then
 fi
 
 # Filesystem: squashfs
 fi
 
 # Filesystem: squashfs
-copy_exec /sbin/losetup /sbin
+copy_exec /sbin/losetup
 manual_add_modules loop
 manual_add_modules squashfs
 manual_add_modules sqlzma
 manual_add_modules loop
 manual_add_modules squashfs
 manual_add_modules sqlzma
@@ -166,7 +158,7 @@ fi
 if [ -x /sbin/udevadm ]
 then
        [ "${QUIET}" ] || echo -n " udev"
 if [ -x /sbin/udevadm ]
 then
        [ "${QUIET}" ] || echo -n " udev"
-       copy_exec /sbin/udevadm /sbin
+       copy_exec /sbin/udevadm
 fi
 if [ -x /usr/bin/udevinfo ]
 then
 fi
 if [ -x /usr/bin/udevinfo ]
 then
@@ -185,7 +177,7 @@ fi
 if [ -x /sbin/blockdev ]
 then
        [ "${QUIET}" ] || echo -n " blockdev"
 if [ -x /sbin/blockdev ]
 then
        [ "${QUIET}" ] || echo -n " blockdev"
-       copy_exec /sbin/blockdev /sbin
+       copy_exec /sbin/blockdev
 fi
 
 # FUSE kernel module
 fi
 
 # FUSE kernel module
@@ -225,13 +217,18 @@ case "${LIVE_DNS}" in
        true)
                [ "${QUIET}" ] || echo -n " dns"
 
        true)
                [ "${QUIET}" ] || echo -n " dns"
 
-               #copy_exec /lib/libnss_files.so.*      /lib  # /etc/hosts and /etc/passwd
-               copy_exec /lib/libnss_dns.so.*      /lib  # DNS server
-               #copy_exec /lib/libnss_compat.so.*      /lib  # /etc/passwd
+               # /lib/libnss_dns.so.*:a   DNS
+               # /lib/libnss_files.so.*:  /etc/hosts and /etc/passwd
+               # /lib/libnss_compat.so.*: /etc/passwd
+
+               for _SHLIB in $(find /lib -name 'libnss_dns.so.*')
+               do
+                       copy_exec "${_SHLIB}"
+               done
 
 
-               # Configuration file - may be needed if /etc/hosts is used.
-               #mkdir -p $DESTDIR/etc
-               #cp -p /etc/nsswitch.conf $DESTDIR/etc
+               # might be needed if /etc/hosts is used
+               #mkdir -p "${DESTDIR}/etc"
+               #cp -p /etc/nsswitch.conf "${DESTDIR}/etc"
                ;;
 esac
 
                ;;
 esac
 
diff --git a/bin/live-new-uuid b/bin/live-new-uuid
deleted file mode 100755 (executable)
index 2e29f6a..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-#!/bin/sh
-# -*- coding: utf-8 -*-
-#
-# «live-new-uuid» - Creates and injects new UUIDs for live disks
-#
-# Create new UUIDs for disks to prevent conflicts and booting the wrong live
-# directory.  Particularly useful in creating recovery disks that need to be
-# able to also work with recovery partitioning schemes.
-#
-# Copyright (C) 2008, Dell Inc.
-#
-# Author:
-#  - Mario Limonciello <Mario_Limonciello@Dell.com>
-#
-# This script is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free
-# Software Foundation; either version 2 of the License, or at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along
-# with this application; if not, write to the Free Software Foundation, Inc., 51
-# Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
-##################################################################################
-
-set -e
-
-help() {
- echo
- echo "USAGE: $0 initrd.{l,g}z <path-to-new-initrd> <path-to-new-live-uuid> "
- echo
- echo "initrd.{l,g}z is the absolute path to the original gzipped or lzmaed initramfs"
- echo "<path-to-new-initrd> is the destination directory for the new compressed initramfs"
- echo "<path-to-new-live-uuid> is the destination directory for the new live-uuid-TYPE "
- echo
- echo "if either path is absent, they will end up in the current directory "
- echo "TYPE is determined by an already existing live-uuid-* or by 'uname -s'"
-}
-
-if [ "$#" = "0" ] || [ "x$1" = x-h ] || [ "x$1" = x--help ]; then
-       help
-       exit 3
-fi
-
-CWD=`pwd`
-TEMPDIR=`mktemp -d /tmp/uuid-XXXXXX`
-TYPE=`uname -r | cut -d '-' -f 3`
-
-if echo "$1" | grep ".lz$" >/dev/null; then
-       COMPRESSOR="lzma"
-       SUFFIX=".lz"
-elif echo "$1" | grep ".gz$" >/dev/null; then
-       COMPRESSOR="gzip"
-       SUFFIX=".gz"
-else
-       echo "Unsupported archive type."
-       exit 2
-fi
-
-if [ -z "$2" ] || [ ! -d "$2" ] || [ "$2" = "." ]; then
-       COMPRESS_DIR="$CWD"
-else
-       COMPRESS_DIR="$2"
-fi
-
-if [ -z "$3" ] || [ ! -d "$3" ] || [ "$3" = "." ]; then
-       LIVEDIR="$CWD"
-else
-       LIVEDIR="$3"
-fi
-
-cd "$TEMPDIR"
-$COMPRESSOR -cd "$1" -S "$SUFFIX" | cpio -id
-uuidgen -r > conf/uuid.conf
-find . | cpio --quiet --dereference -o -H newc | $COMPRESSOR -9c > "$COMPRESS_DIR/initrd$SUFFIX"
-if [ "$(ls "$LIVEDIR/live-uuid"-* >/dev/null 2>&1 | wc -l)" = 1 ]; then
-       cp conf/uuid.conf "$LIVEDIR/live-uuid"-*
-else
-       cp conf/uuid.conf "$LIVEDIR/live-uuid-$TYPE"
-fi
-cd "$CWD"
-rm -rf "$TEMPDIR"
index 4e0d950..adee57a 100644 (file)
@@ -3,7 +3,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT 7 27.07.2012 3.0~a38\-1 "Debian Live Project"
+.TH LIVE\-BOOT 7 16.08.2012 3.0~b1\-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-boot\fP \- System Boot Scripts
 
 .SH NAME
 \fBlive\-boot\fP \- System Boot Scripts
@@ -41,8 +41,8 @@ see below.
 .SS "Configuration Files"
 \fBlive\-boot\fP can be configured (but not activated) through configuration
 files. Those files can be placed either in the root filesystem itself
 .SS "Configuration Files"
 \fBlive\-boot\fP can be configured (but not activated) through configuration
 files. Those files can be placed either in the root filesystem itself
-(/etc/live/boot.conf, /etc/live/boot.d/*.conf), or on the live media
-(live/boot.conf, live/boot.d/*.conf).
+(/etc/live/boot.conf, /etc/live/boot/*), or on the live media
+(live/boot.conf, live/boot/*).
 
 .SH OPTIONS
 .\" FIXME
 
 .SH OPTIONS
 .\" FIXME
@@ -260,9 +260,9 @@ loaded in alphanumeric order.
 
 .SH FILES
 .IP \fB/etc/live/boot.conf\fP 4
 
 .SH FILES
 .IP \fB/etc/live/boot.conf\fP 4
-.IP \fB/etc/live/boot.d/*.conf\fP 4
+.IP \fB/etc/live/boot/*\fP 4
 .IP \fBlive/boot.conf\fP 4
 .IP \fBlive/boot.conf\fP 4
-.IP \fBlive/boot.d/*.conf\fP 4
+.IP \fBlive/boot/*\fP 4
 .IP \fBlive\-persistence.conf\fP 4
 
 .SH "SEE ALSO"
 .IP \fBlive\-persistence.conf\fP 4
 
 .SH "SEE ALSO"
index 79e62e7..91e19d8 100644 (file)
@@ -3,7 +3,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT conf 27.07.2012 3.0~a38\-1 "Debian Live Project"
+.TH LIVE\-BOOT conf 16.08.2012 3.0~b1\-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-persistence.conf\fP \- Configuration file for persistence media in
 
 .SH NAME
 \fBlive\-persistence.conf\fP \- Configuration file for persistence media in
index 670fc71..dca0a8f 100644 (file)
@@ -1,4 +1,4 @@
-.TH LIVE\-BOOT 7 2012\-07\-27 3.0~a38-1 "Debian Live Project"
+.TH LIVE\-BOOT 7 2012\-08\-16 3.0~b1-1 "Debian Live Project"
 
 .SH NAME
 \fBlive\-boot\fR \- System Boot Scripts
 
 .SH NAME
 \fBlive\-boot\fR \- System Boot Scripts
@@ -23,7 +23,7 @@ To configure the live\-boot parameters used by default in a live image, see the
 In addition, there are some more boot parameters to influence the behaviour, see below.
 
 .SS Configuration Files
 In addition, there are some more boot parameters to influence the behaviour, see below.
 
 .SS Configuration Files
-\fBlive\-boot\fR can be configured (but not activated) through configuration files. Those files can be placed either in the root filesystem itself (/etc/live/boot.conf, /etc/live/boot.d/*.conf), or on the live media (live/boot.conf, live/boot.d/*.conf).
+\fBlive\-boot\fR can be configured (but not activated) through configuration files. Those files can be placed either in the root filesystem itself (/etc/live/boot.conf, /etc/live/boot/*), or on the live media (live/boot.conf, live/boot/*).
 
 .SH OPTIONS
 \fBlive\-boot\fR currently features the following parameters.
 
 .SH OPTIONS
 \fBlive\-boot\fR currently features the following parameters.
@@ -148,9 +148,9 @@ This optional file (inside the live media) contains a list of white\-space or ca
 
 .SH FILES
 .IP "\fB/etc/live/boot.conf\fR" 4
 
 .SH FILES
 .IP "\fB/etc/live/boot.conf\fR" 4
-.IP "\fB/etc/live/boot.d/*.conf\fR" 4
+.IP "\fB/etc/live/boot/*\fR" 4
 .IP "\fBlive/boot.conf\fR" 4
 .IP "\fBlive/boot.conf\fR" 4
-.IP "\fBlive/boot.d/*.conf\fR" 4
+.IP "\fBlive/boot/*\fR" 4
 .IP "\fBlive-persistence.conf\fR" 4
 
 .SH SEE ALSO
 .IP "\fBlive-persistence.conf\fR" 4
 
 .SH SEE ALSO
index 18ae4c9..d6498e0 100644 (file)
@@ -1,4 +1,4 @@
-.TH LIVE\-BOOT conf 2012\-07\-27 3.0~a38-1 "Debian Live Project"
+.TH LIVE\-BOOT conf 2012\-08\-16 3.0~b1-1 "Debian Live Project"
 
 .SH NAME
 \fBlive-persistence.conf\fR \- Configuration file for persistence media in
 
 .SH NAME
 \fBlive-persistence.conf\fR \- Configuration file for persistence media in
index 2dc590d..8227a22 100644 (file)
@@ -3,7 +3,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT 7 27.07.2012 3.0~a38\-1 "Proyecto Debian Live"
+.TH LIVE\-BOOT 7 16.08.2012 3.0~b1\-1 "Proyecto Debian Live"
 
 .SH NOMBRE
 \fBlive\-boot\fP \- Scripts de Arranque del Sistema
 
 .SH NOMBRE
 \fBlive\-boot\fP \- Scripts de Arranque del Sistema
@@ -42,8 +42,8 @@ comportamiento, ver más abajo.
 .SS "Ficheros de configuración"
 \fBlive\-boot\fP se puede configurar (pero no activar) mediante ficheros de
 configuración. Estos ficheros se pueden colocar en el sistema de ficheros
 .SS "Ficheros de configuración"
 \fBlive\-boot\fP se puede configurar (pero no activar) mediante ficheros de
 configuración. Estos ficheros se pueden colocar en el sistema de ficheros
-raíz (/etc/live/boot.conf, /etc/live/boot.d/*.conf), o en el medio en vivo
-(live/boot.conf, live/boot.d/*.conf).
+raíz (/etc/live/boot.conf, /etc/live/boot/*), o en el medio en vivo
+(live/boot.conf, live/boot/*).
 
 .SH OPCIONES
 .\" FIXME
 
 .SH OPCIONES
 .\" FIXME
@@ -263,12 +263,10 @@ unionfs.
 .\" FIXME
 .SH "FICHEROS (antiguos)"
 .IP \fB/etc/live.conf\fP 4
 .\" FIXME
 .SH "FICHEROS (antiguos)"
 .IP \fB/etc/live.conf\fP 4
-#\-#\-#\-#\-#  live\-boot.7.po (live\-boot)  #\-#\-#\-#\-#
 Algunas variables pueden ser configuradas a través de este fichero de
 configuración (dentro del sistema en vivo).
 .IP \fBlive/filesystem.module\fP 4
 .\" FIXME
 Algunas variables pueden ser configuradas a través de este fichero de
 configuración (dentro del sistema en vivo).
 .IP \fBlive/filesystem.module\fP 4
 .\" FIXME
-#\-#\-#\-#\-#  live\-boot.7.po (live\-boot)  #\-#\-#\-#\-#
 Este fichero opcional (dentro del medio en vivo) contiene una lista de
 nombres de ficheros separados por espacios en blanco o retornos de carro que
 corresponden a imágenes de disco en el directorio "/live". Si este fichero
 Este fichero opcional (dentro del medio en vivo) contiene una lista de
 nombres de ficheros separados por espacios en blanco o retornos de carro que
 corresponden a imágenes de disco en el directorio "/live". Si este fichero
@@ -281,9 +279,9 @@ alfanumérico.
 
 .SH FICHEROS
 .IP \fB/etc/live/boot.conf\fP 4
 
 .SH FICHEROS
 .IP \fB/etc/live/boot.conf\fP 4
-.IP \fB/etc/live/boot.d/*.conf\fP 4
+.IP \fB/etc/live/boot/*\fP 4
 .IP \fBlive/boot.conf\fP 4
 .IP \fBlive/boot.conf\fP 4
-.IP \fBlive/boot.d/*.conf\fP 4
+.IP \fBlive/boot.d/*\fP 4
 .IP \fBlive\-persistence.conf\fP 4
 
 .SH "VER ADEMÁS"
 .IP \fBlive\-persistence.conf\fP 4
 
 .SH "VER ADEMÁS"
@@ -296,11 +294,6 @@ alfanumérico.
 \fIlive\-tools\fP(7)
 
 .SH "PÁGINA WEB"
 \fIlive\-tools\fP(7)
 
 .SH "PÁGINA WEB"
-#\-#\-#\-#\-#  live\-boot.7.po (live\-boot)  #\-#\-#\-#\-#
-Se puede encontrar más información acerca de live\-boot y el proyecto Debian
-Live en la página web <\fIhttp://live.debian.net/\fP> y en el manual en
-<\fIhttp://live.debian.net/manual/\fP>.
-#\-#\-#\-#\-#  live\-persistence.conf.5.po (live\-persistence.conf)  #\-#\-#\-#\-#
 Se puede encontrar más información acerca de live\-boot y el proyecto Debian
 Live en la página web <\fIhttp://live.debian.net/\fP> y en el manual en
 <\fIhttp://live.debian.net/manual/\fP>.
 Se puede encontrar más información acerca de live\-boot y el proyecto Debian
 Live en la página web <\fIhttp://live.debian.net/\fP> y en el manual en
 <\fIhttp://live.debian.net/manual/\fP>.
index e8a5f2d..036b7ae 100644 (file)
@@ -3,7 +3,7 @@
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH LIVE\-BOOT conf 27.07.2012 3.0~a38\-1 "Proyecto Debian Live"
+.TH LIVE\-BOOT conf 16.08.2012 3.0~b1\-1 "Proyecto Debian Live"
 
 .SH NOMBRE
 \fBlive\-persistence.conf\fP \- Fichero para configurar medios de almacenamiento
 
 .SH NOMBRE
 \fBlive\-persistence.conf\fP \- Fichero para configurar medios de almacenamiento
@@ -209,11 +209,6 @@ tendría que ser copiado en \fIVOL\fP/usr durante la preinstalación inicial.
 \fIlive\-tools\fP(7)
 
 .SH "PÁGINA WEB"
 \fIlive\-tools\fP(7)
 
 .SH "PÁGINA WEB"
-#\-#\-#\-#\-#  live\-boot.7.po (live\-boot)  #\-#\-#\-#\-#
-Se puede encontrar más información acerca de live\-boot y el proyecto Debian
-Live en la página web <\fIhttp://live.debian.net/\fP> y en el manual en
-<\fIhttp://live.debian.net/manual/\fP>.
-#\-#\-#\-#\-#  live\-persistence.conf.5.po (live\-persistence.conf)  #\-#\-#\-#\-#
 Se puede encontrar más información acerca de live\-boot y el proyecto Debian
 Live en la página web <\fIhttp://live.debian.net/\fP> y en el manual en
 <\fIhttp://live.debian.net/manual/\fP>.
 Se puede encontrar más información acerca de live\-boot y el proyecto Debian
 Live en la página web <\fIhttp://live.debian.net/\fP> y en el manual en
 <\fIhttp://live.debian.net/manual/\fP>.
index 7d0eafa..20b8783 100644 (file)
@@ -4,8 +4,8 @@
 #
 msgid ""
 msgstr ""
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: live-boot 3.0~a38-1\n"
-"POT-Creation-Date: 2012-07-27 00:21+0300\n"
+"Project-Id-Version: live-boot 3.0~b1-1\n"
+"POT-Creation-Date: 2012-08-16 12:13+0300\n"
 "PO-Revision-Date: 2012-04-08 22:48+0300\n"
 "Last-Translator: Daniel Baumann <daniel@debian.org>\n"
 "Language-Team: none\n"
 "PO-Revision-Date: 2012-04-08 22:48+0300\n"
 "Last-Translator: Daniel Baumann <daniel@debian.org>\n"
 "Language-Team: none\n"
@@ -24,13 +24,13 @@ msgstr ""
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "2012-07-27"
-msgstr "27.07.2012"
+msgid "2012-08-16"
+msgstr "16.08.2012"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "3.0~a38-1"
+msgid "3.0~b1-1"
 msgstr ""
 
 #. type: TH
 msgstr ""
 
 #. type: TH
@@ -132,8 +132,8 @@ msgstr ""
 msgid ""
 "B<live-boot> can be configured (but not activated) through configuration "
 "files. Those files can be placed either in the root filesystem itself (/etc/"
 msgid ""
 "B<live-boot> can be configured (but not activated) through configuration "
 "files. Those files can be placed either in the root filesystem itself (/etc/"
-"live/boot.conf, /etc/live/boot.d/*.conf), or on the live media (live/boot."
-"conf, live/boot.d/*.conf)."
+"live/boot.conf, /etc/live/boot/*), or on the live media (live/boot.conf, "
+"live/boot/*)."
 msgstr ""
 
 #. type: SH
 msgstr ""
 
 #. type: SH
@@ -821,7 +821,7 @@ msgstr ""
 #. type: IP
 #: en/live-boot.7:151
 #, no-wrap
 #. type: IP
 #: en/live-boot.7:151
 #, no-wrap
-msgid "B</etc/live/boot.d/*.conf>"
+msgid "B</etc/live/boot/*>"
 msgstr ""
 
 #. type: IP
 msgstr ""
 
 #. type: IP
@@ -833,7 +833,7 @@ msgstr ""
 #. type: IP
 #: en/live-boot.7:153
 #, no-wrap
 #. type: IP
 #: en/live-boot.7:153
 #, no-wrap
-msgid "B<live/boot.d/*.conf>"
+msgid "B<live/boot/*>"
 msgstr ""
 
 #. type: IP
 msgstr ""
 
 #. type: IP
index f098249..33bb817 100644 (file)
@@ -4,8 +4,8 @@
 #
 msgid ""
 msgstr ""
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: live-boot 3.0~a38-1\n"
-"POT-Creation-Date: 2012-07-27 00:21+0300\n"
+"Project-Id-Version: live-boot 3.0~b1-1\n"
+"POT-Creation-Date: 2012-08-16 12:13+0300\n"
 "PO-Revision-Date: 2012-04-08 22:48+0300\n"
 "Last-Translator: Daniel Baumann <daniel@debian.org>\n"
 "Language-Team: none\n"
 "PO-Revision-Date: 2012-04-08 22:48+0300\n"
 "Last-Translator: Daniel Baumann <daniel@debian.org>\n"
 "Language-Team: none\n"
@@ -24,13 +24,13 @@ msgstr ""
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "2012-07-27"
-msgstr "27.07.2012"
+msgid "2012-08-16"
+msgstr "16.08.2012"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "3.0~a38-1"
+msgid "3.0~b1-1"
 msgstr ""
 
 #. type: TH
 msgstr ""
 
 #. type: TH
index a4c63df..3148a86 100644 (file)
@@ -4,12 +4,12 @@
 #
 msgid ""
 msgstr ""
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: live-boot 3.0~a38-1\n"
-"POT-Creation-Date: 2012-07-27 00:21+0300\n"
+"Project-Id-Version: live-boot 3.0~b1-1\n"
+"POT-Creation-Date: 2012-08-16 12:13+0300\n"
 "PO-Revision-Date: 2012-06-07 20:29+0200\n"
 "Last-Translator: Carlos Zuferri «chals» <chals@altorricon.com>\n"
 "PO-Revision-Date: 2012-06-07 20:29+0200\n"
 "Last-Translator: Carlos Zuferri «chals» <chals@altorricon.com>\n"
-"Language-Team:  none\n"
-"Language: es\n"
+"Language-Team:  Debian Live <debian-live@lists.debian.org>\n"
+"Language: Spanish\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
@@ -24,14 +24,14 @@ msgstr "LIVE-BOOT"
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "2012-07-27"
-msgstr "27.07.2012"
+msgid "2012-08-16"
+msgstr "16.08.2012"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "3.0~a38-1"
-msgstr "3.0~a38-1"
+msgid "3.0~b1-1"
+msgstr "3.0~b1-1"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
@@ -152,13 +152,13 @@ msgstr "Ficheros de configuración"
 msgid ""
 "B<live-boot> can be configured (but not activated) through configuration "
 "files. Those files can be placed either in the root filesystem itself (/etc/"
 msgid ""
 "B<live-boot> can be configured (but not activated) through configuration "
 "files. Those files can be placed either in the root filesystem itself (/etc/"
-"live/boot.conf, /etc/live/boot.d/*.conf), or on the live media (live/boot."
-"conf, live/boot.d/*.conf)."
+"live/boot.conf, /etc/live/boot/*), or on the live media (live/boot.conf, "
+"live/boot/*)."
 msgstr ""
 "B<live-boot> se puede configurar (pero no activar) mediante ficheros de "
 "configuración. Estos ficheros se pueden colocar en el sistema de ficheros "
 msgstr ""
 "B<live-boot> se puede configurar (pero no activar) mediante ficheros de "
 "configuración. Estos ficheros se pueden colocar en el sistema de ficheros "
-"raíz (/etc/live/boot.conf, /etc/live/boot.d/*.conf), o en el medio en vivo "
-"(live/boot.conf, live/boot.d/*.conf)."
+"raíz (/etc/live/boot.conf, /etc/live/boot/*), o en el medio en vivo (live/"
+"boot.conf, live/boot/*)."
 
 #. type: SH
 #: en/live-boot.7:28 en/live-persistence.conf.5:57
 
 #. type: SH
 #: en/live-boot.7:28 en/live-persistence.conf.5:57
@@ -962,7 +962,6 @@ msgid ""
 "Some variables can be configured via this config file (inside the live "
 "system)."
 msgstr ""
 "Some variables can be configured via this config file (inside the live "
 "system)."
 msgstr ""
-"#-#-#-#-#  live-boot.7.po (live-boot)  #-#-#-#-#\n"
 "Algunas variables pueden ser configuradas a través de este fichero de "
 "configuración (dentro del sistema en vivo)."
 
 "Algunas variables pueden ser configuradas a través de este fichero de "
 "configuración (dentro del sistema en vivo)."
 
@@ -985,7 +984,6 @@ msgid ""
 "below /overlay.  Without this file, any images in the \"/live\" directory "
 "are loaded in alphanumeric order."
 msgstr ""
 "below /overlay.  Without this file, any images in the \"/live\" directory "
 "are loaded in alphanumeric order."
 msgstr ""
-"#-#-#-#-#  live-boot.7.po (live-boot)  #-#-#-#-#\n"
 "Este fichero opcional (dentro del medio en vivo) contiene una lista de "
 "nombres de ficheros separados por espacios en blanco o retornos de carro que "
 "corresponden a imágenes de disco en el directorio \"/live\". Si este fichero "
 "Este fichero opcional (dentro del medio en vivo) contiene una lista de "
 "nombres de ficheros separados por espacios en blanco o retornos de carro que "
 "corresponden a imágenes de disco en el directorio \"/live\". Si este fichero "
@@ -1011,8 +1009,8 @@ msgstr "B</etc/live/boot.conf>"
 #. type: IP
 #: en/live-boot.7:151
 #, no-wrap
 #. type: IP
 #: en/live-boot.7:151
 #, no-wrap
-msgid "B</etc/live/boot.d/*.conf>"
-msgstr "B</etc/live/boot.d/*.conf>"
+msgid "B</etc/live/boot/*>"
+msgstr "B</etc/live/boot/*>"
 
 #. type: IP
 #: en/live-boot.7:152
 
 #. type: IP
 #: en/live-boot.7:152
@@ -1023,8 +1021,8 @@ msgstr "B<live/boot.conf>"
 #. type: IP
 #: en/live-boot.7:153
 #, no-wrap
 #. type: IP
 #: en/live-boot.7:153
 #, no-wrap
-msgid "B<live/boot.d/*.conf>"
-msgstr "B<live/boot.d/*.conf>"
+msgid "B<live/boot/*>"
+msgstr "B<live/boot.d/*>"
 
 #. type: IP
 #: en/live-boot.7:154
 
 #. type: IP
 #: en/live-boot.7:154
@@ -1071,11 +1069,6 @@ msgid ""
 "the homepage at E<lt>I<http://live.debian.net/>E<gt> and in the manual at "
 "E<lt>I<http://live.debian.net/manual/>E<gt>."
 msgstr ""
 "the homepage at E<lt>I<http://live.debian.net/>E<gt> and in the manual at "
 "E<lt>I<http://live.debian.net/manual/>E<gt>."
 msgstr ""
-"#-#-#-#-#  live-boot.7.po (live-boot)  #-#-#-#-#\n"
-"Se puede encontrar más información acerca de live-boot y el proyecto Debian "
-"Live en la página web E<lt>I<http://live.debian.net/>E<gt> y en el manual en "
-"E<lt>I<http://live.debian.net/manual/>E<gt>.\n"
-"#-#-#-#-#  live-persistence.conf.5.po (live-persistence.conf)  #-#-#-#-#\n"
 "Se puede encontrar más información acerca de live-boot y el proyecto Debian "
 "Live en la página web E<lt>I<http://live.debian.net/>E<gt> y en el manual en "
 "E<lt>I<http://live.debian.net/manual/>E<gt>."
 "Se puede encontrar más información acerca de live-boot y el proyecto Debian "
 "Live en la página web E<lt>I<http://live.debian.net/>E<gt> y en el manual en "
 "E<lt>I<http://live.debian.net/manual/>E<gt>."
index 94c09a6..41d3c9d 100644 (file)
@@ -4,12 +4,12 @@
 #
 msgid ""
 msgstr ""
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: live-boot 3.0~a38-1\n"
-"POT-Creation-Date: 2012-07-27 00:21+0300\n"
+"Project-Id-Version: live-boot 3.0~b1-1\n"
+"POT-Creation-Date: 2012-08-16 12:13+0300\n"
 "PO-Revision-Date: 2012-06-07 19:11+0200\n"
 "Last-Translator: Carlos Zuferri «chals» <chals@altorricon.com>\n"
 "PO-Revision-Date: 2012-06-07 19:11+0200\n"
 "Last-Translator: Carlos Zuferri «chals» <chals@altorricon.com>\n"
-"Language-Team:  none\n"
-"Language: es\n"
+"Language-Team:  Debian Live <debian-live@lists.debian.org>\n"
+"Language: Spanish\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
@@ -23,14 +23,14 @@ msgstr "LIVE-BOOT"
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "2012-07-27"
-msgstr "27.07.2012"
+msgid "2012-08-16"
+msgstr "16.08.2012"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "3.0~a38-1"
-msgstr "3.0~a38-1"
+msgid "3.0~b1-1"
+msgstr "3.0~b1-1"
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
@@ -90,11 +90,6 @@ msgid ""
 "the homepage at E<lt>I<http://live.debian.net/>E<gt> and in the manual at "
 "E<lt>I<http://live.debian.net/manual/>E<gt>."
 msgstr ""
 "the homepage at E<lt>I<http://live.debian.net/>E<gt> and in the manual at "
 "E<lt>I<http://live.debian.net/manual/>E<gt>."
 msgstr ""
-"#-#-#-#-#  live-boot.7.po (live-boot)  #-#-#-#-#\n"
-"Se puede encontrar más información acerca de live-boot y el proyecto Debian "
-"Live en la página web E<lt>I<http://live.debian.net/>E<gt> y en el manual en "
-"E<lt>I<http://live.debian.net/manual/>E<gt>.\n"
-"#-#-#-#-#  live-persistence.conf.5.po (live-persistence.conf)  #-#-#-#-#\n"
 "Se puede encontrar más información acerca de live-boot y el proyecto Debian "
 "Live en la página web E<lt>I<http://live.debian.net/>E<gt> y en el manual en "
 "E<lt>I<http://live.debian.net/manual/>E<gt>."
 "Se puede encontrar más información acerca de live-boot y el proyecto Debian "
 "Live en la página web E<lt>I<http://live.debian.net/>E<gt> y en el manual en "
 "E<lt>I<http://live.debian.net/manual/>E<gt>."
index ce3e428..69ccb54 100644 (file)
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot VERSION\n"
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot VERSION\n"
-"POT-Creation-Date: 2012-07-27 00:21+0300\n"
+"POT-Creation-Date: 2012-08-16 12:13+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"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -25,13 +25,13 @@ msgstr ""
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "2012-07-27"
+msgid "2012-08-16"
 msgstr ""
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 msgstr ""
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "3.0~a38-1"
+msgid "3.0~b1-1"
 msgstr ""
 
 #. type: TH
 msgstr ""
 
 #. type: TH
@@ -133,8 +133,8 @@ msgstr ""
 msgid ""
 "B<live-boot> can be configured (but not activated) through configuration "
 "files. Those files can be placed either in the root filesystem itself (/etc/"
 msgid ""
 "B<live-boot> can be configured (but not activated) through configuration "
 "files. Those files can be placed either in the root filesystem itself (/etc/"
-"live/boot.conf, /etc/live/boot.d/*.conf), or on the live media (live/boot."
-"conf, live/boot.d/*.conf)."
+"live/boot.conf, /etc/live/boot/*), or on the live media (live/boot.conf, "
+"live/boot/*)."
 msgstr ""
 
 #. type: SH
 msgstr ""
 
 #. type: SH
@@ -822,7 +822,7 @@ msgstr ""
 #. type: IP
 #: en/live-boot.7:151
 #, no-wrap
 #. type: IP
 #: en/live-boot.7:151
 #, no-wrap
-msgid "B</etc/live/boot.d/*.conf>"
+msgid "B</etc/live/boot/*>"
 msgstr ""
 
 #. type: IP
 msgstr ""
 
 #. type: IP
@@ -834,7 +834,7 @@ msgstr ""
 #. type: IP
 #: en/live-boot.7:153
 #, no-wrap
 #. type: IP
 #: en/live-boot.7:153
 #, no-wrap
-msgid "B<live/boot.d/*.conf>"
+msgid "B<live/boot/*>"
 msgstr ""
 
 #. type: IP
 msgstr ""
 
 #. type: IP
index 38b6190..0f1125e 100644 (file)
@@ -7,7 +7,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot VERSION\n"
 msgid ""
 msgstr ""
 "Project-Id-Version: live-boot VERSION\n"
-"POT-Creation-Date: 2012-07-27 00:21+0300\n"
+"POT-Creation-Date: 2012-08-16 12:13+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"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -25,13 +25,13 @@ msgstr ""
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "2012-07-27"
+msgid "2012-08-16"
 msgstr ""
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
 msgstr ""
 
 #. type: TH
 #: en/live-boot.7:1 en/live-persistence.conf.5:1
 #, no-wrap
-msgid "3.0~a38-1"
+msgid "3.0~b1-1"
 msgstr ""
 
 #. type: TH
 msgstr ""
 
 #. type: TH
index c031f00..11e8094 100755 (executable)
@@ -2,6 +2,16 @@
 
 # set -e
 
 
 # set -e
 
+# Reading configuration file from filesystem and live-media
+for _FILE in /etc/live/boot.conf /etc/live/boot/* \
+            /live/image/live/boot.conf /live/image/live/boot/*
+do
+       if [ -e "${_FILE}" ]
+       then
+               . "${_FILE}"
+       fi
+done
+
 for _SCRIPT in /lib/live/boot/????-*
 do
        if [ -e "${_SCRIPT}" ]
 for _SCRIPT in /lib/live/boot/????-*
 do
        if [ -e "${_SCRIPT}" ]
index 175488e..c251443 100755 (executable)
@@ -2,6 +2,11 @@
 
 #set -e
 
 
 #set -e
 
+if [ -e /scripts/functions ]
+then
+       . /scripts/functions
+fi
+
 mountroot ()
 {
        # initramfs-tools entry point for live-boot is mountroot(); function
 mountroot ()
 {
        # initramfs-tools entry point for live-boot is mountroot(); function
index a74dcb7..f223e93 100755 (executable)
@@ -13,10 +13,15 @@ Debug ()
                esac
        done
 
                esac
        done
 
-       if [ "${LIVE_DEBUG}" != "true" ]
-       then
-               return 0
-       fi
+       case "${LIVE_DEBUG}" in
+               true)
+                       ;;
 
 
+               *)
+                       return 0
+                       ;;
+       esac
+
+       # Write the trace output
        set -x
 }
        set -x
 }
index c05c162..859f771 100755 (executable)
@@ -18,10 +18,14 @@ Read_only ()
                esac
        done
 
                esac
        done
 
-       if [ "${LIVE_READ_ONLY}" != "true" ]
-       then
-               return 0
-       fi
+       case "${LIVE_READ_ONLY}" in
+               true)
+                       ;;
+
+               *)
+                       return 0
+                       ;;
+       esac
 
        # Marking some block devices as read-only to ensure that nothing
        # gets written as linux still writes to 'only' read-only mounted filesystems.
 
        # Marking some block devices as read-only to ensure that nothing
        # gets written as linux still writes to 'only' read-only mounted filesystems.
index 3649e04..8ccd663 100755 (executable)
@@ -18,10 +18,14 @@ Verify_checksums ()
                esac
        done
 
                esac
        done
 
-       if [ "${LIVE_VERIFY_CHECKSUMS}" != "true" ]
-       then
-               return 0
-       fi
+       case "${LIVE_VERIFY_CHECKSUMS}" in
+               true)
+                       ;;
+
+               *)
+                       return 0
+                       ;;
+       esac
 
        _MOUNTPOINT="${1}"
 
 
        _MOUNTPOINT="${1}"
 
index 82e998a..7541c26 100755 (executable)
@@ -18,10 +18,14 @@ Swap ()
                esac
        done
 
                esac
        done
 
-       if [ "${LIVE_SWAP}" != "true" ]
-       then
-               return 0
-       fi
+       case "${LIVE_SWAP}" in
+               true)
+                       ;;
+
+               *)
+                       return 0
+                       ;;
+       esac
 
        LIVE_SWAP_DEVICES="${LIVE_SWAP_DEVICES:-/dev/sd* /dev/vd*}"
 
 
        LIVE_SWAP_DEVICES="${LIVE_SWAP_DEVICES:-/dev/sd* /dev/vd*}"
 
index 77a291a..6530cc1 100755 (executable)
@@ -1,11 +1,5 @@
 #!/bin/sh
 
 #!/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
 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
index 2cf1d7e..5732b2a 100755 (executable)
@@ -27,6 +27,11 @@ Main ()
 
        Select_eth_device
 
 
        Select_eth_device
 
+       if [ -e /conf/param.conf ]
+       then
+               . /conf/param.conf
+       fi
+
        # Needed here too because some things (*cough* udev *cough*)
        # changes the timeout
 
        # Needed here too because some things (*cough* udev *cough*)
        # changes the timeout
 
index c11b9df..64e30df 100755 (executable)
@@ -16,6 +16,7 @@ Netbase ()
        log_begin_msg "Preconfiguring networking"
 
        IFFILE="/root/etc/network/interfaces"
        log_begin_msg "Preconfiguring networking"
 
        IFFILE="/root/etc/network/interfaces"
+       DNSFILE="/root/etc/resolv.conf"
 
        if [ "${STATICIP}" = "frommedia" ] && [ -e "${IFFILE}" ]
        then
 
        if [ "${STATICIP}" = "frommedia" ] && [ -e "${IFFILE}" ]
        then
@@ -43,6 +44,7 @@ EOF
                        ifaddress="$(echo ${ifline} | cut -f2 -d ':')"
                        ifnetmask="$(echo ${ifline} | cut -f3 -d ':')"
                        ifgateway="$(echo ${ifline} | cut -f4 -d ':')"
                        ifaddress="$(echo ${ifline} | cut -f2 -d ':')"
                        ifnetmask="$(echo ${ifline} | cut -f3 -d ':')"
                        ifgateway="$(echo ${ifline} | cut -f4 -d ':')"
+                       nameserver="$(echo ${ifline} | cut -f5 -d ':')"
 
 cat >> "${IFFILE}" << EOF
 allow-hotplug ${ifname}
 
 cat >> "${IFFILE}" << EOF
 allow-hotplug ${ifname}
@@ -60,6 +62,17 @@ cat >> "${IFFILE}" << EOF
 EOF
 
                        fi
 EOF
 
                        fi
+
+                       if [ -n "${nameserver}" ]
+                       then
+                               if [ -e "${DNSFILE}" ]
+                               then
+                                       grep -v ^nameserver "${DNSFILE}" > "${DNSFILE}.tmp"
+                                       mv "${DNSFILE}.tmp" "${DNSFILE}"
+                               fi
+
+                               echo "nameserver ${nameserver}" >> "${DNSFILE}"
+                       fi
                done
        else
                if [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ]
                done
        else
                if [ -z "${NETBOOT}" ] || [ -n "${DHCP}" ]
index 8c8d840..f32ae6c 100755 (executable)
@@ -110,7 +110,13 @@ do_netsetup ()
        else
                for interface in ${DEVICE}; do
                        ipconfig -t "$ETHDEV_TIMEOUT" ${interface} | tee /netboot-${interface}.config
        else
                for interface in ${DEVICE}; do
                        ipconfig -t "$ETHDEV_TIMEOUT" ${interface} | tee /netboot-${interface}.config
+
+                       # squeeze
                        [ -e /tmp/net-${interface}.conf ] && . /tmp/net-${interface}.conf
                        [ -e /tmp/net-${interface}.conf ] && . /tmp/net-${interface}.conf
+
+                       # wheezy
+                       [ -e /run/net-${interface}.conf ] && . /run/net-${interface}.conf
+
                        if [ "$IPV4ADDR" != "0.0.0.0" ]
                        then
                                break
                        if [ "$IPV4ADDR" != "0.0.0.0" ]
                        then
                                break
@@ -122,7 +128,13 @@ do_netsetup ()
        do
                # source relevant ipconfig output
                OLDHOSTNAME=${HOSTNAME}
        do
                # source relevant ipconfig output
                OLDHOSTNAME=${HOSTNAME}
+
+               # squeeze
                [ -e /tmp/net-${interface}.conf ] && . /tmp/net-${interface}.conf
                [ -e /tmp/net-${interface}.conf ] && . /tmp/net-${interface}.conf
+
+               # wheezy
+               [ -e /run/net-${interface}.conf ] && . /run/net-${interface}.conf
+
                [ -z ${HOSTNAME} ] && HOSTNAME=${OLDHOSTNAME}
                export HOSTNAME
 
                [ -z ${HOSTNAME} ] && HOSTNAME=${OLDHOSTNAME}
                export HOSTNAME
 
index cb12c4b..597ff50 100755 (executable)
@@ -155,9 +155,8 @@ setup_unionfs ()
 
        # tmpfs file systems
        touch /etc/fstab
 
        # tmpfs file systems
        touch /etc/fstab
-       mkdir -p /live
-       mount -t tmpfs tmpfs /live
        mkdir -p /live/overlay
        mkdir -p /live/overlay
+       mount -t tmpfs tmpfs /live/overlay
 
        # Looking for persistence devices or files
        if [ -n "${PERSISTENCE}" ] && [ -z "${NOPERSISTENCE}" ]
 
        # Looking for persistence devices or files
        if [ -n "${PERSISTENCE}" ] && [ -z "${NOPERSISTENCE}" ]
@@ -344,6 +343,12 @@ setup_unionfs ()
        # Correct the permissions of /:
        chmod 0755 "${rootmnt}"
 
        # Correct the permissions of /:
        chmod 0755 "${rootmnt}"
 
+       # Correct the permission of /tmp:
+       if [ -d "${rootmnt}/tmp" ]
+       then
+               chmod 1777 "${rootmnt}"/tmp
+       fi
+
        live_rofs_list=""
        # SHOWMOUNTS is necessary for custom mounts with the union option
        # Since we may want to do custom mounts in user-space it's best to always enable SHOWMOUNTS
        live_rofs_list=""
        # SHOWMOUNTS is necessary for custom mounts with the union option
        # Since we may want to do custom mounts in user-space it's best to always enable SHOWMOUNTS
index 9ebce20..f3c62c5 100644 (file)
@@ -1,4 +1,21 @@
-scripts overview
+Note
+----
+
+live-boot is moving from a monolithic script into a proper
+plugin architecture for better maintenance and customization.
+
+Additionally, this will allow us to abstract initramfs-tools
+integration to also support other initrd generators, such as
+dracut.
+
+Unfortunately, from a developers point of view, we could no
+finish this in time for wheezy, but we will finish this for
+jessie. Please excuse the sorry state of the 9990-* scripts.
+From a users point of view, it doesn't matter at all though.
+
+
+Scripts overview
+----------------
 
 00xx   initramfs "bootstrapping"
 
 
 00xx   initramfs "bootstrapping"
 
@@ -9,3 +26,5 @@ scripts overview
 2xxx   find and mount persistence
 
 3xxx   anything after that involves read or write access to the rootfs
 2xxx   find and mount persistence
 
 3xxx   anything after that involves read or write access to the rootfs
+
+9xxx   FIXME