diff options
| author | Daniel Baumann <daniel@debian.org> | 2009-03-27 11:32:22 +0100 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:04 +0100 |
| commit | 5259e901201bd6c98467841fb697c86932c4e493 (patch) | |
| tree | 8a29493d95fde3d63a3e17701c077ac197c658d9 /scripts | |
| parent | 245be6d3de8a9e1239154674be4ca818781e6f10 (diff) | |
| download | live-boot-5259e901201bd6c98467841fb697c86932c4e493.tar.gz live-boot-5259e901201bd6c98467841fb697c86932c4e493.zip | |
Correcting swap partition handling in fstab to not always append entries forever when using persistency.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/live-bottom/13swap | 7 |
1 files changed, 4 insertions, 3 deletions
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 |
