From fb8c15c31e111394f77cc37962a08445ecd856ff Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 7 Nov 2012 15:08:05 +0100 Subject: [PATCH 1/1] Adding upstream version 3.0~b7. --- VERSION | 2 +- backends/initramfs-tools/live.hook | 2 +- manpages/de/live-boot.de.7 | 2 +- manpages/de/persistence.conf.de.5 | 2 +- manpages/en/live-boot.7 | 2 +- manpages/en/persistence.conf.5 | 2 +- manpages/es/live-boot.es.7 | 2 +- manpages/es/persistence.conf.es.5 | 2 +- manpages/po/de/live-boot.7.po | 12 ++++++------ manpages/po/de/persistence.conf.5.po | 12 ++++++------ manpages/po/es/live-boot.7.po | 12 ++++++------ manpages/po/es/persistence.conf.5.po | 12 ++++++------ manpages/pot/live-boot.7.pot | 6 +++--- manpages/pot/persistence.conf.5.pot | 6 +++--- scripts/boot/9990-aaa-fixme.sh | 3 ++- scripts/boot/9990-main.sh | 14 +++++++------- scripts/boot/9990-misc-helpers.sh | 11 ++++++++--- scripts/boot/9990-overlay.sh | 18 +++++++++--------- 18 files changed, 64 insertions(+), 58 deletions(-) diff --git a/VERSION b/VERSION index f4d2505..57e5887 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.0~b6-1 +3.0~b7-1 diff --git a/backends/initramfs-tools/live.hook b/backends/initramfs-tools/live.hook index 738257b..3860f4c 100755 --- a/backends/initramfs-tools/live.hook +++ b/backends/initramfs-tools/live.hook @@ -8,7 +8,7 @@ set -e # Reading configuration file from filesystem and live-media for _FILE in /etc/live/boot.conf /etc/live/boot/* \ - /lib/live/image/live/boot.conf /lib/live/image/live/boot/* + /lib/live/mount/media/live/boot.conf /lib/live/mount/media/live/boot/* do if [ -e "${_FILE}" ] then diff --git a/manpages/de/live-boot.de.7 b/manpages/de/live-boot.de.7 index 8116112..e3f4ec6 100644 --- a/manpages/de/live-boot.de.7 +++ b/manpages/de/live-boot.de.7 @@ -3,7 +3,7 @@ .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* -.TH LIVE\-BOOT 7 02.10.2012 3.0~b6\-1 "Debian Live Project" +.TH LIVE\-BOOT 7 07.11.2012 3.0~b7\-1 "Debian Live Project" .SH NAME \fBlive\-boot\fP \- System Boot Scripts diff --git a/manpages/de/persistence.conf.de.5 b/manpages/de/persistence.conf.de.5 index cbac9e9..53c3b7b 100644 --- a/manpages/de/persistence.conf.de.5 +++ b/manpages/de/persistence.conf.de.5 @@ -3,7 +3,7 @@ .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* -.TH LIVE\-BOOT conf 02.10.2012 3.0~b6\-1 "Debian Live Project" +.TH LIVE\-BOOT conf 07.11.2012 3.0~b7\-1 "Debian Live Project" .SH NAME \fBpersistence.conf\fP \- Configuration file for persistence media in live\-boot diff --git a/manpages/en/live-boot.7 b/manpages/en/live-boot.7 index cebe297..be37947 100644 --- a/manpages/en/live-boot.7 +++ b/manpages/en/live-boot.7 @@ -1,4 +1,4 @@ -.TH LIVE\-BOOT 7 2012\-10\-02 3.0~b6-1 "Debian Live Project" +.TH LIVE\-BOOT 7 2012\-11\-07 3.0~b7-1 "Debian Live Project" .SH NAME \fBlive\-boot\fR \- System Boot Scripts diff --git a/manpages/en/persistence.conf.5 b/manpages/en/persistence.conf.5 index 83b022c..ca4b992 100644 --- a/manpages/en/persistence.conf.5 +++ b/manpages/en/persistence.conf.5 @@ -1,4 +1,4 @@ -.TH LIVE\-BOOT conf 2012\-10\-02 3.0~b6-1 "Debian Live Project" +.TH LIVE\-BOOT conf 2012\-11\-07 3.0~b7-1 "Debian Live Project" .SH NAME \fBpersistence.conf\fR \- Configuration file for persistence media in diff --git a/manpages/es/live-boot.es.7 b/manpages/es/live-boot.es.7 index 6af0f8e..a28375e 100644 --- a/manpages/es/live-boot.es.7 +++ b/manpages/es/live-boot.es.7 @@ -3,7 +3,7 @@ .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* -.TH LIVE\-BOOT 7 02.10.2012 3.0~b6\-1 "Proyecto Debian Live" +.TH LIVE\-BOOT 7 07.11.2012 3.0~b7\-1 "Proyecto Debian Live" .SH NOMBRE \fBlive\-boot\fP \- Scripts de Arranque del Sistema diff --git a/manpages/es/persistence.conf.es.5 b/manpages/es/persistence.conf.es.5 index 3f13b77..95643fe 100644 --- a/manpages/es/persistence.conf.es.5 +++ b/manpages/es/persistence.conf.es.5 @@ -3,7 +3,7 @@ .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* -.TH LIVE\-BOOT conf 02.10.2012 3.0~b6\-1 "Proyecto Debian Live" +.TH LIVE\-BOOT conf 07.11.2012 3.0~b7\-1 "Proyecto Debian Live" .SH NOMBRE \fBpersistence.conf\fP \- Fichero para configurar medios de almacenamiento con diff --git a/manpages/po/de/live-boot.7.po b/manpages/po/de/live-boot.7.po index d24cbed..4eda583 100644 --- a/manpages/po/de/live-boot.7.po +++ b/manpages/po/de/live-boot.7.po @@ -4,8 +4,8 @@ # msgid "" msgstr "" -"Project-Id-Version: live-boot 3.0~b6-1\n" -"POT-Creation-Date: 2012-10-02 10:38+0300\n" +"Project-Id-Version: live-boot 3.0~b7-1\n" +"POT-Creation-Date: 2012-11-07 15:04+0100\n" "PO-Revision-Date: 2012-04-08 22:48+0300\n" "Last-Translator: Daniel Baumann \n" "Language-Team: none\n" @@ -24,14 +24,14 @@ msgstr "" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "2012-10-02" -msgstr "02.10.2012" +msgid "2012-11-07" +msgstr "07.11.2012" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "3.0~b6-1" -msgstr "3.0~b6-1" +msgid "3.0~b7-1" +msgstr "3.0~b7-1" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 diff --git a/manpages/po/de/persistence.conf.5.po b/manpages/po/de/persistence.conf.5.po index 6096946..c8dc3c4 100644 --- a/manpages/po/de/persistence.conf.5.po +++ b/manpages/po/de/persistence.conf.5.po @@ -4,8 +4,8 @@ # msgid "" msgstr "" -"Project-Id-Version: live-boot 3.0~b6-1\n" -"POT-Creation-Date: 2012-10-02 10:38+0300\n" +"Project-Id-Version: live-boot 3.0~b7-1\n" +"POT-Creation-Date: 2012-11-07 15:04+0100\n" "PO-Revision-Date: 2012-04-08 22:48+0300\n" "Last-Translator: Daniel Baumann \n" "Language-Team: none\n" @@ -24,14 +24,14 @@ msgstr "" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "2012-10-02" -msgstr "02.10.2012" +msgid "2012-11-07" +msgstr "07.11.2012" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "3.0~b6-1" -msgstr "3.0~b6-1" +msgid "3.0~b7-1" +msgstr "3.0~b7-1" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 diff --git a/manpages/po/es/live-boot.7.po b/manpages/po/es/live-boot.7.po index 6e43a91..3373098 100644 --- a/manpages/po/es/live-boot.7.po +++ b/manpages/po/es/live-boot.7.po @@ -4,8 +4,8 @@ # msgid "" msgstr "" -"Project-Id-Version: live-boot 3.0~b6-1\n" -"POT-Creation-Date: 2012-10-02 10:38+0300\n" +"Project-Id-Version: live-boot 3.0~b7-1\n" +"POT-Creation-Date: 2012-11-07 15:04+0100\n" "PO-Revision-Date: 2012-06-07 20:29+0200\n" "Last-Translator: Carlos Zuferri «chals» \n" "Language-Team: none\n" @@ -24,14 +24,14 @@ msgstr "LIVE-BOOT" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "2012-10-02" -msgstr "02.10.2012" +msgid "2012-11-07" +msgstr "07.11.2012" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "3.0~b6-1" -msgstr "3.0~b6-1" +msgid "3.0~b7-1" +msgstr "3.0~b7-1" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 diff --git a/manpages/po/es/persistence.conf.5.po b/manpages/po/es/persistence.conf.5.po index 3fe87c3..47509c5 100644 --- a/manpages/po/es/persistence.conf.5.po +++ b/manpages/po/es/persistence.conf.5.po @@ -4,8 +4,8 @@ # msgid "" msgstr "" -"Project-Id-Version: live-boot 3.0~b6-1\n" -"POT-Creation-Date: 2012-10-02 10:38+0300\n" +"Project-Id-Version: live-boot 3.0~b7-1\n" +"POT-Creation-Date: 2012-11-07 15:04+0100\n" "PO-Revision-Date: 2012-06-07 19:11+0200\n" "Last-Translator: Carlos Zuferri «chals» \n" "Language-Team: none\n" @@ -23,14 +23,14 @@ msgstr "LIVE-BOOT" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "2012-10-02" -msgstr "02.10.2012" +msgid "2012-11-07" +msgstr "07.11.2012" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "3.0~b6-1" -msgstr "3.0~b6-1" +msgid "3.0~b7-1" +msgstr "3.0~b7-1" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 diff --git a/manpages/pot/live-boot.7.pot b/manpages/pot/live-boot.7.pot index 0ff156a..2d8912c 100644 --- a/manpages/pot/live-boot.7.pot +++ b/manpages/pot/live-boot.7.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: live-boot VERSION\n" -"POT-Creation-Date: 2012-10-02 10:38+0300\n" +"POT-Creation-Date: 2012-11-07 15:04+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -25,13 +25,13 @@ msgstr "" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "2012-10-02" +msgid "2012-11-07" msgstr "" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "3.0~b6-1" +msgid "3.0~b7-1" msgstr "" #. type: TH diff --git a/manpages/pot/persistence.conf.5.pot b/manpages/pot/persistence.conf.5.pot index 760a53c..d873bc5 100644 --- a/manpages/pot/persistence.conf.5.pot +++ b/manpages/pot/persistence.conf.5.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: live-boot VERSION\n" -"POT-Creation-Date: 2012-10-02 10:38+0300\n" +"POT-Creation-Date: 2012-11-07 15:04+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -25,13 +25,13 @@ msgstr "" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "2012-10-02" +msgid "2012-11-07" msgstr "" #. type: TH #: en/live-boot.7:1 en/persistence.conf.5:1 #, no-wrap -msgid "3.0~b6-1" +msgid "3.0~b7-1" msgstr "" #. type: TH diff --git a/scripts/boot/9990-aaa-fixme.sh b/scripts/boot/9990-aaa-fixme.sh index 822a604..a1eb14a 100755 --- a/scripts/boot/9990-aaa-fixme.sh +++ b/scripts/boot/9990-aaa-fixme.sh @@ -5,7 +5,7 @@ export PATH="/root/usr/bin:/root/usr/sbin:/root/bin:/root/sbin:/usr/bin:/usr/sbi echo "/root/lib" >> /etc/ld.so.conf echo "/root/usr/lib" >> /etc/ld.so.conf -mountpoint="/live/image" +mountpoint="/live/medium" alt_mountpoint="/media" LIVE_MEDIA_PATH="live" @@ -44,6 +44,7 @@ old_root_overlay_label="live-rw" old_home_overlay_label="home-rw" custom_overlay_label="persistence" persistence_list="persistence.conf" +old_persistence_list="live-persistence.conf" if [ ! -f /live.vars ] then diff --git a/scripts/boot/9990-main.sh b/scripts/boot/9990-main.sh index ef41fb0..983a1cb 100755 --- a/scripts/boot/9990-main.sh +++ b/scripts/boot/9990-main.sh @@ -146,8 +146,8 @@ Main () esac # Move to the new root filesystem so that programs there can get at it. - mkdir -p /root/lib/live/image - mount --move /live/image /root/lib/live/image + mkdir -p /root/lib/live/mount/medium + mount --move /live/medium /root/lib/live/mount/medium # aufs2 in kernel versions around 2.6.33 has a regression: # directories can't be accessed when read for the first the time, @@ -158,8 +158,8 @@ Main () # Move findiso directory to the new root filesystem so that programs there can get at it. if [ -d /live/findiso ] then - mkdir -p /root/lib/live/findiso - mount -n --move /live/findiso /root/lib/live/findiso + mkdir -p /root/lib/live/mount/findiso + mount -n --move /live/findiso /root/lib/live/mount/findiso fi # if we do not unmount the ISO we can't run "fsck /dev/ice" later on @@ -169,10 +169,10 @@ Main () then losetup -d /dev/loop0 - if is_mountpoint /root/lib/live/findiso + if is_mountpoint /root/lib/live/mount/findiso then - umount /root/lib/live/findiso - rmdir --ignore-fail-on-non-empty /root/lib/live/findiso \ + umount /root/lib/live/mount/findiso + rmdir --ignore-fail-on-non-empty /root/lib/live/mount/findiso \ >/dev/null 2>&1 || true fi fi diff --git a/scripts/boot/9990-misc-helpers.sh b/scripts/boot/9990-misc-helpers.sh index 3455045..ace130b 100755 --- a/scripts/boot/9990-misc-helpers.sh +++ b/scripts/boot/9990-misc-helpers.sh @@ -940,7 +940,7 @@ find_persistence_media () local white_listed_devices="${2}" local ret="" - local black_listed_devices="$(what_is_mounted_on /live/image)" + local black_listed_devices="$(what_is_mounted_on /live/medium)" for dev in $(storage_devices "${black_listed_devices}" "${white_listed_devices}") do @@ -1258,9 +1258,14 @@ get_custom_mounts () continue fi - local include_list="${backing}/${persistence_list}" - if [ ! -r "${include_list}" ] + local include_list + if [ -r "${backing}/${persistence_list}" ] then + include_list="${backing}/${persistence_list}" + elif [ -r "${backing}/${old_persistence_list}" ] + then + include_list="${backing}/${old_persistence_list}" + else continue fi diff --git a/scripts/boot/9990-overlay.sh b/scripts/boot/9990-overlay.sh index 13c1a0c..acb2e91 100755 --- a/scripts/boot/9990-overlay.sh +++ b/scripts/boot/9990-overlay.sh @@ -404,22 +404,22 @@ setup_unionfs () do if [ -d "/live/${_DIRECTORY}" ] then - mkdir -p "${rootmnt}/lib/live/${_DIRECTORY}" + mkdir -p "${rootmnt}/lib/live/mount/${_DIRECTORY}" for _MOUNT in $(ls /live/${_DIRECTORY}) do - mkdir -p "${rootmnt}/lib/live/${_DIRECTORY}/${_MOUNT}" - mount -o move "/live/${_DIRECTORY}/${_MOUNT}" "${rootmnt}/lib/live/${_DIRECTORY}/${_MOUNT}" > /dev/null 2>&1 || \ - mount -o bind "/live/${_DIRECTORY}/${_MOUNT}" "${rootmnt}/lib/live/${_DIRECTORY}/${_MOUNT}" || \ - log_warning_msg "W: failed to mount /live/${_DIRECTORY}/${_MOUNT} to ${rootmnt}/lib/live/${_DIRECTORY}/${_MOUNT}" + mkdir -p "${rootmnt}/lib/live/mount/${_DIRECTORY}/${_MOUNT}" + mount -o move "/live/${_DIRECTORY}/${_MOUNT}" "${rootmnt}/lib/live/mount/${_DIRECTORY}/${_MOUNT}" > /dev/null 2>&1 || \ + mount -o bind "/live/${_DIRECTORY}/${_MOUNT}" "${rootmnt}/lib/live/mount/${_DIRECTORY}/${_MOUNT}" || \ + log_warning_msg "W: failed to mount /live/${_DIRECTORY}/${_MOUNT} to ${rootmnt}/lib/live/mount/${_DIRECTORY}/${_MOUNT}" done fi done - mkdir -p "${rootmnt}/lib/live/overlay" - mount -o move /live/overlay "${rootmnt}/lib/live/overlay" > /dev/null 2>&1 || \ - mount -o bind /live/overlay "${rootmnt}/lib/live/overlay" || \ - log_warning_msg "W: failed to mount /live/overlay to ${rootmnt}/lib/live/overlay" + mkdir -p "${rootmnt}/lib/live/mount/overlay" + mount -o move /live/overlay "${rootmnt}/lib/live/mount/overlay" > /dev/null 2>&1 || \ + mount -o bind /live/overlay "${rootmnt}/lib/live/mount/overlay" || \ + log_warning_msg "W: failed to mount /live/overlay to ${rootmnt}/lib/live/mount/overlay" # ensure that a potentially stray tmpfs gets removed # otherways, initramfs-tools is unable to remove /live -- 2.1.4