projects
/
live-boot-grml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
aa17818
)
Only snapshotting in initscript when we actually run with persistence.
author
Daniel Baumann
<daniel@debian.org>
Fri, 20 Feb 2009 14:54:20 +0000
(15:54 +0100)
committer
Daniel Baumann
<daniel@debian.org>
Wed, 9 Mar 2011 16:48:04 +0000
(17:48 +0100)
debian/live-initramfs.init
patch
|
blob
|
history
diff --git
a/debian/live-initramfs.init
b/debian/live-initramfs.init
index
4cf767a
..
2082a2b
100644
(file)
--- a/
debian/live-initramfs.init
+++ b/
debian/live-initramfs.init
@@
-95,14
+95,19
@@
device_is_USB_flash_drive()
do_stop ()
{
do_stop ()
{
- if
[ ! -z "${ROOTSNAP}" ]
+ if
! grep -qs nopersistent /proc/cmdline && grep -qs persistent /proc/cmdline
then
then
- ${DO_SNAPSHOT} --resync-string="${ROOTSNAP}"
- fi
+ if [ ! -z "${ROOTSNAP}" ]
+ then
+ ${DO_SNAPSHOT} --resync-string="${ROOTSNAP}"
+ fi
- if [ ! -z "${HOMESNAP}" ]
- then
- ${DO_SNAPSHOT} --resync-string="${HOMESNAP}"
+ if [ ! -z "${HOMESNAP}" ]
+ then
+ ${DO_SNAPSHOT} --resync-string="${HOMESNAP}"
+ fi
+ else
+ return 0
fi
# check for netboot
fi
# check for netboot