diff options
Diffstat (limited to 'debian')
| -rw-r--r-- | debian/live-initramfs.init | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/debian/live-initramfs.init b/debian/live-initramfs.init index 4cf767a..2082a2b 100644 --- a/debian/live-initramfs.init +++ b/debian/live-initramfs.init @@ -95,14 +95,19 @@ device_is_USB_flash_drive() do_stop () { - if [ ! -z "${ROOTSNAP}" ] + if ! grep -qs nopersistent /proc/cmdline && grep -qs persistent /proc/cmdline 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 |
