[Debian-live-changes] r2460 - in releases/live-initramfs: . 1.91.4-1/bin 1.91.4-1/debian 1.91.4-1/docs 1.91.4-1/manpages 1.91.4-1/scripts 1.91.4-1/scripts/live-bottom
daniel at alioth.debian.org
daniel at alioth.debian.org
Thu Jul 12 19:21:40 UTC 2007
Author: daniel
Date: 2007-07-12 19:21:40 +0000 (Thu, 12 Jul 2007)
New Revision: 2460
Added:
releases/live-initramfs/1.91.4-1/
releases/live-initramfs/1.91.4-1/bin/live-snapshot
releases/live-initramfs/1.91.4-1/debian/changelog
releases/live-initramfs/1.91.4-1/debian/init
releases/live-initramfs/1.91.4-1/docs/ChangeLog
releases/live-initramfs/1.91.4-1/manpages/live-snapshot.en.1
releases/live-initramfs/1.91.4-1/manpages/live-snapshot.it.1
releases/live-initramfs/1.91.4-1/scripts/live
releases/live-initramfs/1.91.4-1/scripts/live-bottom/01integrity_check
releases/live-initramfs/1.91.4-1/scripts/live-bottom/05mountpoints
Removed:
releases/live-initramfs/1.91.4-1/bin/live-snapshot
releases/live-initramfs/1.91.4-1/debian/changelog
releases/live-initramfs/1.91.4-1/debian/init
releases/live-initramfs/1.91.4-1/docs/ChangeLog
releases/live-initramfs/1.91.4-1/manpages/live-snapshot.en.1
releases/live-initramfs/1.91.4-1/manpages/live-snapshot.it.1
releases/live-initramfs/1.91.4-1/scripts/live
releases/live-initramfs/1.91.4-1/scripts/live-bottom/01integrity_check
releases/live-initramfs/1.91.4-1/scripts/live-bottom/05mountpoints
Log:
Copied: releases/live-initramfs/1.91.4-1 (from rev 2457, dists/trunk/live-initramfs)
Deleted: releases/live-initramfs/1.91.4-1/bin/live-snapshot
===================================================================
--- dists/trunk/live-initramfs/bin/live-snapshot 2007-07-12 18:27:07 UTC (rev 2457)
+++ releases/live-initramfs/1.91.4-1/bin/live-snapshot 2007-07-12 19:21:40 UTC (rev 2460)
@@ -1,299 +0,0 @@
-#! /bin/bash
-
-# live-snapshot - utility to manage Debian Live systems snapshots
-#
-# This program mount a device (fallback to /tmpfs under /mnt/snapshot
-# and save the /cow (or a different dir) filesystem in it for reusing
-# in another live-initramfs session. Look at manpage for more info.
-#
-# Copyright (C) 2006 Marco Amadori <marco.amadori at gmail.com>
-#
-# This program 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 program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-#
-# On Debian systems, the complete text of the GNU General Public License
-# can be found in /usr/share/common-licenses/GPL-2 file.
-
-PROGRAM="`basename $0`"
-VERSION=0.0.1
-
-
-# Source live conf
-if [ -e /etc/live.conf ]; then
- . /etc/live.conf
-else
- USERNAME=$(cat /etc/passwd | grep "999" | cut -f1 -d ':')
- HOSTNAME=$(hostname)
- BUILD_SYSTEM="Debian"
-fi
-
-export USERNAME USERFULLNAME HOSTNAME BUILD_SYSTEM
-
-# Source helper functions
-helpers="/usr/share/initramfs-tools/scripts/live-helpers"
-if [ -e "${helpers}" ]; then
- . "${helpers}"
-else
- echo "Error: I cannot found helper functions \"${helpers}\"."
- exit 1
-fi
-
-# Define LSB log_* functions.
-# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
-. /lib/lsb/init-functions
-
-MOUNTP=""
-COW=""
-DEV=""
-DEST=""
-TYPE=""
-DESKTOP_LINK=""
-
-Header ()
-{
- echo "${PROGRAM} - utility to do Debian Live snapshots"
- echo
- echo "Usage: ${PROGRAM} [-c|--cow DIRECTORY] [-d|--device DEVICE] [-o|--output FILE] [-t|--type TYPE]"
- echo "Usage: ${PROGRAM} [-r|--resync-string STRING]"
- echo "Usage: ${PROGRAM} [-h|--help]"
- echo "Usage: ${PROGRAM} [-u|--usage]"
- echo "Usage: ${PROGRAM} [-v|--version]"
-}
-
-Usage ()
-{
- MESSAGE=${1}
- Header
- echo
- echo "Try \"${PROGRAM} --help\" for more information."
- if [ ! -z "${MESSAGE}" ]; then
- echo -e "${MESSAGE}"
- exit 1
- else
- exit 0
- fi
-}
-
-Help ()
-{
- Header
- echo
- echo "Options:"
- echo " -c, --cow: specifies the copy on write directory (default: /cow)."
- echo " -d, --device: specifies the output snapshot device (default: none)."
- echo " -o, --output: specifies the output image file (default: $type dependent)."
- echo " -r, --resync-string: internally used to resync previous made snapshots."
- echo " -t, --type: specifies the snapshot type between \"squashfs\", \"ext2\", \"ext3\" or \"cpio\".gz archive (default: cpio)"
- echo -e "\nLook at live-snapshot(1) man page for more information."
- exit 0
-}
-
-Version ()
-{
- echo "${PROGRAM}, version ${VERSION}"
- echo
- echo "Copyright (C) 2006 Marco Amadori <marco.amadori at gmail.com>"
- echo
- echo "This program is free software; you can redistribute it and/or modify"
- echo "it under the terms of the GNU General Public License as published by"
- echo "the Free Software Foundation; either version 2 of the License, or"
- echo "(at your option) any later version."
- echo
- echo "This program is distributed in the hope that it will be useful,"
- echo "but WITHOUT ANY WARRANTY; without even the implied warranty of"
- echo "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"
- echo "GNU General Public License for more details."
- echo
- echo "You should have received a copy of the GNU General Public License"
- echo "along with this program; if not, write to the Free Software"
- echo "Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA"
- echo
- echo "On Debian systems, the complete text of the GNU General Public License"
- echo "can be found in /usr/share/common-licenses/GPL-2 file."
- echo
- echo "Homepage: <http://debian-live.alioth.debian.org/>"
- exit 0
-}
-
-Do_snapshot ()
-{
- case "${TYPE}" in
- squashfs)
- echo "./tmp/exclude_list" > /tmp/exclude_list
- ( cd "${COW}" && find . -name '*.wh.*' >> /tmp/exclude_list )
- mksquashfs "${COW}" "${DEST}" -ef /tmp/exclude_list || exit 1
- rm /tmp/exclude_list
- ;;
- cpio)
- ( cd "${COW}" && find . -path '*.wh.*' -prune -o -print0 | cpio --quiet -o0 -H newc | gzip -9c > "${DEST}" ) || exit 1
- ;;
- ext2|ext3)
- DU_DIM="`du -ks ${COW} | cut -f1`"
- REAL_DIM="`expr ${DU_DIM} + ${DU_DIM} / 20`" # Just 5% more to be sure, need something more sophistcated here...
- genext2fs --size-in-blocks=${REAL_DIM} --reserved-blocks=0 --root="${COW}" "${DEST}" || exit 1
- ;;
- *)
- echo "Internal error."
- exit 1
- ;;
- esac
-}
-
-Is_same_mount ()
-{
- dir1="`Base_path $1`"
- dir2="`Base_path $2`"
- if [ "${dir1}" = "${dir2}" ]; then
- return 0
- else
- return 1
- fi
-}
-
-Parse_args ()
-{
- # Parse command line
- ARGS="$1"
- ARGUMENTS="`getopt --longoptions cow:,device:,output,resync-string:,type:,help,usage,version --name=${PROGRAM} --options c:d:o:t:r:,h,u,v --shell sh -- ${ARGS}`"
-
- if [ "$?" != "0" ]; then
- echo "Terminating." >&2
- exit 1
- fi
-
- eval set -- "${ARGUMENTS}"
-
- while true; do
- case "$1" in
- -c|--cow)
- SNAP_COW="$2"; shift 2 ;;
- -d|--device)
- SNAP_DEV="$2"; shift 2 ;;
- -o|--output)
- SNAP_OUTPUT="$2"; shift 2 ;;
- -t|--type)
- SNAP_TYPE="$2"; shift 2 ;;
- -r|--resync-string)
- SNAP_RSTRING="$2"; break ;;
- -h|--help)
- Help; shift ;;
- -u|--usage)
- Usage ; shift ;;
- -v|--version)
- Version; shift ;;
- --)
- shift; break ;;
- *)
- echo "Internal error."; exit 1 ;;
- esac
- done
-}
-
-Mount_device ()
-{
- dev="$1"
-
- if [ ! -d "${MOUNTP}" ]; then
- mkdir -p "${MOUNTP}"
- fi
-
- if [ -z "${dev}" ]; then
- # create a temp
- mount -t tmpfs -o rw tmpfs "${MOUNTP}"
- if [ ! -L /home/$USERNAME/Desktop/live-snapshot ]; then
- ln -s "${MOUNTP}" /home/$USERNAME/Desktop/live-snapshot
- fi
- else
- if [ -b "${dev}" ] ; then
- try_mount "${dev}" "${MOUNTP}" rw
- fi
- fi
-}
-
-Defaults ()
-{
- MOUNTP="/mnt/live-snapshot"
- COW="/cow"
- DEV=""
- DEST="${MOUNTP}/live-sn.cpio.gz"
- TYPE="cpio"
- DESKTOP_LINK=/home/$USERNAME/Desktop/live-snapshot
-
- if [ -n "${SNAP_RSTRING}" ]; then
- COW=$(echo "${SNAP_RSTRING}" | cut -f1 -d ':')
- DEV=$(echo "${SNAP_RSTRING}" | cut -f2 -d ':')
- DEST=$(echo "${SNAP_RSTRING}" | cut -f3 -d ':')
-
- case "${DEST}" in
- *.cpio.gz)
- TYPE="cpio" ;;
- *.squashfs)
- TYPE="squashfs" ;;
- "")
- TYPE="ext2" ;;
- *.ext2|*.ext3)
- TYPE="ext2" ;;
- *)
- Usage "Unregognized String" ;;
- esac
- else
- DEF_COW="/cow"
- # Bad options handling
- if [ -z "${SNAP_COW}" ]; then
- COW="${DEF_COW}"
- else
- COW="${SNAP_COW}"
- fi
-
- case "${SNAP_TYPE}" in
- "cpio"|"squashfs"|"ext2"|"ext3")
- TYPE="${SNAP_TYPE}"
- ;;
- "")
- TYPE="cpio" ;;
- *)
- Usage "Error: unrecognized snapshot type"
- ;;
- esac
- #if [ -d
- #if Is_same_mount
- fi
-
- # check vars
- if [ ! -d "${COW}" ]; then
- Usage "Error: ${COW} is not a directory"
- fi
-
- Mount_device $DEV
-
-}
-
-Clean ()
-{
- if [ -n "$DEV" ]; then
- umount "${MOUNTP}"
- rmdir "${MOUNTP}"
- #rm
- fi
-}
-
-Main ()
-{
- Parse_args "$@"
- Defaults
- Do_snapshot
- Clean
-}
-
-Main "$@"
Copied: releases/live-initramfs/1.91.4-1/bin/live-snapshot (from rev 2459, dists/trunk/live-initramfs/bin/live-snapshot)
===================================================================
--- releases/live-initramfs/1.91.4-1/bin/live-snapshot (rev 0)
+++ releases/live-initramfs/1.91.4-1/bin/live-snapshot 2007-07-12 19:21:40 UTC (rev 2460)
@@ -0,0 +1,299 @@
+#! /bin/bash
+
+# live-snapshot - utility to manage Debian Live systems snapshots
+#
+# This program mount a device (fallback to /tmpfs under /mnt/snapshot
+# and save the /live/cow (or a different dir) filesystem in it for reusing
+# in another live-initramfs session. Look at manpage for more info.
+#
+# Copyright (C) 2006 Marco Amadori <marco.amadori at gmail.com>
+#
+# This program 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 program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+#
+# On Debian systems, the complete text of the GNU General Public License
+# can be found in /usr/share/common-licenses/GPL-2 file.
+
+PROGRAM="`basename $0`"
+VERSION=0.0.1
+
+
+# Source live conf
+if [ -e /etc/live.conf ]; then
+ . /etc/live.conf
+else
+ USERNAME=$(cat /etc/passwd | grep "999" | cut -f1 -d ':')
+ HOSTNAME=$(hostname)
+ BUILD_SYSTEM="Debian"
+fi
+
+export USERNAME USERFULLNAME HOSTNAME BUILD_SYSTEM
+
+# Source helper functions
+helpers="/usr/share/initramfs-tools/scripts/live-helpers"
+if [ -e "${helpers}" ]; then
+ . "${helpers}"
+else
+ echo "Error: I cannot found helper functions \"${helpers}\"."
+ exit 1
+fi
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+MOUNTP=""
+COW=""
+DEV=""
+DEST=""
+TYPE=""
+DESKTOP_LINK=""
+
+Header ()
+{
+ echo "${PROGRAM} - utility to do Debian Live snapshots"
+ echo
+ echo "Usage: ${PROGRAM} [-c|--cow DIRECTORY] [-d|--device DEVICE] [-o|--output FILE] [-t|--type TYPE]"
+ echo "Usage: ${PROGRAM} [-r|--resync-string STRING]"
+ echo "Usage: ${PROGRAM} [-h|--help]"
+ echo "Usage: ${PROGRAM} [-u|--usage]"
+ echo "Usage: ${PROGRAM} [-v|--version]"
+}
+
+Usage ()
+{
+ MESSAGE=${1}
+ Header
+ echo
+ echo "Try \"${PROGRAM} --help\" for more information."
+ if [ ! -z "${MESSAGE}" ]; then
+ echo -e "${MESSAGE}"
+ exit 1
+ else
+ exit 0
+ fi
+}
+
+Help ()
+{
+ Header
+ echo
+ echo "Options:"
+ echo " -c, --cow: specifies the copy on write directory (default: /live/cow)."
+ echo " -d, --device: specifies the output snapshot device (default: none)."
+ echo " -o, --output: specifies the output image file (default: $type dependent)."
+ echo " -r, --resync-string: internally used to resync previous made snapshots."
+ echo " -t, --type: specifies the snapshot type between \"squashfs\", \"ext2\", \"ext3\" or \"cpio\".gz archive (default: cpio)"
+ echo -e "\nLook at live-snapshot(1) man page for more information."
+ exit 0
+}
+
+Version ()
+{
+ echo "${PROGRAM}, version ${VERSION}"
+ echo
+ echo "Copyright (C) 2006 Marco Amadori <marco.amadori at gmail.com>"
+ echo
+ echo "This program is free software; you can redistribute it and/or modify"
+ echo "it under the terms of the GNU General Public License as published by"
+ echo "the Free Software Foundation; either version 2 of the License, or"
+ echo "(at your option) any later version."
+ echo
+ echo "This program is distributed in the hope that it will be useful,"
+ echo "but WITHOUT ANY WARRANTY; without even the implied warranty of"
+ echo "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"
+ echo "GNU General Public License for more details."
+ echo
+ echo "You should have received a copy of the GNU General Public License"
+ echo "along with this program; if not, write to the Free Software"
+ echo "Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA"
+ echo
+ echo "On Debian systems, the complete text of the GNU General Public License"
+ echo "can be found in /usr/share/common-licenses/GPL-2 file."
+ echo
+ echo "Homepage: <http://debian-live.alioth.debian.org/>"
+ exit 0
+}
+
+Do_snapshot ()
+{
+ case "${TYPE}" in
+ squashfs)
+ echo "./tmp/exclude_list" > /tmp/exclude_list
+ ( cd "${COW}" && find . -name '*.wh.*' >> /tmp/exclude_list )
+ mksquashfs "${COW}" "${DEST}" -ef /tmp/exclude_list || exit 1
+ rm /tmp/exclude_list
+ ;;
+ cpio)
+ ( cd "${COW}" && find . -path '*.wh.*' -prune -o -print0 | cpio --quiet -o0 -H newc | gzip -9c > "${DEST}" ) || exit 1
+ ;;
+ ext2|ext3)
+ DU_DIM="`du -ks ${COW} | cut -f1`"
+ REAL_DIM="`expr ${DU_DIM} + ${DU_DIM} / 20`" # Just 5% more to be sure, need something more sophistcated here...
+ genext2fs --size-in-blocks=${REAL_DIM} --reserved-blocks=0 --root="${COW}" "${DEST}" || exit 1
+ ;;
+ *)
+ echo "Internal error."
+ exit 1
+ ;;
+ esac
+}
+
+Is_same_mount ()
+{
+ dir1="`Base_path $1`"
+ dir2="`Base_path $2`"
+ if [ "${dir1}" = "${dir2}" ]; then
+ return 0
+ else
+ return 1
+ fi
+}
+
+Parse_args ()
+{
+ # Parse command line
+ ARGS="$1"
+ ARGUMENTS="`getopt --longoptions cow:,device:,output,resync-string:,type:,help,usage,version --name=${PROGRAM} --options c:d:o:t:r:,h,u,v --shell sh -- ${ARGS}`"
+
+ if [ "$?" != "0" ]; then
+ echo "Terminating." >&2
+ exit 1
+ fi
+
+ eval set -- "${ARGUMENTS}"
+
+ while true; do
+ case "$1" in
+ -c|--cow)
+ SNAP_COW="$2"; shift 2 ;;
+ -d|--device)
+ SNAP_DEV="$2"; shift 2 ;;
+ -o|--output)
+ SNAP_OUTPUT="$2"; shift 2 ;;
+ -t|--type)
+ SNAP_TYPE="$2"; shift 2 ;;
+ -r|--resync-string)
+ SNAP_RSTRING="$2"; break ;;
+ -h|--help)
+ Help; shift ;;
+ -u|--usage)
+ Usage ; shift ;;
+ -v|--version)
+ Version; shift ;;
+ --)
+ shift; break ;;
+ *)
+ echo "Internal error."; exit 1 ;;
+ esac
+ done
+}
+
+Mount_device ()
+{
+ dev="$1"
+
+ if [ ! -d "${MOUNTP}" ]; then
+ mkdir -p "${MOUNTP}"
+ fi
+
+ if [ -z "${dev}" ]; then
+ # create a temp
+ mount -t tmpfs -o rw tmpfs "${MOUNTP}"
+ if [ ! -L /home/$USERNAME/Desktop/live-snapshot ]; then
+ ln -s "${MOUNTP}" /home/$USERNAME/Desktop/live-snapshot
+ fi
+ else
+ if [ -b "${dev}" ] ; then
+ try_mount "${dev}" "${MOUNTP}" rw
+ fi
+ fi
+}
+
+Defaults ()
+{
+ MOUNTP="/mnt/live-snapshot"
+ COW="/live/cow"
+ DEV=""
+ DEST="${MOUNTP}/live-sn.cpio.gz"
+ TYPE="cpio"
+ DESKTOP_LINK=/home/$USERNAME/Desktop/live-snapshot
+
+ if [ -n "${SNAP_RSTRING}" ]; then
+ COW=$(echo "${SNAP_RSTRING}" | cut -f1 -d ':')
+ DEV=$(echo "${SNAP_RSTRING}" | cut -f2 -d ':')
+ DEST=$(echo "${SNAP_RSTRING}" | cut -f3 -d ':')
+
+ case "${DEST}" in
+ *.cpio.gz)
+ TYPE="cpio" ;;
+ *.squashfs)
+ TYPE="squashfs" ;;
+ "")
+ TYPE="ext2" ;;
+ *.ext2|*.ext3)
+ TYPE="ext2" ;;
+ *)
+ Usage "Unregognized String" ;;
+ esac
+ else
+ DEF_COW="/live/cow"
+ # Bad options handling
+ if [ -z "${SNAP_COW}" ]; then
+ COW="${DEF_COW}"
+ else
+ COW="${SNAP_COW}"
+ fi
+
+ case "${SNAP_TYPE}" in
+ "cpio"|"squashfs"|"ext2"|"ext3")
+ TYPE="${SNAP_TYPE}"
+ ;;
+ "")
+ TYPE="cpio" ;;
+ *)
+ Usage "Error: unrecognized snapshot type"
+ ;;
+ esac
+ #if [ -d
+ #if Is_same_mount
+ fi
+
+ # check vars
+ if [ ! -d "${COW}" ]; then
+ Usage "Error: ${COW} is not a directory"
+ fi
+
+ Mount_device $DEV
+
+}
+
+Clean ()
+{
+ if [ -n "$DEV" ]; then
+ umount "${MOUNTP}"
+ rmdir "${MOUNTP}"
+ #rm
+ fi
+}
+
+Main ()
+{
+ Parse_args "$@"
+ Defaults
+ Do_snapshot
+ Clean
+}
+
+Main "$@"
Deleted: releases/live-initramfs/1.91.4-1/debian/changelog
===================================================================
--- dists/trunk/live-initramfs/debian/changelog 2007-07-12 18:27:07 UTC (rev 2457)
+++ releases/live-initramfs/1.91.4-1/debian/changelog 2007-07-12 19:21:40 UTC (rev 2460)
@@ -1,66 +0,0 @@
-live-initramfs (1.91.4-1) UNRELEASED; urgency=medium
-
- * New upstream release:
- - Dropping transitional package, not needed anymore.
-
- -- Daniel Baumann <daniel at debian.org> Mon, 9 Jul 2007 00:00:00 +0200
-
-live-initramfs (1.91.3-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Daniel Baumann <daniel at debian.org> Mon, 2 Jul 2007 00:00:00 +0200
-
-live-initramfs (1.91.2-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Daniel Baumann <daniel at debian.org> Mon, 25 Jun 2007 00:00:00 +0200
-
-live-initramfs (1.91.1-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Daniel Baumann <daniel at debian.org> Mon, 18 Jun 2007 00:00:00 +0200
-
-live-initramfs (1.90.1-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Daniel Baumann <daniel at debian.org> Mon, 11 Jun 2007 00:00:00 +0200
-
-live-initramfs (1.87.6-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Daniel Baumann <daniel at debian.org> Mon, 4 Jun 2007 00:00:00 +0200
-
-live-initramfs (1.87.5-1) unstable; urgency=medium
-
- * New upstream release, replacing casper.
-
- -- Daniel Baumann <daniel at debian.org> Mon, 28 May 2007 00:00:00 +0200
-
-live-initramfs (1.87.4-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Daniel Baumann <daniel at debian.org> Mon, 21 May 2007 00:00:00 +0200
-
-live-initramfs (1.87.3-1) unstable; urgency=medium
-
- * New upstream release.
-
- -- Daniel Baumann <daniel at debian.org> Mon, 14 May 2007 00:00:00 +0200
-
-live-initramfs (1.87.2-1) unstable; urgency=low
-
- * New upstream release.
-
- -- Daniel Baumann <daniel at debian.org> Mon, 7 May 2007 00:00:00 +0200
-
-live-initramfs (1.87.1-1) unstable; urgency=low
-
- * Initial release, forking casper.
-
- -- Daniel Baumann <daniel at debian.org> Mon, 30 Apr 2007 00:00:00 +0200
Copied: releases/live-initramfs/1.91.4-1/debian/changelog (from rev 2458, dists/trunk/live-initramfs/debian/changelog)
===================================================================
--- releases/live-initramfs/1.91.4-1/debian/changelog (rev 0)
+++ releases/live-initramfs/1.91.4-1/debian/changelog 2007-07-12 19:21:40 UTC (rev 2460)
@@ -0,0 +1,66 @@
+live-initramfs (1.91.4-1) unstable; urgency=medium
+
+ * New upstream release:
+ - Dropping transitional package, not needed anymore.
+
+ -- Daniel Baumann <daniel at debian.org> Mon, 9 Jul 2007 00:00:00 +0200
+
+live-initramfs (1.91.3-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Daniel Baumann <daniel at debian.org> Mon, 2 Jul 2007 00:00:00 +0200
+
+live-initramfs (1.91.2-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Daniel Baumann <daniel at debian.org> Mon, 25 Jun 2007 00:00:00 +0200
+
+live-initramfs (1.91.1-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Daniel Baumann <daniel at debian.org> Mon, 18 Jun 2007 00:00:00 +0200
+
+live-initramfs (1.90.1-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Daniel Baumann <daniel at debian.org> Mon, 11 Jun 2007 00:00:00 +0200
+
+live-initramfs (1.87.6-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Daniel Baumann <daniel at debian.org> Mon, 4 Jun 2007 00:00:00 +0200
+
+live-initramfs (1.87.5-1) unstable; urgency=medium
+
+ * New upstream release, replacing casper.
+
+ -- Daniel Baumann <daniel at debian.org> Mon, 28 May 2007 00:00:00 +0200
+
+live-initramfs (1.87.4-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Daniel Baumann <daniel at debian.org> Mon, 21 May 2007 00:00:00 +0200
+
+live-initramfs (1.87.3-1) unstable; urgency=medium
+
+ * New upstream release.
+
+ -- Daniel Baumann <daniel at debian.org> Mon, 14 May 2007 00:00:00 +0200
+
+live-initramfs (1.87.2-1) unstable; urgency=low
+
+ * New upstream release.
+
+ -- Daniel Baumann <daniel at debian.org> Mon, 7 May 2007 00:00:00 +0200
+
+live-initramfs (1.87.1-1) unstable; urgency=low
+
+ * Initial release, forking casper.
+
+ -- Daniel Baumann <daniel at debian.org> Mon, 30 Apr 2007 00:00:00 +0200
Deleted: releases/live-initramfs/1.91.4-1/debian/init
===================================================================
--- dists/trunk/live-initramfs/debian/init 2007-07-12 18:27:07 UTC (rev 2457)
+++ releases/live-initramfs/1.91.4-1/debian/init 2007-07-12 19:21:40 UTC (rev 2460)
@@ -1,117 +0,0 @@
-#!/bin/sh
-
-### BEGIN INIT INFO
-# Provides: live-initramfs
-# Required-Start: $syslog
-# Required-Stop: $syslog
-# Should-Start: $local_fs
-# Should-Stop: $local_fs
-# Default-Start: 1 2 3 4 5
-# Default-Stop: 0 6
-# Short-Description: live-initramfs init script
-# Description: Resyncs snapshots, evantually caches files in order to
-# let remove the media.
-### END INIT INFO
-
-# Authors: Tollef Fog Heen <tfheen at canonical.com>
-# Marco Amadori <marco.amadori at gmail.com>
-
-PATH=/usr/sbin:/usr/bin:/sbin:/bin
-NAME=live-initramfs
-SCRIPTNAME=/etc/init.d/${NAME}
-DO_SNAPSHOT=/sbin/live-snapshot
-
-# Exit if system was not booted by live-initramfs
-grep -qs boot=live /proc/cmdline || exit 0
-
-# Read configuration variable file if it is present
-[ -r /etc/live.conf ] && . /etc/live.conf
-
-# Load the VERBOSE setting and other rcS variables
-[ -f /etc/default/rcS ] && . /etc/default/rcS
-
-# Define LSB log_* functions.
-# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
-. /lib/lsb/init-functions
-
-# Try to cache everything we're likely to need after ejecting. This
-# is fragile and simple-minded, but our options are limited.
-cache_path() {
- path="$1"
-
- if [ -d "$path" ]; then
- find "$path" -type f | xargs cat > /dev/null 2>&1
- elif [ -f "$path" ]; then
- if [ -x "$path" ]; then
- if file "$path" | grep -q 'dynamically linked'; then
- for lib in $(ldd "$path" | awk '{ print $3 }'); do
- cache_path "$lib"
- done
- fi
- fi
- cat "$path" >/dev/null 2>&1
- fi
-}
-
-do_stop ()
-{
- if [ ! -z "${ROOTSNAP}" ]; then
- $DO_SNAPSHOT --resync-string="${ROOTSNAP}"
- fi
-
- if [ ! -z "${HOMESNAP}" ]; then
- $DO_SNAPSHOT --resync-string="${HOMESNAP}"
- fi
-
- # check for netboot
- if [ ! -z "${NETBOOT}" ] || grep -qs netboot /proc/cmdline || grep -qsi root=/dev/nfs /proc/cmdline || grep -qsi root=/dev/cifs /proc/cmdline ; then
- return 0
- fi
-
- for path in $(which halt) $(which reboot) /etc/rc?.d /etc/default; do
- cache_path "$path"
- done
-
- for x in $(cat /proc/cmdline); do
- case $x in
- quickreboot)
- QUICKREBOOT="Yes"
- ;;
- esac
- done
-
- if [ -z ${QUICKREBOOT} ]; then
- if [ -x /usr/bin/eject ]
- then
- eject -p -m /live_media >/dev/null 2>&1
- fi
-
- # XXX - i18n
- echo "Please remove the disc and close the tray (if any) then press ENTER: "
- if [ -x /sbin/usplash_write ]; then
- /sbin/usplash_write "TIMEOUT 86400"
- /sbin/usplash_write "TEXT-URGENT Please remove the disc, close the tray (if any)"
- /sbin/usplash_write "TEXT-URGENT and press ENTER to continue"
- fi
-
- read x < /dev/console
- fi
-}
-
-case "$1" in
- start|restart|reload|force-reload|status)
- [ "$VERBOSE" != no ] && log_end_msg 0
- ;;
- stop)
- log_begin_msg "${NAME} is resyncing snapshots and caching reboot files..."
- do_stop
- case "$?" in
- 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
- 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
- esac
- ;;
- *)
- log_success_msg "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
- exit 3
- ;;
-esac
Copied: releases/live-initramfs/1.91.4-1/debian/init (from rev 2458, dists/trunk/live-initramfs/debian/init)
===================================================================
--- releases/live-initramfs/1.91.4-1/debian/init (rev 0)
+++ releases/live-initramfs/1.91.4-1/debian/init 2007-07-12 19:21:40 UTC (rev 2460)
@@ -0,0 +1,117 @@
+#!/bin/sh
+
+### BEGIN INIT INFO
+# Provides: live-initramfs
+# Required-Start: $syslog
+# Required-Stop: $syslog
+# Should-Start: $local_fs
+# Should-Stop: $local_fs
+# Default-Start: 1 2 3 4 5
+# Default-Stop: 0 6
+# Short-Description: live-initramfs init script
+# Description: Resyncs snapshots, evantually caches files in order to
+# let remove the media.
+### END INIT INFO
+
+# Authors: Tollef Fog Heen <tfheen at canonical.com>
+# Marco Amadori <marco.amadori at gmail.com>
+
+PATH=/usr/sbin:/usr/bin:/sbin:/bin
+NAME=live-initramfs
+SCRIPTNAME=/etc/init.d/${NAME}
+DO_SNAPSHOT=/sbin/live-snapshot
+
+# Exit if system was not booted by live-initramfs
+grep -qs boot=live /proc/cmdline || exit 0
+
+# Read configuration variable file if it is present
+[ -r /etc/live.conf ] && . /etc/live.conf
+
+# Load the VERBOSE setting and other rcS variables
+[ -f /etc/default/rcS ] && . /etc/default/rcS
+
+# Define LSB log_* functions.
+# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
+. /lib/lsb/init-functions
+
+# Try to cache everything we're likely to need after ejecting. This
+# is fragile and simple-minded, but our options are limited.
+cache_path() {
+ path="$1"
+
+ if [ -d "$path" ]; then
+ find "$path" -type f | xargs cat > /dev/null 2>&1
+ elif [ -f "$path" ]; then
+ if [ -x "$path" ]; then
+ if file "$path" | grep -q 'dynamically linked'; then
+ for lib in $(ldd "$path" | awk '{ print $3 }'); do
+ cache_path "$lib"
+ done
+ fi
+ fi
+ cat "$path" >/dev/null 2>&1
+ fi
+}
+
+do_stop ()
+{
+ if [ ! -z "${ROOTSNAP}" ]; then
+ $DO_SNAPSHOT --resync-string="${ROOTSNAP}"
+ fi
+
+ if [ ! -z "${HOMESNAP}" ]; then
+ $DO_SNAPSHOT --resync-string="${HOMESNAP}"
+ fi
+
+ # check for netboot
+ if [ ! -z "${NETBOOT}" ] || grep -qs netboot /proc/cmdline || grep -qsi root=/dev/nfs /proc/cmdline || grep -qsi root=/dev/cifs /proc/cmdline ; then
+ return 0
+ fi
+
+ for path in $(which halt) $(which reboot) /etc/rc?.d /etc/default; do
+ cache_path "$path"
+ done
+
+ for x in $(cat /proc/cmdline); do
+ case $x in
+ quickreboot)
+ QUICKREBOOT="Yes"
+ ;;
+ esac
+ done
+
+ if [ -z ${QUICKREBOOT} ]; then
+ if [ -x /usr/bin/eject ]
+ then
+ eject -p -m /live/image >/dev/null 2>&1
+ fi
+
+ # XXX - i18n
+ echo "Please remove the disc and close the tray (if any) then press ENTER: "
+ if [ -x /sbin/usplash_write ]; then
+ /sbin/usplash_write "TIMEOUT 86400"
+ /sbin/usplash_write "TEXT-URGENT Please remove the disc, close the tray (if any)"
+ /sbin/usplash_write "TEXT-URGENT and press ENTER to continue"
+ fi
+
+ read x < /dev/console
+ fi
+}
+
+case "$1" in
+ start|restart|reload|force-reload|status)
+ [ "$VERBOSE" != no ] && log_end_msg 0
+ ;;
+ stop)
+ log_begin_msg "${NAME} is resyncing snapshots and caching reboot files..."
+ do_stop
+ case "$?" in
+ 0|1) [ "$VERBOSE" != no ] && log_end_msg 0 ;;
+ 2) [ "$VERBOSE" != no ] && log_end_msg 1 ;;
+ esac
+ ;;
+ *)
+ log_success_msg "Usage: $SCRIPTNAME {start|stop|restart|force-reload}" >&2
+ exit 3
+ ;;
+esac
Deleted: releases/live-initramfs/1.91.4-1/docs/ChangeLog
===================================================================
--- dists/trunk/live-initramfs/docs/ChangeLog 2007-07-12 18:27:07 UTC (rev 2457)
+++ releases/live-initramfs/1.91.4-1/docs/ChangeLog 2007-07-12 19:21:40 UTC (rev 2460)
@@ -1,282 +0,0 @@
-2007-07-07 Daniel Baumann <daniel at debian.org>
-
- * scripts/live:
- - Added debug parameter.
-
-2007-06-31 Daniel Baumann <daniel at debian.org>
-
- * scripts/live:
- - Added patch from Julian Andres Klode <jak at jak-linux.org> to add
- support for aufs.
- * hooks/live, manpage/live-initramfs.en.7, scripts/live-bottom/12fstab:
- - Added aufs support.
- * Uploaded 1.91.3-1.
-
-2007-06-30 Daniel Baumann <daniel at debian.org>
-
- * scripts/live-bottom/12fstab:
- - Added disabling of /etc/init.d/checkfs.sh to avoid file systemcheck
- at boot time. Added nofastboot parameter to be able to change that.
- - Disabled removal of checkroot.sh.
-
-2007-06-28 Daniel Baumann <daniel at debian.org>
-
- * Applied patch from Mathieu Geli <mathieu.geli at gmail.com> to set the
- timezone with a boot parameter.
-
-2007-06-25 Daniel Baumann <daniel at debian.org>
-
- * scripts/live:
- - Added missing nfsopts boot parameter.
- - Changed default module name from 'order' to 'filesystem'.
- - Changed module extension from '.lst' to '.module'.
- - Check not just for $MODULE.module, but also
- filesystem.$MODULE.module
- - Cleaned up parse_cmdline and is_live_path functions.
- * debian/control, debian/live-initramfs.init,
- scripts/live-premount/10driver_updates:
- - Moving eject to recommends.
- - Added checks for eject existence.
- * Uploaded 1.91.2-1.
-
-2007-06-17 Daniel Baumann <daniel at debian.org>
-
- * debian/live-initramfs.postinst:
- - Made update-initramfs call conditional as suggested by Thomas Lange
- <lange at informatik.uni-koeln.de>.
- * debian/live-initramfs.postrm:
- - Added update-initramfs call to cleanup.
-
-2007-06-17 Daniel Baumann <daniel at debiann.org>
-
- * Added patch from Thomas Lange <lange at informatik.uni-koeln.de> to
- properly load ide-generic after udev.
- * Uploaded 1.91.1-1.
-
-2007-06-15 Daniel Baumann <daniel at debian.org>
-
- * Merging changes from casper 1.91.
-
-2007-06-14 Daniel Baumann <daniel at debian.org>
-
- * scripts/live-bottom/18hostname:
- - Appending to /etc/hosts to not overwrite custom settings.
-
-2007-06-08 Daniel Baumann <daniel at debian.org>
-
- * Merging changes from casper 1.88.
- * Merging changes from casper 1.90.
- * hooks/live:
- - Added force loading of ide-generic module. It is required on some
- systems to boot (reported as needed also for some qemu versions).
- * Uploaded 1.90.1-1.
-
-2007-06-04 Daniel Baumann <daniel at debian.org>
-
- * Uploaded 1.87.6-1.
-
-2007-05-28 Daniel Baumann <daniel at debian.org>
-
- * scripts/live-bottom/42apt_upgrade:
- - Moved to dedicated live-initscripts package.
-
-2007-05-24 Daniel Baumann <daniel at debian.org>
-
- * debian/control:
- - Added casper transitional package.
- - Removed usplash conflicts.
- * scripts/live-bottom/42apt_upgrade:
- - Added, idea taken from Kais webconverger.
- * Uploaded 1.87.5-1.
-
-2007-05-23 Daniel Baumann <daniel at debian.org>
-
- * scripts/*:
- - Minor code cleanup.
-
-2007-05-18 Daniel Baumann <daniel at debian.org>
-
- * scripts/live, scripts/live-bottom/05mountpoints:
- - Replaced 'mount -o move' with 'mount --move'.
- * scripts/live, scripts/live-bottom/10adduser:
- - Added check for 'nosudo' bootparameter to disable automatic
- sudo configuration.
- * scripts/live, scripts/live-bottom/13swap:
- - Renamed 'swapoff' parameter to 'noswap'.
- * scripts/live, scripts/live-bottom/15autologin:
- - Added check for 'noxautologin' bootparameter to disable automatic
- gdm/kdm login.
- * scripts/live, scripts/live-bottom/25configure_init:
- - Added check for 'noautologin' bootparameter to disable automatic
- terminal login.
- * bin/live-snapshot, scripts/live, scripts/live-helpers:
- - Also recognize ext3, but treat it like ext2.
- * Uploaded 1.87.4-1.
-
-2007-05-12 Daniel Baumann <daniel at debian.org>
-
- * scripts/live-bottom/*:
- - Added generic header.
-
-2007-05-12 Daniel Baumann <daniel at debian.org>
-
- * scripts/live:
- - Renamed CASPERCONF to LIVECONF.
- - Renamed CASPERGETTY to LIVE_GETTY.
- - Renamed LIVEMEDIA_* to LIVE_MEDIA_*.
- * Uploaded 1.87.3-1.
-
-2007-05-11 Daniel Baumann <daniel at debian.org>
-
- * hooks/live:
- - Reformated.
- * scripts/live, scripts/live-bottom/13swap:
- - Added check for swapoff bootparameter to disable usage of local swap
- partitions.
-
-2007-05-09 Daniel Baumann <daniel at debian.org>
-
- * manpages/*:
- - Added language suffix.
- - Partially rewritten and reformated.
-
-2007-05-08 Daniel Baumann <daniel at debian.org>
-
- * Makefile, doc/AUTHORS, doc/CREDITS:
- - Added.
- * doc:
- - Renamed to docs.
-
-2007-05-07 Daniel Baumann <daniel at debian.org>
-
- * debian/control:
- - Added suggests to genext2fs and squashfs-tools.
- - Removed depends to dmsetup.
- * scripts/live-bottom/10adduser:
- - Added patch from Ben Armstrong <synrg at debian.org> to write
- $HOME/.su-to-rootrc file.
- * scripts/live, scripts/live-bottom/21xvideomode:
- - Added patch from Mathieu Geli <mathieu.geli at gmail.com> to have the
- ability to force X video mode from kernel append line.
-
-2007-05-06 Daniel Baumann <daniel at debian.org>
-
- * Merging patches from casper 1.81+debian-4, see ChangeLog.casper.
- * conf/live.conf:
- - Renamed HOST to HOSTNAME.
- * debian/init:
- - Added quickreboot.
- - Renamed /cdrom to /live_media.
- * doc/ChangeLog.casper:
- - Added missing debian uploads.
- * manpages/live-initramfs.7:
- - Updated.
- * hooks/live:
- - Reading live.conf earlier.
- - Making some udev copies conditional for ubuntu.
- - Allowing local keymap when using encrypted filesystems.
- * scripts/live:
- - Renamed HOST to HOSTNAME.
- - Renamed /cdrom to /live_media.
- - Added support for live-snapshot.
- - Parsing commandline in one central place now.
- - Added support for encrypted filesytem images.
- - Added support for multiple filesystem images.
- * scripts/live-bottom/01integrity_check:
- - Renamed /cdrom to /live_media.
- * scripts/live-bottom/02etc_live_conf:
- - Added.
- * scripts/live-bottom/05mountpoints:
- - Renamed /cdrom to /live_media.
- - Don't do anything if not required.
- * scripts/live-bottom/10adduser:
- - Changed default password.
- - Disabling xscreensaver locking and copying ubiquity desktop only on
- ubuntu.
- * scripts/live-bottom/14locales:
- - Added handling of locale bootparameter.
- * scripts/live-bottom/15autologin:
- - Added workaround for using gdm default config.
- * scripts/live-bottom/18hostname:
- - Renamed HOST to HOSTNAME.
- * scripts/live-bottom/19keyboard:
- - Added handling of keyboard bootparameter.
- * scripts/live-bottom/20xconfig:
- - Added handling of keyboard bootparameter.
- - Added handling of locale bootparameter.
- * scripts/live-bottom/23networking:
- - Disabled loop over fixed network devices.
- * scripts/live-bottom/24preseed:
- - Added handling of multiple preseeding files.
- - Removed locale handling.
- * scripts/live-bottom/25configure_init:
- - Added handling of serial ttys.
- * scripts/live-bottom/30accessibility:
- - Removed extra parsing of commandline.
- * scripts/live-functions:
- - Added function to really export variables.
- * scripts/live-helpers:
- - Added support for encrypted filesytem images.
-
-2007-05-06 Daniel Baumann <daniel at debian.org>
-
- * bin/casper-getty, casper-login, casper-preseed, casper-reconfigure,
- casper-snapshot:
- - Renamed to live-*.
- * casper-md5check:
- - Moved to bin.
- - Renamed to live-md5check.
- * casper.conf:
- - Moved to conf/live.conf.
- * caspermon:
- - Removed.
- * hooks/casper, scripts/casper, casper-bottom, casper-functions,
- casper-helpers, casper-premount:
- - Renamed to live*.
- * bin/live-getty, live-login:
- - Reformated.
- * conf/live.conf:
- - Reformated.
- - Setting Debian defaults.
- * bin/live-snapshot, debian/dirs, debian/install, debian/rules,
- hooks/live, scripts/live:
- - Replaces casper directory and file names with live-initramfs
- directory and file names.
- * debian/manpage:
- - Moved to manpages.
- - Renamed casper.7 to live-initramfs.7.
- - Renamed casper-snapshot.1 to live-snapshot.1.
- * debian/init:
- - Changed activation parameter from boot=casper to boot=live.
- * scripts/live-bottom/02_timezone:
- - Fixed wrong script description.
- * Uploaded 1.87.2-1.
-
-2007-04-30 Daniel Baumann <daniel at debian.org>
-
- * Forked casper 1.87.
- * COPYING:
- - Added.
- * debian/control, debian/ubiquity-casper.install, ubiquity-hooks:
- - Removed ubiquity support.
- * debian/changelog:
- - Moved old changelog to doc/ChangeLog.casper.
- - Added new changelog for live-initramfs.
- * debian/casper.dirs, casper.init, casper.install, casper.manpages,
- casper.postinst:
- - Renamed, removed packagename prefix from filename.
- * debian/compat, copyright, dirs, manpages:
- - Updated.
- * debian/examples, links:
- - Added.
- * debian/rules:
- - Updated.
- - Added upstream target.
- * debian/control:
- - Updated.
- - Added depends to file.
- - Added conflicts/replaces to casper.
- * debian/postinst:
- - Running 'update-initramfs' for all kernel versions instead of latest
- only.
- * Uploaded 1.87.1-1.
Copied: releases/live-initramfs/1.91.4-1/docs/ChangeLog (from rev 2459, dists/trunk/live-initramfs/docs/ChangeLog)
===================================================================
--- releases/live-initramfs/1.91.4-1/docs/ChangeLog (rev 0)
+++ releases/live-initramfs/1.91.4-1/docs/ChangeLog 2007-07-12 19:21:40 UTC (rev 2460)
@@ -0,0 +1,290 @@
+2007-07-12 Daniel Baumann <daniel at debian.org>
+
+ * bin/live-snapshot, scripts/live:
+ - Moved /cow to /live/cow.
+ * scripts/live, scripts/live-bottom/01integrity_check, 05mountpoints:
+ - Moved /live_media to /live/image.
+ * Uploaded 1.91.4-1.
+
+2007-07-07 Daniel Baumann <daniel at debian.org>
+
+ * scripts/live:
+ - Added debug parameter.
+
+2007-06-31 Daniel Baumann <daniel at debian.org>
+
+ * scripts/live:
+ - Added patch from Julian Andres Klode <jak at jak-linux.org> to add
+ support for aufs.
+ * hooks/live, manpage/live-initramfs.en.7, scripts/live-bottom/12fstab:
+ - Added aufs support.
+ * Uploaded 1.91.3-1.
+
+2007-06-30 Daniel Baumann <daniel at debian.org>
+
+ * scripts/live-bottom/12fstab:
+ - Added disabling of /etc/init.d/checkfs.sh to avoid file systemcheck
+ at boot time. Added nofastboot parameter to be able to change that.
+ - Disabled removal of checkroot.sh.
+
+2007-06-28 Daniel Baumann <daniel at debian.org>
+
+ * Applied patch from Mathieu Geli <mathieu.geli at gmail.com> to set the
+ timezone with a boot parameter.
+
+2007-06-25 Daniel Baumann <daniel at debian.org>
+
+ * scripts/live:
+ - Added missing nfsopts boot parameter.
+ - Changed default module name from 'order' to 'filesystem'.
+ - Changed module extension from '.lst' to '.module'.
+ - Check not just for $MODULE.module, but also
+ filesystem.$MODULE.module
+ - Cleaned up parse_cmdline and is_live_path functions.
+ * debian/control, debian/live-initramfs.init,
+ scripts/live-premount/10driver_updates:
+ - Moving eject to recommends.
+ - Added checks for eject existence.
+ * Uploaded 1.91.2-1.
+
+2007-06-17 Daniel Baumann <daniel at debian.org>
+
+ * debian/live-initramfs.postinst:
+ - Made update-initramfs call conditional as suggested by Thomas Lange
+ <lange at informatik.uni-koeln.de>.
+ * debian/live-initramfs.postrm:
+ - Added update-initramfs call to cleanup.
+
+2007-06-17 Daniel Baumann <daniel at debiann.org>
+
+ * Added patch from Thomas Lange <lange at informatik.uni-koeln.de> to
+ properly load ide-generic after udev.
+ * Uploaded 1.91.1-1.
+
+2007-06-15 Daniel Baumann <daniel at debian.org>
+
+ * Merging changes from casper 1.91.
+
+2007-06-14 Daniel Baumann <daniel at debian.org>
+
+ * scripts/live-bottom/18hostname:
+ - Appending to /etc/hosts to not overwrite custom settings.
+
+2007-06-08 Daniel Baumann <daniel at debian.org>
+
+ * Merging changes from casper 1.88.
+ * Merging changes from casper 1.90.
+ * hooks/live:
+ - Added force loading of ide-generic module. It is required on some
+ systems to boot (reported as needed also for some qemu versions).
+ * Uploaded 1.90.1-1.
+
+2007-06-04 Daniel Baumann <daniel at debian.org>
+
+ * Uploaded 1.87.6-1.
+
+2007-05-28 Daniel Baumann <daniel at debian.org>
+
+ * scripts/live-bottom/42apt_upgrade:
+ - Moved to dedicated live-initscripts package.
+
+2007-05-24 Daniel Baumann <daniel at debian.org>
+
+ * debian/control:
+ - Added casper transitional package.
+ - Removed usplash conflicts.
+ * scripts/live-bottom/42apt_upgrade:
+ - Added, idea taken from Kais webconverger.
+ * Uploaded 1.87.5-1.
+
+2007-05-23 Daniel Baumann <daniel at debian.org>
+
+ * scripts/*:
+ - Minor code cleanup.
+
+2007-05-18 Daniel Baumann <daniel at debian.org>
+
+ * scripts/live, scripts/live-bottom/05mountpoints:
+ - Replaced 'mount -o move' with 'mount --move'.
+ * scripts/live, scripts/live-bottom/10adduser:
+ - Added check for 'nosudo' bootparameter to disable automatic
+ sudo configuration.
+ * scripts/live, scripts/live-bottom/13swap:
+ - Renamed 'swapoff' parameter to 'noswap'.
+ * scripts/live, scripts/live-bottom/15autologin:
+ - Added check for 'noxautologin' bootparameter to disable automatic
+ gdm/kdm login.
+ * scripts/live, scripts/live-bottom/25configure_init:
+ - Added check for 'noautologin' bootparameter to disable automatic
+ terminal login.
+ * bin/live-snapshot, scripts/live, scripts/live-helpers:
+ - Also recognize ext3, but treat it like ext2.
+ * Uploaded 1.87.4-1.
+
+2007-05-12 Daniel Baumann <daniel at debian.org>
+
+ * scripts/live-bottom/*:
+ - Added generic header.
+
+2007-05-12 Daniel Baumann <daniel at debian.org>
+
+ * scripts/live:
+ - Renamed CASPERCONF to LIVECONF.
+ - Renamed CASPERGETTY to LIVE_GETTY.
+ - Renamed LIVEMEDIA_* to LIVE_MEDIA_*.
+ * Uploaded 1.87.3-1.
+
+2007-05-11 Daniel Baumann <daniel at debian.org>
+
+ * hooks/live:
+ - Reformated.
+ * scripts/live, scripts/live-bottom/13swap:
+ - Added check for swapoff bootparameter to disable usage of local swap
+ partitions.
+
+2007-05-09 Daniel Baumann <daniel at debian.org>
+
+ * manpages/*:
+ - Added language suffix.
+ - Partially rewritten and reformated.
+
+2007-05-08 Daniel Baumann <daniel at debian.org>
+
+ * Makefile, doc/AUTHORS, doc/CREDITS:
+ - Added.
+ * doc:
+ - Renamed to docs.
+
+2007-05-07 Daniel Baumann <daniel at debian.org>
+
+ * debian/control:
+ - Added suggests to genext2fs and squashfs-tools.
+ - Removed depends to dmsetup.
+ * scripts/live-bottom/10adduser:
+ - Added patch from Ben Armstrong <synrg at debian.org> to write
+ $HOME/.su-to-rootrc file.
+ * scripts/live, scripts/live-bottom/21xvideomode:
+ - Added patch from Mathieu Geli <mathieu.geli at gmail.com> to have the
+ ability to force X video mode from kernel append line.
+
+2007-05-06 Daniel Baumann <daniel at debian.org>
+
+ * Merging patches from casper 1.81+debian-4, see ChangeLog.casper.
+ * conf/live.conf:
+ - Renamed HOST to HOSTNAME.
+ * debian/init:
+ - Added quickreboot.
+ - Renamed /cdrom to /live_media.
+ * doc/ChangeLog.casper:
+ - Added missing debian uploads.
+ * manpages/live-initramfs.7:
+ - Updated.
+ * hooks/live:
+ - Reading live.conf earlier.
+ - Making some udev copies conditional for ubuntu.
+ - Allowing local keymap when using encrypted filesystems.
+ * scripts/live:
+ - Renamed HOST to HOSTNAME.
+ - Renamed /cdrom to /live_media.
+ - Added support for live-snapshot.
+ - Parsing commandline in one central place now.
+ - Added support for encrypted filesytem images.
+ - Added support for multiple filesystem images.
+ * scripts/live-bottom/01integrity_check:
+ - Renamed /cdrom to /live_media.
+ * scripts/live-bottom/02etc_live_conf:
+ - Added.
+ * scripts/live-bottom/05mountpoints:
+ - Renamed /cdrom to /live_media.
+ - Don't do anything if not required.
+ * scripts/live-bottom/10adduser:
+ - Changed default password.
+ - Disabling xscreensaver locking and copying ubiquity desktop only on
+ ubuntu.
+ * scripts/live-bottom/14locales:
+ - Added handling of locale bootparameter.
+ * scripts/live-bottom/15autologin:
+ - Added workaround for using gdm default config.
+ * scripts/live-bottom/18hostname:
+ - Renamed HOST to HOSTNAME.
+ * scripts/live-bottom/19keyboard:
+ - Added handling of keyboard bootparameter.
+ * scripts/live-bottom/20xconfig:
+ - Added handling of keyboard bootparameter.
+ - Added handling of locale bootparameter.
+ * scripts/live-bottom/23networking:
+ - Disabled loop over fixed network devices.
+ * scripts/live-bottom/24preseed:
+ - Added handling of multiple preseeding files.
+ - Removed locale handling.
+ * scripts/live-bottom/25configure_init:
+ - Added handling of serial ttys.
+ * scripts/live-bottom/30accessibility:
+ - Removed extra parsing of commandline.
+ * scripts/live-functions:
+ - Added function to really export variables.
+ * scripts/live-helpers:
+ - Added support for encrypted filesytem images.
+
+2007-05-06 Daniel Baumann <daniel at debian.org>
+
+ * bin/casper-getty, casper-login, casper-preseed, casper-reconfigure,
+ casper-snapshot:
+ - Renamed to live-*.
+ * casper-md5check:
+ - Moved to bin.
+ - Renamed to live-md5check.
+ * casper.conf:
+ - Moved to conf/live.conf.
+ * caspermon:
+ - Removed.
+ * hooks/casper, scripts/casper, casper-bottom, casper-functions,
+ casper-helpers, casper-premount:
+ - Renamed to live*.
+ * bin/live-getty, live-login:
+ - Reformated.
+ * conf/live.conf:
+ - Reformated.
+ - Setting Debian defaults.
+ * bin/live-snapshot, debian/dirs, debian/install, debian/rules,
+ hooks/live, scripts/live:
+ - Replaces casper directory and file names with live-initramfs
+ directory and file names.
+ * debian/manpage:
+ - Moved to manpages.
+ - Renamed casper.7 to live-initramfs.7.
+ - Renamed casper-snapshot.1 to live-snapshot.1.
+ * debian/init:
+ - Changed activation parameter from boot=casper to boot=live.
+ * scripts/live-bottom/02_timezone:
+ - Fixed wrong script description.
+ * Uploaded 1.87.2-1.
+
+2007-04-30 Daniel Baumann <daniel at debian.org>
+
+ * Forked casper 1.87.
+ * COPYING:
+ - Added.
+ * debian/control, debian/ubiquity-casper.install, ubiquity-hooks:
+ - Removed ubiquity support.
+ * debian/changelog:
+ - Moved old changelog to doc/ChangeLog.casper.
+ - Added new changelog for live-initramfs.
+ * debian/casper.dirs, casper.init, casper.install, casper.manpages,
+ casper.postinst:
+ - Renamed, removed packagename prefix from filename.
+ * debian/compat, copyright, dirs, manpages:
+ - Updated.
+ * debian/examples, links:
+ - Added.
+ * debian/rules:
+ - Updated.
+ - Added upstream target.
+ * debian/control:
+ - Updated.
+ - Added depends to file.
+ - Added conflicts/replaces to casper.
+ * debian/postinst:
+ - Running 'update-initramfs' for all kernel versions instead of latest
+ only.
+ * Uploaded 1.87.1-1.
Deleted: releases/live-initramfs/1.91.4-1/manpages/live-snapshot.en.1
===================================================================
--- dists/trunk/live-initramfs/manpages/live-snapshot.en.1 2007-07-12 18:27:07 UTC (rev 2457)
+++ releases/live-initramfs/1.91.4-1/manpages/live-snapshot.en.1 2007-07-12 19:21:40 UTC (rev 2460)
@@ -1,71 +0,0 @@
-.TH LIVE\-SNAPSHOT 1 "2007\-07\-09" "1.91.4" "live\-initramfs"
-
-.SH NAME
-live\-snapshot \- a simple script to ease persistence usage
-
-.SH SYNOPSIS
-.B live\-snapshot
-.RB [\| \-c \||\| \-\-cow
-.IR DIRECTORY ]
-.RB [\| \-d \||\| \-\-device
-.IR DEVICE \|]
-.RB [\| \-e \||\| \-\-exclude\-list
-.IR FILE \|]
-.RB [\| \-o \||\| \-\-output
-.IR FILE \|]
-.RB [\| \-t \||\| \-\-type
-.IR TYPE \|]
-.PP
-.B live\-snapshot
-.RB [\| \-r \||\| \-\-resync\-string
-.IR STRING \|]
-.PP
-.B live\-snapshot
-.RB [\| \-h \||\| \-\-help \|]
-.br
-.B live\-snapshot
-.RB [\| \-u \||\| \-\-usage \|]
-.br
-.B live-snapshot
-.RB [\| \-v \||\| \-\-version \|]
-
-.SH DESCRIPTION
-live\-snapshot is a script which can be used to build the right types of persistent image files supported by \fIlive\-initramfs\fR(7). It is also used on exit by the live\-initramfs init script to resync the boot-found snapshots devices.
-
-.SH OPTIONS
-.IP "\fB\-c, \-\-cow\fR \fIDIRECTORY\fR" 4
-specifies the input directory to be cloned in the image file.
-Its default value "/cow" should be right for most uses. However it could be handy to specify "/home" and type ext2 for the type to prepare an image file suited to be directly mounted by live-initramfs as home.
-.IP "\fB\-d, \-\-device\fR \fIDEVICE\fR" 4
-sets the device where the media which the snapshot/persistence file/partition will be put. If it is not specified, a tmpfs will be used and linked to the user's desktop to move it where it is needed. If the device has no filesystem, an ext2 fs will be automatically created and labelled according to the values specified after the "--output" value or with a sane default.
-.IP "\fB\-e, \-\-exclude\-list\fR \fIFILE\fR" 4
-a file containing a list of filenames/paths that should not be saved. This exclude list will be remebered on the target snapshot media for reuse.
-.IP "\fB\-o, \-\-output\fR \fIFILE\fR" 4
-the filename/label used for the output file/partition. If left blank, live-snapshot will search for a proper file on the device or use the whole partition.
-.IP "\fB\-r, \-\-resync\-string\fR \fISTRING\fR" 4
-internally used on resyncs.
-.IP "\fB\-t, \-\-type\fR \fITYPE\fR" 4
-Type could be one of "cpio", "squashfs" or "ext2".
-.PP
-.IP "\fB\-h, \-\-help\fR" 4
-display help and exit
-.IP "\fB\-u, \-\-usage\fR" 4
-show usage and exit
-.IP "\fB\-v, \-\-version\fR" 4
-output version information and exit
-
-.SH SEE ALSO
-\fIlive\-initramfs\fR(8)
-.PP
-This program is a part of live\-initramfs.
-
-.SH BUGS
-Report bugs against live\-initramfs <\fIhttp://packages.qa.debian.org/live\-initramfs/\fR>.
-
-.SH HOMEPAGE
-More information about the Debian Live project can be found at <\fIhttp://debian\-live.alioth.debian.org/\fR> and <\fIhttp://wiki.debian.org/DebianLive/\fR>.
-
-.SH AUTHORS
-live\-initramfs is maintained by Daniel Baumann <\fIdaniel at debian.org\fR> and Marco Amadori <\fImarco.amadori at gmail.com\fR> for the Debian project.
-.PP
-live\-initramfs is a fork of casper <\fIhttp://packages.ubuntu.com/casper/\fR>. casper was originally written by Tollef Fog Heen <\fItfheen at canonical.com\fR> and Matt Zimmerman <\fImdz at canonical.com\fR>.
Copied: releases/live-initramfs/1.91.4-1/manpages/live-snapshot.en.1 (from rev 2459, dists/trunk/live-initramfs/manpages/live-snapshot.en.1)
===================================================================
--- releases/live-initramfs/1.91.4-1/manpages/live-snapshot.en.1 (rev 0)
+++ releases/live-initramfs/1.91.4-1/manpages/live-snapshot.en.1 2007-07-12 19:21:40 UTC (rev 2460)
@@ -0,0 +1,71 @@
+.TH LIVE\-SNAPSHOT 1 "2007\-07\-09" "1.91.4" "live\-initramfs"
+
+.SH NAME
+live\-snapshot \- a simple script to ease persistence usage
+
+.SH SYNOPSIS
+.B live\-snapshot
+.RB [\| \-c \||\| \-\-cow
+.IR DIRECTORY ]
+.RB [\| \-d \||\| \-\-device
+.IR DEVICE \|]
+.RB [\| \-e \||\| \-\-exclude\-list
+.IR FILE \|]
+.RB [\| \-o \||\| \-\-output
+.IR FILE \|]
+.RB [\| \-t \||\| \-\-type
+.IR TYPE \|]
+.PP
+.B live\-snapshot
+.RB [\| \-r \||\| \-\-resync\-string
+.IR STRING \|]
+.PP
+.B live\-snapshot
+.RB [\| \-h \||\| \-\-help \|]
+.br
+.B live\-snapshot
+.RB [\| \-u \||\| \-\-usage \|]
+.br
+.B live-snapshot
+.RB [\| \-v \||\| \-\-version \|]
+
+.SH DESCRIPTION
+live\-snapshot is a script which can be used to build the right types of persistent image files supported by \fIlive\-initramfs\fR(7). It is also used on exit by the live\-initramfs init script to resync the boot-found snapshots devices.
+
+.SH OPTIONS
+.IP "\fB\-c, \-\-cow\fR \fIDIRECTORY\fR" 4
+specifies the input directory to be cloned in the image file.
+Its default value "/live/cow" should be right for most uses. However it could be handy to specify "/home" and type ext2 for the type to prepare an image file suited to be directly mounted by live-initramfs as home.
+.IP "\fB\-d, \-\-device\fR \fIDEVICE\fR" 4
+sets the device where the media which the snapshot/persistence file/partition will be put. If it is not specified, a tmpfs will be used and linked to the user's desktop to move it where it is needed. If the device has no filesystem, an ext2 fs will be automatically created and labelled according to the values specified after the "--output" value or with a sane default.
+.IP "\fB\-e, \-\-exclude\-list\fR \fIFILE\fR" 4
+a file containing a list of filenames/paths that should not be saved. This exclude list will be remebered on the target snapshot media for reuse.
+.IP "\fB\-o, \-\-output\fR \fIFILE\fR" 4
+the filename/label used for the output file/partition. If left blank, live-snapshot will search for a proper file on the device or use the whole partition.
+.IP "\fB\-r, \-\-resync\-string\fR \fISTRING\fR" 4
+internally used on resyncs.
+.IP "\fB\-t, \-\-type\fR \fITYPE\fR" 4
+Type could be one of "cpio", "squashfs" or "ext2".
+.PP
+.IP "\fB\-h, \-\-help\fR" 4
+display help and exit
+.IP "\fB\-u, \-\-usage\fR" 4
+show usage and exit
+.IP "\fB\-v, \-\-version\fR" 4
+output version information and exit
+
+.SH SEE ALSO
+\fIlive\-initramfs\fR(8)
+.PP
+This program is a part of live\-initramfs.
+
+.SH BUGS
+Report bugs against live\-initramfs <\fIhttp://packages.qa.debian.org/live\-initramfs/\fR>.
+
+.SH HOMEPAGE
+More information about the Debian Live project can be found at <\fIhttp://debian\-live.alioth.debian.org/\fR> and <\fIhttp://wiki.debian.org/DebianLive/\fR>.
+
+.SH AUTHORS
+live\-initramfs is maintained by Daniel Baumann <\fIdaniel at debian.org\fR> and Marco Amadori <\fImarco.amadori at gmail.com\fR> for the Debian project.
+.PP
+live\-initramfs is a fork of casper <\fIhttp://packages.ubuntu.com/casper/\fR>. casper was originally written by Tollef Fog Heen <\fItfheen at canonical.com\fR> and Matt Zimmerman <\fImdz at canonical.com\fR>.
Deleted: releases/live-initramfs/1.91.4-1/manpages/live-snapshot.it.1
===================================================================
--- dists/trunk/live-initramfs/manpages/live-snapshot.it.1 2007-07-12 18:27:07 UTC (rev 2457)
+++ releases/live-initramfs/1.91.4-1/manpages/live-snapshot.it.1 2007-07-12 19:21:40 UTC (rev 2460)
@@ -1,70 +0,0 @@
-.TH LIVE\-SNAPSHOT 1 "02.07.2007" "1.91.3" "live\-initramfs"
-
-.SH NAME
-live\-snapshot \- uno script per facilitare l'uso della persistenza sui sistemi live
-
-.SH SYNOPSIS
-.B live\-snapshot
-.RB [\| \-c \||\| \-\-cow
-.IR DIRECTORY ]
-.RB [\| \-d \||\| \-\-device
-.IR DEVICE \|]
-.RB [\| \-e \||\| \-\-exclude\-list
-.IR FILE \|]
-.RB [\| \-o \||\| \-\-output
-.IR FILE \|]
-.RB [\| \-t \||\| \-\-type
-.IR TYPE \|]
-.PP
-.B live\-snapshot
-.RB [\| \-r \||\| \-\-resync\-string
-.IR STRING \|]
-.PP
-.B live\-snapshot
-.RB [\| \-h \||\| \-\-help \|]
-.br
-.B live\-snapshot
-.RB [\| \-u \||\| \-\-usage \|]
-.br
-.B live-snapshot
-.RB [\| \-v \||\| \-\-version \|]
-
-.SH DESCRIPTION
-live\-snapshot \[`e] uno script che pu\[`o] essere usato per costruire un file immagine formattato correttamente per essere usato da \fIlive\-initramfs\fR(7); viene inoltre usato dallo script di init di live\-initramfs in uscita per sincronizzare i device di snapshot riconosciuti al boot.
-
-.SH OPTIONS
-.IP "\fB\-c, \-\-cow\fR \fIDIRECTORY\fR" 4
-specifica la directory da clonare nel file immagine. Il valore di default \[`e] lo stesso default usato da live\-initramfs per la sua directory COW (copy on write, un tempo situata in "/cow") ed \[`e] sufficiente per gli usi comuni. Pu\[`o] essere utile tuttavia specificare "/home" e come tipo "ext2" per preparare un file immagine adatto per essere montato da live\-initramfs come "/home" al boot.
-.IP "\fB\-d, \-\-device\fR \fIDEVICE\fR" 4
-seleziona il device dove il file/partizione di snapshot o persistenza dovr\[`a] essere sistemato. Se il device non ha un filesystem, ne verr\[`a] creato uno automaticamente, di tipo ext2 ed etichettato (label) in base al valore specificato nell'opzione "--output" o con un default. Se non viene specificato nessun device, verr\[`a] usato un "tmpfs" linkato sul desktop dell'utente, in modo che port\[`a] essere mosso dove si vuole.
-.IP "\fB\-e, \-\-exclude\-list\fR \fIFILE\fR" 4
-un file contenente una lista di file e percorsi che NON devono essere salvati. Questa lista verr\[`a] inclusa nello snapshot per essere riutilizzata.
-.IP "\fB\-o, \-\-output\fR \fIFILE\fR" 4
-il nome del file o l'etichetta (label) da usare per il file o la partizione di snapshot. Se non specificata, live\-snapshot cercher\[`a] un file all'interno del device oppure user\[`a] l'intera partizione.
-.IP "\fB\-r, \-\-resync\-string\fR \fISTRING\fR" 4
-usato internamente nelle sincronizzazioni dallo script di init di live\-initramfs. Il formato pu\[`o] cambiare, usatelo a vostro rischio.
-.IP "\fB\-t, \-\-type\fR \fITYPE\fR" 4
-il tipo pu\[`o] essere "cpio", "squashfs" o "ext2".
-.PP
-.IP "\fB\-h, \-\-help\fR" 4
-mostra l'aiuto ed esce
-.IP "\fB\-u, \-\-usage\fR" 4
-mostra l'utilizzo ed esce
-.IP "\fB\-v, \-\-version\fR" 4
-da informazioni sulla versione ed esce
-
-.SH SEE ALSO
-\fIlive\-initramfs\fR(8)
-.PP
-Questo programma fa parte di live\-initramfs.
-
-.SH BUGS
-Riportate i bug sul pacchetto live\-initramfs <\fIhttp://packages.qa.debian.org/live\-initramfs/\fR>.
-
-.SH HOMEPAGE
-Ulteriori informazioni su progetto Debian Live possono essere trovate su <\fIhttp://debian\-live.alioth.debian.org/\fR> e <\fIhttp://wiki.debian.org/DebianLive/\fR>.
-
-.SH AUTHORS
-live\-initramfs \[`e] mantenuto da Daniel Baumann <\fIdaniel at debian.org\fR> e Marco Amadori <\fImarco.amadori at gmail.com\fR> per il progetto Debian.
-.PP
-live\-initramfs \[`e] un fork di casper <\fIhttp://packages.ubuntu.com/casper/\fR>. casper \[`e] stato scritto originariamente da Tollef Fog Heen <\fItfheen at canonical.com\fR> e Matt Zimmerman <\fImdz at canonical.com\fR>.
Copied: releases/live-initramfs/1.91.4-1/manpages/live-snapshot.it.1 (from rev 2459, dists/trunk/live-initramfs/manpages/live-snapshot.it.1)
===================================================================
--- releases/live-initramfs/1.91.4-1/manpages/live-snapshot.it.1 (rev 0)
+++ releases/live-initramfs/1.91.4-1/manpages/live-snapshot.it.1 2007-07-12 19:21:40 UTC (rev 2460)
@@ -0,0 +1,70 @@
+.TH LIVE\-SNAPSHOT 1 "02.07.2007" "1.91.3" "live\-initramfs"
+
+.SH NAME
+live\-snapshot \- uno script per facilitare l'uso della persistenza sui sistemi live
+
+.SH SYNOPSIS
+.B live\-snapshot
+.RB [\| \-c \||\| \-\-cow
+.IR DIRECTORY ]
+.RB [\| \-d \||\| \-\-device
+.IR DEVICE \|]
+.RB [\| \-e \||\| \-\-exclude\-list
+.IR FILE \|]
+.RB [\| \-o \||\| \-\-output
+.IR FILE \|]
+.RB [\| \-t \||\| \-\-type
+.IR TYPE \|]
+.PP
+.B live\-snapshot
+.RB [\| \-r \||\| \-\-resync\-string
+.IR STRING \|]
+.PP
+.B live\-snapshot
+.RB [\| \-h \||\| \-\-help \|]
+.br
+.B live\-snapshot
+.RB [\| \-u \||\| \-\-usage \|]
+.br
+.B live-snapshot
+.RB [\| \-v \||\| \-\-version \|]
+
+.SH DESCRIPTION
+live\-snapshot \[`e] uno script che pu\[`o] essere usato per costruire un file immagine formattato correttamente per essere usato da \fIlive\-initramfs\fR(7); viene inoltre usato dallo script di init di live\-initramfs in uscita per sincronizzare i device di snapshot riconosciuti al boot.
+
+.SH OPTIONS
+.IP "\fB\-c, \-\-cow\fR \fIDIRECTORY\fR" 4
+specifica la directory da clonare nel file immagine. Il valore di default \[`e] lo stesso default usato da live\-initramfs per la sua directory COW (copy on write, un tempo situata in "/live/cow") ed \[`e] sufficiente per gli usi comuni. Pu\[`o] essere utile tuttavia specificare "/home" e come tipo "ext2" per preparare un file immagine adatto per essere montato da live\-initramfs come "/home" al boot.
+.IP "\fB\-d, \-\-device\fR \fIDEVICE\fR" 4
+seleziona il device dove il file/partizione di snapshot o persistenza dovr\[`a] essere sistemato. Se il device non ha un filesystem, ne verr\[`a] creato uno automaticamente, di tipo ext2 ed etichettato (label) in base al valore specificato nell'opzione "--output" o con un default. Se non viene specificato nessun device, verr\[`a] usato un "tmpfs" linkato sul desktop dell'utente, in modo che port\[`a] essere mosso dove si vuole.
+.IP "\fB\-e, \-\-exclude\-list\fR \fIFILE\fR" 4
+un file contenente una lista di file e percorsi che NON devono essere salvati. Questa lista verr\[`a] inclusa nello snapshot per essere riutilizzata.
+.IP "\fB\-o, \-\-output\fR \fIFILE\fR" 4
+il nome del file o l'etichetta (label) da usare per il file o la partizione di snapshot. Se non specificata, live\-snapshot cercher\[`a] un file all'interno del device oppure user\[`a] l'intera partizione.
+.IP "\fB\-r, \-\-resync\-string\fR \fISTRING\fR" 4
+usato internamente nelle sincronizzazioni dallo script di init di live\-initramfs. Il formato pu\[`o] cambiare, usatelo a vostro rischio.
+.IP "\fB\-t, \-\-type\fR \fITYPE\fR" 4
+il tipo pu\[`o] essere "cpio", "squashfs" o "ext2".
+.PP
+.IP "\fB\-h, \-\-help\fR" 4
+mostra l'aiuto ed esce
+.IP "\fB\-u, \-\-usage\fR" 4
+mostra l'utilizzo ed esce
+.IP "\fB\-v, \-\-version\fR" 4
+da informazioni sulla versione ed esce
+
+.SH SEE ALSO
+\fIlive\-initramfs\fR(8)
+.PP
+Questo programma fa parte di live\-initramfs.
+
+.SH BUGS
+Riportate i bug sul pacchetto live\-initramfs <\fIhttp://packages.qa.debian.org/live\-initramfs/\fR>.
+
+.SH HOMEPAGE
+Ulteriori informazioni su progetto Debian Live possono essere trovate su <\fIhttp://debian\-live.alioth.debian.org/\fR> e <\fIhttp://wiki.debian.org/DebianLive/\fR>.
+
+.SH AUTHORS
+live\-initramfs \[`e] mantenuto da Daniel Baumann <\fIdaniel at debian.org\fR> e Marco Amadori <\fImarco.amadori at gmail.com\fR> per il progetto Debian.
+.PP
+live\-initramfs \[`e] un fork di casper <\fIhttp://packages.ubuntu.com/casper/\fR>. casper \[`e] stato scritto originariamente da Tollef Fog Heen <\fItfheen at canonical.com\fR> e Matt Zimmerman <\fImdz at canonical.com\fR>.
Deleted: releases/live-initramfs/1.91.4-1/scripts/live
===================================================================
--- dists/trunk/live-initramfs/scripts/live 2007-07-12 18:27:07 UTC (rev 2457)
+++ releases/live-initramfs/1.91.4-1/scripts/live 2007-07-12 19:21:40 UTC (rev 2460)
@@ -1,822 +0,0 @@
-#!/bin/sh
-
-# set -e
-
-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_media
-
-root_persistence="live-rw"
-home_persistence="home-rw"
-root_snapshot_label="live-sn"
-home_snapshot_label="home-sn"
-
-USERNAME=user
-USERFULLNAME="Live user"
-HOSTNAME=host
-BUILD_SYSTEM=Custom
-
-mkdir -p $mountpoint
-
-[ -f /etc/live.conf ] && . /etc/live.conf
-export USERNAME USERFULLNAME HOSTNAME BUILD_SYSTEM
-
-. /scripts/live-helpers
-
-if [ ! -f /live.vars ]; then
- touch /live.vars
-fi
-
-parse_cmdline ()
-{
- PRESEEDS=
-
- # looking for live-initramfs specifics options as kernel parameters
-
- for x in $(cat /proc/cmdline)
- do
- case $x in
- access=*)
- ACCESS=${x#access=}
- export ACCESS
- ;;
-
- console=*)
- DEFCONSOLE="${x#*=}"
- export DEFCONFSOLE
- ;;
-
- debug)
- DEBUG="Yes"
- export DEBUG
-
- set -x
- ;;
-
- hostname=*)
- HOSTNAME=${x#hostname=}
- LIVECONF="changed"
- export HOSTNAME LIVECONF
- ;;
-
- username=*)
- USERNAME=${x#username=}
- LIVECONF="changed"
- export USERNAME LIVECONF
- ;;
-
- userfullname=*)
- USERFULLNAME=${x#userfullname=}
- LIVECONF="changed"
- export USERFULLNAME LIVECONF
- ;;
-
- ip*)
- STATICIP=${x#ip=}
-
- if [ -z "${STATICIP}" ]
- then
- STATICIP="frommedia"
- fi
-
- export STATICIP
- ;;
-
- keyb=*|kbd-chooser/method=*)
- KBD=${x#*=}
- export KBD
- ;;
-
- klayout=*|console-setup/layoutcode=*)
- KLAYOUT=${x#*=}
- export KLAYOUT
- ;;
-
- kvariant=*|console-setup/variantcode=*)
- KVARIANT=${x#*=}
- export KVARIANT
- ;;
-
- kmodel=*|console-setup/modelcode=*)
- KMODEL=${x#*=}
- export KMODEL
- ;;
-
- koptions=*)
- KOPTIONS=${x#koptions=}
- export KOPTIONS
- ;;
-
- live-getty)
- LIVE_GETTY=1
- export LIVE_GETTY
- ;;
-
- live-media=*|bootfrom=*)
- LIVE_MEDIA=${x#*=}
- export LIVE_MEDIA
- ;;
-
- live-media-encryption=*|encryption=*)
- LIVE_MEDIA_ENCRYPTION=${x#*=}
- export LIVE_MEDIA_ENCRYPTION
- ;;
-
- live-media-offset=*)
- LIVE_MEDIA_OFFSET=${x#live-media-offset=}
- export LIVE_MEDIA_OFFSET
- ;;
-
- live-media-timeout=*)
- LIVE_MEDIA_TIMEOUT=${x#live-media-timeout=}
- export LIVE_MEDIA_TIMEOUT
- ;;
-
- locale=*|debian-installer/locale=*)
- LOCALE=${x#*=}
- export LOCALE
- ;;
-
- module=*)
- MODULE=${x#module=}
- export MODULE
- ;;
-
- netboot*)
- NETBOOT=${x#netboot=}
- export NETBOOT
- ;;
-
- nfsopts=*)
- NFSOPTS=${x#nfsopts=}
- export NFSOPTS
- ;;
-
- noautologin)
- NOAUTOLOGIN="Yes"
- export NOAUTOLOGIN
- ;;
-
- noxautologin)
- NOXAUTOLOGIN="Yes"
- export NOXAUTOLOGIN
- ;;
-
- nofastboot)
- NOFASTBOOT="Yes"
- export NOFASTBOOT
- ;;
-
- nopersistent)
- PERSISTENT=""
- export PERSISTENT
- ;;
-
- nosudo)
- NOSUDO="Yes"
- export NOSUDO
- ;;
-
- noswap)
- NOSWAP="Yes"
- export NOSWAP
- ;;
-
- persistent)
- PERSISTENT="Yes"
- export PERSISTENT
- ;;
-
- preseed/file=*|file=*)
- LOCATION="${x#*=}"
- export LOCATION
- ;;
-
- */*=*)
- question="${x%%=*}"
- value="${x#*=}"
- PRESEEDS="${PRESEEDS}\"${question}=${value}\" "
-
- export PRESEEDS
- ;;
-
- showmounts)
- SHOWMOUNTS="Yes"
- export SHOWMOUNTS
- ;;
-
- timezone=*)
- TIMEZONE="${x#timezone=}"
- export TIMEZONE
- ;;
-
- todisk=*)
- TODISK=${x#todisk=}
- export TODISK
- ;;
-
- toram)
- TORAM="Yes"
- export TORAM
- ;;
-
- union=*)
- UNIONTYPE="${x#union=}"
- export UNIONTYPE
- ;;
-
- xdebconf)
- XDEBCONF="Yes"
- export XDEBCONF
- ;;
-
- xvideomode=*)
- XVIDEOMODE="${x#xvideomode=}"
- export XVIDEOMODE
- ;;
- esac
- done
-
- # sort of compatibility with netboot.h from linux docs
- if [ -z "${NETBOOT}" ]
- then
- if [ "${ROOT}" = "/dev/nfs" ]
- then
- NETBOOT="nfs"
- export NETBOOT
- elif [ "${ROOT}" = "/dev/cifs" ]
- then
- NETBOOT="cifs"
- export NETBOOT
- fi
- fi
-
- if [ -z "${MODULE}" ]
- then
- MODULE="filesystem"
- export MODULE
- fi
-
- if [ -z "${UNIONTYPE}" ]
- then
- UNIONTYPE="unionfs"
- export UNIONTYPE
- fi
-}
-
-is_live_path()
-{
- DIRECTORY="${1}"
-
- if [ -d "${DIRECTORY}"/live ]
- then
- for FILESYSTEM in squashfs ext2 ext3 xfs dir
- do
- if [ "`echo ${DIRECTORY}/live/*.${FILESYSTEM}`" != "${DIRECTORY}/live/*.${FILESYSTEM}" ]
- then
- return 0
- fi
- done
- fi
-
- return 1
-}
-
-get_backing_device() {
- case "$1" in
- *.squashfs|*.ext2|*.ext3)
- echo $(setup_loop "$1" "loop" "/sys/block/loop*" '0' "${LIVE_MEDIA_ENCRYPTION}")
- ;;
- *.dir)
- echo "directory"
- ;;
- *)
- panic "Unrecognized live filesystem: $1"
- ;;
- esac
-}
-
-match_files_in_dir() {
- # Does any files match pattern $1 ?
-
- local pattern="$1"
- if [ "$(echo $pattern)" != "$pattern" ]; then
- return 0
- fi
- return 1
-}
-
-mount_images_in_directory() {
- directory="$1"
- rootmnt="$2"
- if match_files_in_dir "$directory/live/*.squashfs" ||
- match_files_in_dir "$directory/live/*.ext2" ||
- match_files_in_dir "$directory/live/*.ext3" ||
- match_files_in_dir "$directory/live/*.dir"; then
- setup_unionfs "$directory/live" "$rootmnt"
- else
- :
- fi
-}
-
-is_nice_device() {
- sysfs_path="${1#/sys}"
- if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-[^-]*-[ide|scsi|usb])"; then
- return 0
- fi
- return 1
-}
-
-is_supported_fs () {
- # FIXME: do something better like the scan of supported filesystems
- fstype="${1}"
- case ${fstype} in
- vfat|iso9660|udf|ext2|ext3|ntfs)
- return 0
- ;;
- esac
- return 1
-}
-
-copy_live_to() {
- copyfrom="${1}"
- copytodev="${2}"
- copyto="${copyfrom}_swap"
-
- size=$(fs_size "" ${copyfrom} "used")
-
- if [ "${copytodev}" = "ram" ]; then
- # copying to ram:
- freespace=$( expr $(awk '/MemFree/{print $2}' /proc/meminfo) + $( cat /proc/meminfo | grep Cached | head -n 1 | awk '/Cached/{print $2}' - ) )
- mount_options="-o size=${size}k"
- free_string="memory"
- fstype="tmpfs"
- dev="/dev/shm"
- else
- # it should be a writable block device
- if [ -b "${copytodev}" ]; then
- dev="${copytodev}"
- free_string="space"
- fstype=$(get_fstype "${dev}")
- freespace=$(fs_size "${dev}")
- else
- [ "$quiet" != "y" ] && log_warning_msg "${copytodev} is not a block device."
- return 1
- fi
- fi
- if [ "${freespace}" -lt "${size}" ] ; then
- [ "$quiet" != "y" ] && log_warning_msg "Not enough free ${free_string} (${freespace}k > ${size}k) to copy live media in ${copytodev}."
- return 1
- fi
-
- # begin copying..
- mkdir "${copyto}"
- echo "mount -t ${fstype} ${mount_options} ${dev} ${copyto}"
- mount -t "${fstype}" ${mount_options} "${dev}" "${copyto}"
- cp -a ${copyfrom}/* ${copyto} # "cp -a" from busybox also copies hidden files
- umount ${copyfrom}
- mount -r --move ${copyto} ${copyfrom}
- rmdir ${copyto}
- return 0
-}
-
-do_netmount() {
- rc=1
-
- modprobe "${MP_QUIET}" af_packet # For DHCP
-
- udevtrigger
- udevsettle
-
- ipconfig ${DEVICE} /tmp/net-${DEVICE}.conf | tee /netboot.config
-
- if [ "${NFSROOT}" = "auto" ]; then
- NFSROOT=${ROOTSERVER}:${ROOTPATH}
- fi
-
- [ "$quiet" != "y" ] && log_begin_msg "Trying netboot from ${NFSROOT}"
-
- if [ "${NETBOOT}" != "nfs" ] && do_cifsmount ; then
- rc=0
- elif do_nfsmount ; then
- NETBOOT="nfs"
- export NETBOOT
- rc=0
- fi
-
- [ "$quiet" != "y" ] && log_end_msg
- return ${rc}
-}
-
-do_nfsmount() {
- rc=1
- modprobe "${MP_QUIET}" nfs
- if [ -z "${NFSOPTS}" ]; then
- NFSOPTS=""
- fi
-
- [ "$quiet" != "y" ] && log_begin_msg "Trying nfsmount -o nolock -o ro ${NFSOPTS} ${NFSROOT} ${mountpoint}"
- # FIXME: This for loop is an ugly HACK round an nfs bug
- for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13; do
- nfsmount -o nolock -o ro ${NFSOPTS} "${NFSROOT}" "${mountpoint}" && rc=0 && break
- sleep 1
- done
- return ${rc}
-}
-
-do_cifsmount() {
- rc=1
- if [ -x "/sbin/mount.cifs" ]; then
- if [ -z "${NFSOPTS}" ]; then
- CIFSOPTS="-ouser=root,password="
- else
- CIFSOPTS="${NFSOPTS}"
- fi
-
- [ "$quiet" != "y" ] && log_begin_msg "Trying mount.cifs ${NFSROOT} ${mountpoint} ${CIFSOPTS}"
- modprobe "${MP_QUIET}" cifs
-
- if mount.cifs "${NFSROOT}" "${mountpoint}" "${CIFSOPTS}" ; then
- rc=0
- fi
- fi
- return ${rc}
-}
-
-do_snap_copy ()
-{
- fromdev="${1}"
- todir="${2}"
- snap_type="${3}"
-
- size=$(fs_size "${fromdev}" "" "used")
-
- if [ -b "${fromdev}" ]; then
- # look for free mem
- if [ -n "${HOMEMOUNTED}" -a "${snap_type}" = "HOME" ]; then
- todev=$(cat /proc/mounts | grep -s " $(base_path ${todir}) " | awk '{print $1}' )
- freespace=$(df -k | grep -s ${todev} | awk '{print $4}')
- else
- freespace=$( expr $(awk '/MemFree/{print $2}' /proc/meminfo) + $( cat /proc/meminfo | grep Cached | head -n 1 | awk '/Cached/{print $2}' - ))
- fi
-
- tomount="/mnt/tmpsnap"
- if [ ! -d "${tomount}" ] ; then
- mkdir -p "${tomount}"
- fi
-
- fstype=$(get_fstype "${fromdev}")
- if [ -n "${fstype}" ]; then
- # Copying stuff...
- mount -t "${fstype}" -o ro "${fromdev}" "${tomount}"
- cp -a "${tomount}"/* ${todir}
- umount "${tomount}"
- else
- log_warning_msg "Unrecognized fstype: ${fstype} on ${fromdev}:${snap_type}"
- fi
-
- rmdir "${tomount}"
- if echo ${fromdev} | grep -qs loop; then
- losetup -d "${fromdev}"
- fi
- return 0
- else
- return 1
- [ "$quiet" != "y" ] && log_warning_msg "Unable to find the snapshot ${snap_type} medium"
- fi
-}
-
-try_snap ()
-{
- # Look for $snap_label.* in block devices and copy the contents to $snap_mount
- # and remember the device and filename for resync on exit in live-initramfs.init
-
- snap_label="${1}"
- snap_mount="${2}"
- snap_type="${3}"
-
- snapdata=$(find_files "${snap_label}.squashfs ${snap_label}.cpio.gz ${snap_label}.ext2 ${snap_label}.ext3")
- if [ ! -z "${snapdata}" ]; then
- snapdev="$(echo ${snapdata} | cut -f1 -d ' ')"
- snapback="$(echo ${snapdata} | cut -f2 -d ' ')"
- snapfile="$(echo ${snapdata} | cut -f3 -d ' ')"
- if echo "${snapfile}" | grep -qs '\(squashfs\|ext2\|ext3\)'; then
- # squashfs or ext2/ext3 snapshot
- dev=$(get_backing_device "${snapback}/${snapfile}")
- if ! do_snap_copy "${dev}" "${snap_mount}" "${snap_type}"; then
- log_warning_msg "Impossible to include the ${snapfile} Snapshot"
- return 1
- fi
- else
- # cpio.gz snapshot
- if ! (cd "${snap_mount}" && zcat "${snapback}/${snapfile}" | cpio -i -u -d 2>/dev/null) ; then
- log_warning_msg "Impossible to include the ${snapfile} Snapshot"
- return 1
- fi
- fi
- umount "${snapback}"
- else
- dev=$(find_cow_device "${snap_label}")
- if [ -b ${dev} ]; then
- if echo "${dev}" | grep -qs loop; then
- # strange things happens, user confused?
- snaploop=$( losetup ${dev} | awk '{print $3}' | tr -d '()' )
- snapfile=$(basename ${snaploop})
- snapdev=$(cat /proc/mounts | awk '{print $2,$1}' | grep -es "^$( dirname ${snaploop} )" | cut -f2 -d ' ')
- else
- snapdev="${dev}"
- fi
- if ! do_snap_copy "${dev}" "${snap_mount}" "${snap_type}" ; then
- log_warning_msg "Impossible to include the ${snap_label} Snapshot"
- return 1
- else
- if [ -n "${snapfile}" ]; then
- # it was a loop device, user confused
- umount ${snapdev}
- fi
- fi
- else
- log_warning_msg "Impossible to include the ${snap_label} Snapshot"
- return 1
- fi
- fi
- echo "export ${snap_type}SNAP="${snap_mount}":${snapdev}:${snapfile}" >> /etc/live.conf # for resync on reboot/halt
- return 0
-}
-
-setup_unionfs() {
- image_directory="$1"
- rootmnt="$2"
-
- modprobe "${MP_QUIET}" -b ${UNIONTYPE}
-
- # run-init can't deal with images in a subdir, but we're going to
- # move all of these away before it runs anyway. No, we're not,
- # put them in / since move-mounting them into / breaks mono and
- # some other apps.
-
- croot="/"
-
- # Let's just mount the read-only file systems first
- rofsstring=""
- rofslist=""
- if [ "${NETBOOT}" = "nfs" ] ; then
- roopt="nfsro" # go aroung a bug in nfs-unionfs locking
- else
- roopt="ro"
- fi
-
- # Read image names from ${MODULE}.module if it exists
- if [ -e "${image_directory}/filesystem.${MODULE}.module" ]
- then
- for IMAGE in `cat ${image_directory}/filesystem.${MODULE}.module`
- do
- image_string="${image_string} ${image_directory}/${image}"
- done
- elif [ -e "${image_directory}/${MODULE}.module" ]
- then
- for IMAGE in `cat ${image_directory}/${MODULE}.module`
- do
- image_string="${image_string} ${image_directory}/${image}"
- done
- else
- # ${MODULE}.module does not exist, create a list of images
- for FILESYSTEM in squashfs ext2 ext3 xfs dir
- do
- for IMAGE in "${image_directory}"/*."${FILESYSTEM}"
- do
- if [ -e "${IMAGE}" ]
- then
- image_string="${image_string} ${IMAGE}"
- fi
- done
- done
-
- # Now sort the list
- image_string="`echo ${image_string} | sed -e 's/ /\n/g' | sort `"
- fi
-
- mkdir -p "${croot}"
- for image in ${image_string}; do
- imagename=$(basename "${image}")
- if [ -d "${image}" ]; then
- # it is a plain directory: do nothing
- rofsstring="${image}=${roopt}:${rofsstring}"
- rofslist="${image} ${rofslist}"
- elif [ -f "${image}" ]; then
- backdev=$(get_backing_device "$image")
- fstype=$(get_fstype "${backdev}")
- if [ "${fstype}" = "unknown" ]; then
- panic "Unknown file system type on ${backdev} (${image})"
- fi
- mkdir -p "${croot}/${imagename}"
- mount -t "${fstype}" -o ro "${backdev}" "${croot}/${imagename}" || panic "Can not mount $backdev ($image) on ${croot}/${imagename}" && rofsstring="${croot}/${imagename}=${roopt}:${rofsstring}" && rofslist="${croot}/${imagename} ${rofslist}"
- fi
- done
- rofsstring=${rofsstring%:}
-
- mkdir -p /cow
- cowdevice="tmpfs"
- cow_fstype="tmpfs"
-
- # Looking for "${root_persistence}" device or file
- if [ -n "${PERSISTENT}" ]; then
- cowprobe=$(find_cow_device "${root_persistence}")
- if [ -b "${cowprobe}" ]; then
- cowdevice=${cowprobe}
- cow_fstype=$(get_fstype "${cowprobe}")
- else
- [ "$quiet" != "y" ] && log_warning_msg "Unable to find the persistent medium"
- fi
- fi
-
- mount ${cowdevice} -t ${cow_fstype} -o rw /cow || panic "Can not mount $cowdevice on /cow"
-
- mount -t ${UNIONTYPE} -o dirs=/cow=rw:$rofsstring ${UNIONTYPE} "$rootmnt" || panic "${UNIONTYPE} mount failed"
-
- # Adding other custom mounts
- if [ -n "${PERSISTENT}" ]; then
- # directly mount /home
- # FIXME: add a custom mounts configurable system
- homecow=$(find_cow_device "${home_persistence}" )
- if [ -b "${homecow}" ]; then
- mount -t $(get_fstype "${homecow}") -o rw "${homecow}" "${rootmnt}/home"
- export HOMEMOUNTED=1 # used to proper calculate free space in do_snap_copy()
- else
- [ "$quiet" != "y" ] && log_warning_msg "Unable to find the persistent home medium"
- fi
- # Look for other snapshots to copy in
- try_snap "${root_snapshot_label}" "${rootmnt}" "ROOT"
- try_snap "${home_snapshot_label}" "${rootmnt}/home" "HOME"
- fi
-
- if [ -n "${SHOWMOUNTS}" ]; then
- for d in ${rofslist}; do
- mkdir -p "${rootmnt}/live/${d##*/}"
- case d in
- *.dir) # do nothing # mount -o bind "${d}" "${rootmnt}/live/${d##*/}"
- ;;
- *) mount --move "${d}" "${rootmnt}/live/${d##*/}"
- ;;
- esac
- done
- fi
-
- # shows cow fs on /cow for use by live-snapshot
- mkdir -p "${rootmnt}/cow"
- mount -o bind /cow "${rootmnt}/cow"
-}
-
-check_dev ()
-{
- sysdev="${1}"
- devname="${2}"
- if [ -z "${devname}" ]; then
- devname=$(sys2dev "${sysdev}")
- fi
-
- if [ -n "${LIVE_MEDIA_OFFSET}" ]; then
- loopdevname=$(setup_loop "${devname}" "loop" "/sys/block/loop*" "${LIVE_MEDIA_OFFSET}" '')
- devname="${loopdevname}"
- fi
-
- fstype=$(get_fstype "${devname}")
- if is_supported_fs ${fstype}; then
- mount -t ${fstype} -o ro "${devname}" $mountpoint || continue
- if is_live_path $mountpoint; then
- echo $mountpoint
- return 0
- else
- umount $mountpoint
- fi
- fi
-
- if [ -n "${LIVE_MEDIA_OFFSET}" ]; then
- losetup -d "${loopdevname}"
- fi
- return 1
-}
-
-find_livefs() {
- timeout="${1}"
- # first look at the one specified in the command line
- if [ ! -z "${LIVE_MEDIA}" ]; then
- if check_dev "null" "${LIVE_MEDIA}"; then
- return 0
- fi
- fi
- # don't start autodetection before timeout has expired
- if [ -n "${LIVE_MEDIA_TIMEOUT}" ]; then
- if [ "${timeout}" -lt "${LIVE_MEDIA_TIMEOUT}" ]; then
- return 1
- fi
- fi
- # or do the scan of block devices
- for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop | grep -v ram); do
- devname=$(sys2dev "${sysblock}")
- fstype=$(get_fstype "${devname}")
- if /lib/udev/cdrom_id ${devname} > /dev/null; then
- if check_dev "null" "${devname}" ; then
- return 0
- fi
- elif is_nice_device "${sysblock}" ; then
- for dev in $(subdevices "${sysblock}"); do
- if check_dev "${dev}" ; then
- return 0
- fi
- done
- elif [ "${fstype}" = "squashfs" -o \
- "${fstype}" = "ext2" -o \
- "${fstype}" = "ext3" ]; then
- # This is an ugly hack situation, the block device has
- # an image directly on it. It's hopefully
- # live-initramfs, so take it and run with it.
- ln -s "${devname}" "${devname}.${fstype}"
- echo "${devname}.${fstype}"
- return 0
- fi
- done
- return 1
-}
-
-pulsate() {
- if [ -x /sbin/usplash_write ]; then
- /sbin/usplash_write "PULSATE"
- fi
-}
-
-set_usplash_timeout() {
- if [ -x /sbin/usplash_write ]; then
- /sbin/usplash_write "TIMEOUT 120"
- fi
-}
-
-mountroot() {
- exec 6>&1
- exec 7>&2
- exec > live.log
- exec 2>&1
-
- parse_cmdline
-
- set_usplash_timeout
- [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/live-premount"
- pulsate
- run_scripts /scripts/live-premount
- [ "$quiet" != "y" ] && log_end_msg
-
- # Needed here too because some things (*cough* udev *cough*)
- # changes the timeout
-
- set_usplash_timeout
-
- if [ ! -z "${NETBOOT}" ]; then
- if do_netmount ; then
- livefs_root="${mountpoint}"
- else
- panic "Unable to find a live file system on the network"
- fi
- else
- # Scan local devices for the image
- for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do
- livefs_root=$(find_livefs $i)
- if [ -n "${livefs_root}" ]; then
- break
- fi
- sleep 1
- done
- fi
-
- if [ -z "${livefs_root}" ]; then
- panic "Unable to find a medium containing a live file system"
- fi
-
- if [ "${TORAM}" ]; then
- live_dest="ram"
- elif [ "${TODISK}" ]; then
- live_dest="${TODISK}"
- fi
- if [ "${live_dest}" ]; then
- log_begin_msg "Copying live_media to ${live_dest}"
- copy_live_to "${livefs_root}" "${live_dest}"
- log_end_msg
- fi
-
- mount_images_in_directory "${livefs_root}" "${rootmnt}"
-
- log_end_msg
-
- maybe_break live-bottom
- [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/live-bottom"
-
- pulsate
- run_scripts /scripts/live-bottom
- [ "$quiet" != "y" ] && log_end_msg
-
- exec 1>&6 6>&-
- exec 2>&7 7>&-
- cp live.log "${rootmnt}/var/log/"
-}
Copied: releases/live-initramfs/1.91.4-1/scripts/live (from rev 2459, dists/trunk/live-initramfs/scripts/live)
===================================================================
--- releases/live-initramfs/1.91.4-1/scripts/live (rev 0)
+++ releases/live-initramfs/1.91.4-1/scripts/live 2007-07-12 19:21:40 UTC (rev 2460)
@@ -0,0 +1,822 @@
+#!/bin/sh
+
+# set -e
+
+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
+
+root_persistence="live-rw"
+home_persistence="home-rw"
+root_snapshot_label="live-sn"
+home_snapshot_label="home-sn"
+
+USERNAME=user
+USERFULLNAME="Live user"
+HOSTNAME=host
+BUILD_SYSTEM=Custom
+
+mkdir -p $mountpoint
+
+[ -f /etc/live.conf ] && . /etc/live.conf
+export USERNAME USERFULLNAME HOSTNAME BUILD_SYSTEM
+
+. /scripts/live-helpers
+
+if [ ! -f /live.vars ]; then
+ touch /live.vars
+fi
+
+parse_cmdline ()
+{
+ PRESEEDS=
+
+ # looking for live-initramfs specifics options as kernel parameters
+
+ for x in $(cat /proc/cmdline)
+ do
+ case $x in
+ access=*)
+ ACCESS=${x#access=}
+ export ACCESS
+ ;;
+
+ console=*)
+ DEFCONSOLE="${x#*=}"
+ export DEFCONFSOLE
+ ;;
+
+ debug)
+ DEBUG="Yes"
+ export DEBUG
+
+ set -x
+ ;;
+
+ hostname=*)
+ HOSTNAME=${x#hostname=}
+ LIVECONF="changed"
+ export HOSTNAME LIVECONF
+ ;;
+
+ username=*)
+ USERNAME=${x#username=}
+ LIVECONF="changed"
+ export USERNAME LIVECONF
+ ;;
+
+ userfullname=*)
+ USERFULLNAME=${x#userfullname=}
+ LIVECONF="changed"
+ export USERFULLNAME LIVECONF
+ ;;
+
+ ip*)
+ STATICIP=${x#ip=}
+
+ if [ -z "${STATICIP}" ]
+ then
+ STATICIP="frommedia"
+ fi
+
+ export STATICIP
+ ;;
+
+ keyb=*|kbd-chooser/method=*)
+ KBD=${x#*=}
+ export KBD
+ ;;
+
+ klayout=*|console-setup/layoutcode=*)
+ KLAYOUT=${x#*=}
+ export KLAYOUT
+ ;;
+
+ kvariant=*|console-setup/variantcode=*)
+ KVARIANT=${x#*=}
+ export KVARIANT
+ ;;
+
+ kmodel=*|console-setup/modelcode=*)
+ KMODEL=${x#*=}
+ export KMODEL
+ ;;
+
+ koptions=*)
+ KOPTIONS=${x#koptions=}
+ export KOPTIONS
+ ;;
+
+ live-getty)
+ LIVE_GETTY=1
+ export LIVE_GETTY
+ ;;
+
+ live-media=*|bootfrom=*)
+ LIVE_MEDIA=${x#*=}
+ export LIVE_MEDIA
+ ;;
+
+ live-media-encryption=*|encryption=*)
+ LIVE_MEDIA_ENCRYPTION=${x#*=}
+ export LIVE_MEDIA_ENCRYPTION
+ ;;
+
+ live-media-offset=*)
+ LIVE_MEDIA_OFFSET=${x#live-media-offset=}
+ export LIVE_MEDIA_OFFSET
+ ;;
+
+ live-media-timeout=*)
+ LIVE_MEDIA_TIMEOUT=${x#live-media-timeout=}
+ export LIVE_MEDIA_TIMEOUT
+ ;;
+
+ locale=*|debian-installer/locale=*)
+ LOCALE=${x#*=}
+ export LOCALE
+ ;;
+
+ module=*)
+ MODULE=${x#module=}
+ export MODULE
+ ;;
+
+ netboot*)
+ NETBOOT=${x#netboot=}
+ export NETBOOT
+ ;;
+
+ nfsopts=*)
+ NFSOPTS=${x#nfsopts=}
+ export NFSOPTS
+ ;;
+
+ noautologin)
+ NOAUTOLOGIN="Yes"
+ export NOAUTOLOGIN
+ ;;
+
+ noxautologin)
+ NOXAUTOLOGIN="Yes"
+ export NOXAUTOLOGIN
+ ;;
+
+ nofastboot)
+ NOFASTBOOT="Yes"
+ export NOFASTBOOT
+ ;;
+
+ nopersistent)
+ PERSISTENT=""
+ export PERSISTENT
+ ;;
+
+ nosudo)
+ NOSUDO="Yes"
+ export NOSUDO
+ ;;
+
+ noswap)
+ NOSWAP="Yes"
+ export NOSWAP
+ ;;
+
+ persistent)
+ PERSISTENT="Yes"
+ export PERSISTENT
+ ;;
+
+ preseed/file=*|file=*)
+ LOCATION="${x#*=}"
+ export LOCATION
+ ;;
+
+ */*=*)
+ question="${x%%=*}"
+ value="${x#*=}"
+ PRESEEDS="${PRESEEDS}\"${question}=${value}\" "
+
+ export PRESEEDS
+ ;;
+
+ showmounts)
+ SHOWMOUNTS="Yes"
+ export SHOWMOUNTS
+ ;;
+
+ timezone=*)
+ TIMEZONE="${x#timezone=}"
+ export TIMEZONE
+ ;;
+
+ todisk=*)
+ TODISK=${x#todisk=}
+ export TODISK
+ ;;
+
+ toram)
+ TORAM="Yes"
+ export TORAM
+ ;;
+
+ union=*)
+ UNIONTYPE="${x#union=}"
+ export UNIONTYPE
+ ;;
+
+ xdebconf)
+ XDEBCONF="Yes"
+ export XDEBCONF
+ ;;
+
+ xvideomode=*)
+ XVIDEOMODE="${x#xvideomode=}"
+ export XVIDEOMODE
+ ;;
+ esac
+ done
+
+ # sort of compatibility with netboot.h from linux docs
+ if [ -z "${NETBOOT}" ]
+ then
+ if [ "${ROOT}" = "/dev/nfs" ]
+ then
+ NETBOOT="nfs"
+ export NETBOOT
+ elif [ "${ROOT}" = "/dev/cifs" ]
+ then
+ NETBOOT="cifs"
+ export NETBOOT
+ fi
+ fi
+
+ if [ -z "${MODULE}" ]
+ then
+ MODULE="filesystem"
+ export MODULE
+ fi
+
+ if [ -z "${UNIONTYPE}" ]
+ then
+ UNIONTYPE="unionfs"
+ export UNIONTYPE
+ fi
+}
+
+is_live_path()
+{
+ DIRECTORY="${1}"
+
+ if [ -d "${DIRECTORY}"/live ]
+ then
+ for FILESYSTEM in squashfs ext2 ext3 xfs dir
+ do
+ if [ "`echo ${DIRECTORY}/live/*.${FILESYSTEM}`" != "${DIRECTORY}/live/*.${FILESYSTEM}" ]
+ then
+ return 0
+ fi
+ done
+ fi
+
+ return 1
+}
+
+get_backing_device() {
+ case "$1" in
+ *.squashfs|*.ext2|*.ext3)
+ echo $(setup_loop "$1" "loop" "/sys/block/loop*" '0' "${LIVE_MEDIA_ENCRYPTION}")
+ ;;
+ *.dir)
+ echo "directory"
+ ;;
+ *)
+ panic "Unrecognized live filesystem: $1"
+ ;;
+ esac
+}
+
+match_files_in_dir() {
+ # Does any files match pattern $1 ?
+
+ local pattern="$1"
+ if [ "$(echo $pattern)" != "$pattern" ]; then
+ return 0
+ fi
+ return 1
+}
+
+mount_images_in_directory() {
+ directory="$1"
+ rootmnt="$2"
+ if match_files_in_dir "$directory/live/*.squashfs" ||
+ match_files_in_dir "$directory/live/*.ext2" ||
+ match_files_in_dir "$directory/live/*.ext3" ||
+ match_files_in_dir "$directory/live/*.dir"; then
+ setup_unionfs "$directory/live" "$rootmnt"
+ else
+ :
+ fi
+}
+
+is_nice_device() {
+ sysfs_path="${1#/sys}"
+ if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-[^-]*-[ide|scsi|usb])"; then
+ return 0
+ fi
+ return 1
+}
+
+is_supported_fs () {
+ # FIXME: do something better like the scan of supported filesystems
+ fstype="${1}"
+ case ${fstype} in
+ vfat|iso9660|udf|ext2|ext3|ntfs)
+ return 0
+ ;;
+ esac
+ return 1
+}
+
+copy_live_to() {
+ copyfrom="${1}"
+ copytodev="${2}"
+ copyto="${copyfrom}_swap"
+
+ size=$(fs_size "" ${copyfrom} "used")
+
+ if [ "${copytodev}" = "ram" ]; then
+ # copying to ram:
+ freespace=$( expr $(awk '/MemFree/{print $2}' /proc/meminfo) + $( cat /proc/meminfo | grep Cached | head -n 1 | awk '/Cached/{print $2}' - ) )
+ mount_options="-o size=${size}k"
+ free_string="memory"
+ fstype="tmpfs"
+ dev="/dev/shm"
+ else
+ # it should be a writable block device
+ if [ -b "${copytodev}" ]; then
+ dev="${copytodev}"
+ free_string="space"
+ fstype=$(get_fstype "${dev}")
+ freespace=$(fs_size "${dev}")
+ else
+ [ "$quiet" != "y" ] && log_warning_msg "${copytodev} is not a block device."
+ return 1
+ fi
+ fi
+ if [ "${freespace}" -lt "${size}" ] ; then
+ [ "$quiet" != "y" ] && log_warning_msg "Not enough free ${free_string} (${freespace}k > ${size}k) to copy live media in ${copytodev}."
+ return 1
+ fi
+
+ # begin copying..
+ mkdir "${copyto}"
+ echo "mount -t ${fstype} ${mount_options} ${dev} ${copyto}"
+ mount -t "${fstype}" ${mount_options} "${dev}" "${copyto}"
+ cp -a ${copyfrom}/* ${copyto} # "cp -a" from busybox also copies hidden files
+ umount ${copyfrom}
+ mount -r --move ${copyto} ${copyfrom}
+ rmdir ${copyto}
+ return 0
+}
+
+do_netmount() {
+ rc=1
+
+ modprobe "${MP_QUIET}" af_packet # For DHCP
+
+ udevtrigger
+ udevsettle
+
+ ipconfig ${DEVICE} /tmp/net-${DEVICE}.conf | tee /netboot.config
+
+ if [ "${NFSROOT}" = "auto" ]; then
+ NFSROOT=${ROOTSERVER}:${ROOTPATH}
+ fi
+
+ [ "$quiet" != "y" ] && log_begin_msg "Trying netboot from ${NFSROOT}"
+
+ if [ "${NETBOOT}" != "nfs" ] && do_cifsmount ; then
+ rc=0
+ elif do_nfsmount ; then
+ NETBOOT="nfs"
+ export NETBOOT
+ rc=0
+ fi
+
+ [ "$quiet" != "y" ] && log_end_msg
+ return ${rc}
+}
+
+do_nfsmount() {
+ rc=1
+ modprobe "${MP_QUIET}" nfs
+ if [ -z "${NFSOPTS}" ]; then
+ NFSOPTS=""
+ fi
+
+ [ "$quiet" != "y" ] && log_begin_msg "Trying nfsmount -o nolock -o ro ${NFSOPTS} ${NFSROOT} ${mountpoint}"
+ # FIXME: This for loop is an ugly HACK round an nfs bug
+ for i in 0 1 2 3 4 5 6 7 8 9 a b c d e f 10 11 12 13; do
+ nfsmount -o nolock -o ro ${NFSOPTS} "${NFSROOT}" "${mountpoint}" && rc=0 && break
+ sleep 1
+ done
+ return ${rc}
+}
+
+do_cifsmount() {
+ rc=1
+ if [ -x "/sbin/mount.cifs" ]; then
+ if [ -z "${NFSOPTS}" ]; then
+ CIFSOPTS="-ouser=root,password="
+ else
+ CIFSOPTS="${NFSOPTS}"
+ fi
+
+ [ "$quiet" != "y" ] && log_begin_msg "Trying mount.cifs ${NFSROOT} ${mountpoint} ${CIFSOPTS}"
+ modprobe "${MP_QUIET}" cifs
+
+ if mount.cifs "${NFSROOT}" "${mountpoint}" "${CIFSOPTS}" ; then
+ rc=0
+ fi
+ fi
+ return ${rc}
+}
+
+do_snap_copy ()
+{
+ fromdev="${1}"
+ todir="${2}"
+ snap_type="${3}"
+
+ size=$(fs_size "${fromdev}" "" "used")
+
+ if [ -b "${fromdev}" ]; then
+ # look for free mem
+ if [ -n "${HOMEMOUNTED}" -a "${snap_type}" = "HOME" ]; then
+ todev=$(cat /proc/mounts | grep -s " $(base_path ${todir}) " | awk '{print $1}' )
+ freespace=$(df -k | grep -s ${todev} | awk '{print $4}')
+ else
+ freespace=$( expr $(awk '/MemFree/{print $2}' /proc/meminfo) + $( cat /proc/meminfo | grep Cached | head -n 1 | awk '/Cached/{print $2}' - ))
+ fi
+
+ tomount="/mnt/tmpsnap"
+ if [ ! -d "${tomount}" ] ; then
+ mkdir -p "${tomount}"
+ fi
+
+ fstype=$(get_fstype "${fromdev}")
+ if [ -n "${fstype}" ]; then
+ # Copying stuff...
+ mount -t "${fstype}" -o ro "${fromdev}" "${tomount}"
+ cp -a "${tomount}"/* ${todir}
+ umount "${tomount}"
+ else
+ log_warning_msg "Unrecognized fstype: ${fstype} on ${fromdev}:${snap_type}"
+ fi
+
+ rmdir "${tomount}"
+ if echo ${fromdev} | grep -qs loop; then
+ losetup -d "${fromdev}"
+ fi
+ return 0
+ else
+ return 1
+ [ "$quiet" != "y" ] && log_warning_msg "Unable to find the snapshot ${snap_type} medium"
+ fi
+}
+
+try_snap ()
+{
+ # Look for $snap_label.* in block devices and copy the contents to $snap_mount
+ # and remember the device and filename for resync on exit in live-initramfs.init
+
+ snap_label="${1}"
+ snap_mount="${2}"
+ snap_type="${3}"
+
+ snapdata=$(find_files "${snap_label}.squashfs ${snap_label}.cpio.gz ${snap_label}.ext2 ${snap_label}.ext3")
+ if [ ! -z "${snapdata}" ]; then
+ snapdev="$(echo ${snapdata} | cut -f1 -d ' ')"
+ snapback="$(echo ${snapdata} | cut -f2 -d ' ')"
+ snapfile="$(echo ${snapdata} | cut -f3 -d ' ')"
+ if echo "${snapfile}" | grep -qs '\(squashfs\|ext2\|ext3\)'; then
+ # squashfs or ext2/ext3 snapshot
+ dev=$(get_backing_device "${snapback}/${snapfile}")
+ if ! do_snap_copy "${dev}" "${snap_mount}" "${snap_type}"; then
+ log_warning_msg "Impossible to include the ${snapfile} Snapshot"
+ return 1
+ fi
+ else
+ # cpio.gz snapshot
+ if ! (cd "${snap_mount}" && zcat "${snapback}/${snapfile}" | cpio -i -u -d 2>/dev/null) ; then
+ log_warning_msg "Impossible to include the ${snapfile} Snapshot"
+ return 1
+ fi
+ fi
+ umount "${snapback}"
+ else
+ dev=$(find_cow_device "${snap_label}")
+ if [ -b ${dev} ]; then
+ if echo "${dev}" | grep -qs loop; then
+ # strange things happens, user confused?
+ snaploop=$( losetup ${dev} | awk '{print $3}' | tr -d '()' )
+ snapfile=$(basename ${snaploop})
+ snapdev=$(cat /proc/mounts | awk '{print $2,$1}' | grep -es "^$( dirname ${snaploop} )" | cut -f2 -d ' ')
+ else
+ snapdev="${dev}"
+ fi
+ if ! do_snap_copy "${dev}" "${snap_mount}" "${snap_type}" ; then
+ log_warning_msg "Impossible to include the ${snap_label} Snapshot"
+ return 1
+ else
+ if [ -n "${snapfile}" ]; then
+ # it was a loop device, user confused
+ umount ${snapdev}
+ fi
+ fi
+ else
+ log_warning_msg "Impossible to include the ${snap_label} Snapshot"
+ return 1
+ fi
+ fi
+ echo "export ${snap_type}SNAP="${snap_mount}":${snapdev}:${snapfile}" >> /etc/live.conf # for resync on reboot/halt
+ return 0
+}
+
+setup_unionfs() {
+ image_directory="$1"
+ rootmnt="$2"
+
+ modprobe "${MP_QUIET}" -b ${UNIONTYPE}
+
+ # run-init can't deal with images in a subdir, but we're going to
+ # move all of these away before it runs anyway. No, we're not,
+ # put them in / since move-mounting them into / breaks mono and
+ # some other apps.
+
+ croot="/"
+
+ # Let's just mount the read-only file systems first
+ rofsstring=""
+ rofslist=""
+ if [ "${NETBOOT}" = "nfs" ] ; then
+ roopt="nfsro" # go aroung a bug in nfs-unionfs locking
+ else
+ roopt="ro"
+ fi
+
+ # Read image names from ${MODULE}.module if it exists
+ if [ -e "${image_directory}/filesystem.${MODULE}.module" ]
+ then
+ for IMAGE in `cat ${image_directory}/filesystem.${MODULE}.module`
+ do
+ image_string="${image_string} ${image_directory}/${image}"
+ done
+ elif [ -e "${image_directory}/${MODULE}.module" ]
+ then
+ for IMAGE in `cat ${image_directory}/${MODULE}.module`
+ do
+ image_string="${image_string} ${image_directory}/${image}"
+ done
+ else
+ # ${MODULE}.module does not exist, create a list of images
+ for FILESYSTEM in squashfs ext2 ext3 xfs dir
+ do
+ for IMAGE in "${image_directory}"/*."${FILESYSTEM}"
+ do
+ if [ -e "${IMAGE}" ]
+ then
+ image_string="${image_string} ${IMAGE}"
+ fi
+ done
+ done
+
+ # Now sort the list
+ image_string="`echo ${image_string} | sed -e 's/ /\n/g' | sort `"
+ fi
+
+ mkdir -p "${croot}"
+ for image in ${image_string}; do
+ imagename=$(basename "${image}")
+ if [ -d "${image}" ]; then
+ # it is a plain directory: do nothing
+ rofsstring="${image}=${roopt}:${rofsstring}"
+ rofslist="${image} ${rofslist}"
+ elif [ -f "${image}" ]; then
+ backdev=$(get_backing_device "$image")
+ fstype=$(get_fstype "${backdev}")
+ if [ "${fstype}" = "unknown" ]; then
+ panic "Unknown file system type on ${backdev} (${image})"
+ fi
+ mkdir -p "${croot}/${imagename}"
+ mount -t "${fstype}" -o ro "${backdev}" "${croot}/${imagename}" || panic "Can not mount $backdev ($image) on ${croot}/${imagename}" && rofsstring="${croot}/${imagename}=${roopt}:${rofsstring}" && rofslist="${croot}/${imagename} ${rofslist}"
+ fi
+ done
+ rofsstring=${rofsstring%:}
+
+ mkdir -p /cow
+ cowdevice="tmpfs"
+ cow_fstype="tmpfs"
+
+ # Looking for "${root_persistence}" device or file
+ if [ -n "${PERSISTENT}" ]; then
+ cowprobe=$(find_cow_device "${root_persistence}")
+ if [ -b "${cowprobe}" ]; then
+ cowdevice=${cowprobe}
+ cow_fstype=$(get_fstype "${cowprobe}")
+ else
+ [ "$quiet" != "y" ] && log_warning_msg "Unable to find the persistent medium"
+ fi
+ fi
+
+ mount ${cowdevice} -t ${cow_fstype} -o rw /cow || panic "Can not mount $cowdevice on /cow"
+
+ mount -t ${UNIONTYPE} -o dirs=/cow=rw:$rofsstring ${UNIONTYPE} "$rootmnt" || panic "${UNIONTYPE} mount failed"
+
+ # Adding other custom mounts
+ if [ -n "${PERSISTENT}" ]; then
+ # directly mount /home
+ # FIXME: add a custom mounts configurable system
+ homecow=$(find_cow_device "${home_persistence}" )
+ if [ -b "${homecow}" ]; then
+ mount -t $(get_fstype "${homecow}") -o rw "${homecow}" "${rootmnt}/home"
+ export HOMEMOUNTED=1 # used to proper calculate free space in do_snap_copy()
+ else
+ [ "$quiet" != "y" ] && log_warning_msg "Unable to find the persistent home medium"
+ fi
+ # Look for other snapshots to copy in
+ try_snap "${root_snapshot_label}" "${rootmnt}" "ROOT"
+ try_snap "${home_snapshot_label}" "${rootmnt}/home" "HOME"
+ fi
+
+ if [ -n "${SHOWMOUNTS}" ]; then
+ for d in ${rofslist}; do
+ mkdir -p "${rootmnt}/live/${d##*/}"
+ case d in
+ *.dir) # do nothing # mount -o bind "${d}" "${rootmnt}/live/${d##*/}"
+ ;;
+ *) mount --move "${d}" "${rootmnt}/live/${d##*/}"
+ ;;
+ esac
+ done
+ fi
+
+ # shows cow fs on /cow for use by live-snapshot
+ mkdir -p "${rootmnt}/live/cow"
+ mount -o bind /cow "${rootmnt}/live/cow"
+}
+
+check_dev ()
+{
+ sysdev="${1}"
+ devname="${2}"
+ if [ -z "${devname}" ]; then
+ devname=$(sys2dev "${sysdev}")
+ fi
+
+ if [ -n "${LIVE_MEDIA_OFFSET}" ]; then
+ loopdevname=$(setup_loop "${devname}" "loop" "/sys/block/loop*" "${LIVE_MEDIA_OFFSET}" '')
+ devname="${loopdevname}"
+ fi
+
+ fstype=$(get_fstype "${devname}")
+ if is_supported_fs ${fstype}; then
+ mount -t ${fstype} -o ro "${devname}" $mountpoint || continue
+ if is_live_path $mountpoint; then
+ echo $mountpoint
+ return 0
+ else
+ umount $mountpoint
+ fi
+ fi
+
+ if [ -n "${LIVE_MEDIA_OFFSET}" ]; then
+ losetup -d "${loopdevname}"
+ fi
+ return 1
+}
+
+find_livefs() {
+ timeout="${1}"
+ # first look at the one specified in the command line
+ if [ ! -z "${LIVE_MEDIA}" ]; then
+ if check_dev "null" "${LIVE_MEDIA}"; then
+ return 0
+ fi
+ fi
+ # don't start autodetection before timeout has expired
+ if [ -n "${LIVE_MEDIA_TIMEOUT}" ]; then
+ if [ "${timeout}" -lt "${LIVE_MEDIA_TIMEOUT}" ]; then
+ return 1
+ fi
+ fi
+ # or do the scan of block devices
+ for sysblock in $(echo /sys/block/* | tr ' ' '\n' | grep -v loop | grep -v ram); do
+ devname=$(sys2dev "${sysblock}")
+ fstype=$(get_fstype "${devname}")
+ if /lib/udev/cdrom_id ${devname} > /dev/null; then
+ if check_dev "null" "${devname}" ; then
+ return 0
+ fi
+ elif is_nice_device "${sysblock}" ; then
+ for dev in $(subdevices "${sysblock}"); do
+ if check_dev "${dev}" ; then
+ return 0
+ fi
+ done
+ elif [ "${fstype}" = "squashfs" -o \
+ "${fstype}" = "ext2" -o \
+ "${fstype}" = "ext3" ]; then
+ # This is an ugly hack situation, the block device has
+ # an image directly on it. It's hopefully
+ # live-initramfs, so take it and run with it.
+ ln -s "${devname}" "${devname}.${fstype}"
+ echo "${devname}.${fstype}"
+ return 0
+ fi
+ done
+ return 1
+}
+
+pulsate() {
+ if [ -x /sbin/usplash_write ]; then
+ /sbin/usplash_write "PULSATE"
+ fi
+}
+
+set_usplash_timeout() {
+ if [ -x /sbin/usplash_write ]; then
+ /sbin/usplash_write "TIMEOUT 120"
+ fi
+}
+
+mountroot() {
+ exec 6>&1
+ exec 7>&2
+ exec > live.log
+ exec 2>&1
+
+ parse_cmdline
+
+ set_usplash_timeout
+ [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/live-premount"
+ pulsate
+ run_scripts /scripts/live-premount
+ [ "$quiet" != "y" ] && log_end_msg
+
+ # Needed here too because some things (*cough* udev *cough*)
+ # changes the timeout
+
+ set_usplash_timeout
+
+ if [ ! -z "${NETBOOT}" ]; then
+ if do_netmount ; then
+ livefs_root="${mountpoint}"
+ else
+ panic "Unable to find a live file system on the network"
+ fi
+ else
+ # Scan local devices for the image
+ for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19; do
+ livefs_root=$(find_livefs $i)
+ if [ -n "${livefs_root}" ]; then
+ break
+ fi
+ sleep 1
+ done
+ fi
+
+ if [ -z "${livefs_root}" ]; then
+ panic "Unable to find a medium containing a live file system"
+ fi
+
+ if [ "${TORAM}" ]; then
+ live_dest="ram"
+ elif [ "${TODISK}" ]; then
+ live_dest="${TODISK}"
+ fi
+ if [ "${live_dest}" ]; then
+ log_begin_msg "Copying live media to ${live_dest}"
+ copy_live_to "${livefs_root}" "${live_dest}"
+ log_end_msg
+ fi
+
+ mount_images_in_directory "${livefs_root}" "${rootmnt}"
+
+ log_end_msg
+
+ maybe_break live-bottom
+ [ "$quiet" != "y" ] && log_begin_msg "Running /scripts/live-bottom"
+
+ pulsate
+ run_scripts /scripts/live-bottom
+ [ "$quiet" != "y" ] && log_end_msg
+
+ exec 1>&6 6>&-
+ exec 2>&7 7>&-
+ cp live.log "${rootmnt}/var/log/"
+}
Deleted: releases/live-initramfs/1.91.4-1/scripts/live-bottom/01integrity_check
===================================================================
--- dists/trunk/live-initramfs/scripts/live-bottom/01integrity_check 2007-07-12 18:27:07 UTC (rev 2457)
+++ releases/live-initramfs/1.91.4-1/scripts/live-bottom/01integrity_check 2007-07-12 19:21:40 UTC (rev 2460)
@@ -1,23 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
- echo "${PREREQ}"
-}
-
-case "${1}" in
- prereqs)
- prereqs
- exit 0
- ;;
-esac
-
-# live-initramfs script
-
-grep integrity-check /proc/cmdline && live-md5check /live_media /live_media/md5sum.txt < /dev/tty8
Copied: releases/live-initramfs/1.91.4-1/scripts/live-bottom/01integrity_check (from rev 2458, dists/trunk/live-initramfs/scripts/live-bottom/01integrity_check)
===================================================================
--- releases/live-initramfs/1.91.4-1/scripts/live-bottom/01integrity_check (rev 0)
+++ releases/live-initramfs/1.91.4-1/scripts/live-bottom/01integrity_check 2007-07-12 19:21:40 UTC (rev 2460)
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+#set -e
+
+# initramfs-tools header
+
+PREREQ=""
+
+prereqs()
+{
+ echo "${PREREQ}"
+}
+
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+# live-initramfs script
+
+grep integrity-check /proc/cmdline && live-md5check /live/image /live/image/md5sum.txt < /dev/tty8
Deleted: releases/live-initramfs/1.91.4-1/scripts/live-bottom/05mountpoints
===================================================================
--- dists/trunk/live-initramfs/scripts/live-bottom/05mountpoints 2007-07-12 18:27:07 UTC (rev 2457)
+++ releases/live-initramfs/1.91.4-1/scripts/live-bottom/05mountpoints 2007-07-12 19:21:40 UTC (rev 2460)
@@ -1,35 +0,0 @@
-#!/bin/sh
-
-#set -e
-
-# initramfs-tools header
-
-PREREQ=""
-
-prereqs()
-{
- echo "${PREREQ}"
-}
-
-case "${1}" in
- prereqs)
- prereqs
- exit 0
- ;;
-esac
-
-# live-initramfs header
-
-. /scripts/live-functions
-
-log_begin_msg "Moving mount points..."
-
-# live-initramfs script
-
-# Move to the new root filesystem so that programs there can get at it.
-if [ ! -d /root/live_media ]; then
- mkdir -p /root/live_media
- mount -n --move /live_media /root/live_media
-fi
-
-log_end_msg
Copied: releases/live-initramfs/1.91.4-1/scripts/live-bottom/05mountpoints (from rev 2458, dists/trunk/live-initramfs/scripts/live-bottom/05mountpoints)
===================================================================
--- releases/live-initramfs/1.91.4-1/scripts/live-bottom/05mountpoints (rev 0)
+++ releases/live-initramfs/1.91.4-1/scripts/live-bottom/05mountpoints 2007-07-12 19:21:40 UTC (rev 2460)
@@ -0,0 +1,35 @@
+#!/bin/sh
+
+#set -e
+
+# initramfs-tools header
+
+PREREQ=""
+
+prereqs()
+{
+ echo "${PREREQ}"
+}
+
+case "${1}" in
+ prereqs)
+ prereqs
+ exit 0
+ ;;
+esac
+
+# live-initramfs header
+
+. /scripts/live-functions
+
+log_begin_msg "Moving mount points..."
+
+# live-initramfs script
+
+# Move to the new root filesystem so that programs there can get at it.
+if [ ! -d /root/live/image ]; then
+ mkdir -p /root/live/image
+ mount -n --move /live/image /root/live/image
+fi
+
+log_end_msg
More information about the Debian-live-changes
mailing list