[SCM] Debian Live initramfs hook branch, master, updated. 1.157.1-1-4-g2774d51

Daniel Baumann daniel at debian.org
Fri Mar 27 10:39:05 UTC 2009


The following commit has been merged in the master branch:
commit 2774d511a51aced58a5a80fcc993f66e16f08f88
Author: Daniel Baumann <daniel at debian.org>
Date:   Fri Mar 27 11:32:22 2009 +0100

    Correcting swap partition handling in fstab to not always append entries forever when using persistency.

diff --git a/scripts/live-bottom/13swap b/scripts/live-bottom/13swap
index 8fc718c..448c90a 100755
--- a/scripts/live-bottom/13swap
+++ b/scripts/live-bottom/13swap
@@ -55,9 +55,10 @@ done
 for device in ${devices}
 do
 
-cat >> ${FSTAB} << EOF
-${device} swap swap defaults 0 0
-EOF
+if ! grep -qs  "^${device} swap" "${FSTAB}"
+then
+	echo "${device} swap swap defaults 0 0" >> "${FSTAB}"
+fi
 
 done
 

-- 
Debian Live initramfs hook



More information about the debian-live-changes mailing list