[SCM] live-config branch, debian, updated. debian/3.0_a38-1-8-g1ee3da5
Daniel Baumann
daniel at debian.org
Wed Jun 6 17:15:12 UTC 2012
The following commit has been merged in the debian branch:
commit 8e0fb3e4a7e916a1d33f3e0f1687a399817dbc6a
Author: Daniel Baumann <daniel at debian.org>
Date: Wed Jun 6 18:15:02 2012 +0200
Removing snapshot handling from shutdown initscript.
diff --git a/bin/boot-init.sh b/bin/boot-init.sh
index d560053..d94c24d 100755
--- a/bin/boot-init.sh
+++ b/bin/boot-init.sh
@@ -3,12 +3,6 @@
# Exit if system was not booted by live-boot
grep -qs boot=live /proc/cmdline || exit 0
-DO_SNAPSHOT=/sbin/live-snapshot
-SNAPSHOT_CONF="/etc/live/boot.d/snapshot.conf"
-
-# Read snapshot configuration variables
-[ -r ${SNAPSHOT_CONF} ] && . ${SNAPSHOT_CONF}
-
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
@@ -82,22 +76,6 @@ device_is_USB_flash_drive()
return 1
}
-log_begin_msg "live-boot: resyncing snapshots and caching reboot files..."
-
-if ! grep -qs nopersistence /proc/cmdline && grep -qs persistence /proc/cmdline
-then
- # ROOTSNAP and HOMESNAP are defined in ${SNAPSHOT_CONF} file
- if [ ! -z "${ROOTSNAP}" ]
- then
- ${DO_SNAPSHOT} --resync-string="${ROOTSNAP}"
- fi
-
- if [ ! -z "${HOMESNAP}" ]
- then
- ${DO_SNAPSHOT} --resync-string="${HOMESNAP}"
- fi
-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
@@ -125,6 +103,8 @@ then
esac
fi
+log_begin_msg "live-boot: caching reboot files..."
+
prompt=1
if [ "${NOPROMPT}" = "Yes" ]
then
--
live-config
More information about the debian-live-changes
mailing list