diff options
| author | Marco Amadori <marco.amadori@gmail.com> | 2008-09-28 00:51:04 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:48:02 +0100 |
| commit | a298ae49a77f528b0d57e013343473bb5162cd61 (patch) | |
| tree | 06013b5b33865f4ad73c63c7e3aabcc75af0c65f /scripts/live | |
| parent | 6fd3b2db8ca683513709560744aebd4cff3d378d (diff) | |
| download | live-boot-a298ae49a77f528b0d57e013343473bb5162cd61.tar.gz live-boot-a298ae49a77f528b0d57e013343473bb5162cd61.zip | |
Implemented a persistence exclude list.
* This finally enables one of the most requested feature to exclude
things like disk caches and temporary files from the persistence
images in order to speed things up and saves precious writes of flash
based storages.
This works at boot by bind mounting tmpfs clones of paths listed on
"/etc/live-persistence.binds".
Diffstat (limited to 'scripts/live')
| -rwxr-xr-x | scripts/live | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/live b/scripts/live index 5be6fe2..0f4ef0d 100755 --- a/scripts/live +++ b/scripts/live @@ -1151,9 +1151,16 @@ setup_unionfs () # snapshots to be sure to really store some e.g key config files, # but not on the same media blacklistdev="${cowprobe}" + PERSISTENCE_IS_ON="Yes" + export PERSISTENCE_IS_ON fi # homecow just mount something on /home, this should be generalized some way homecow=$(find_cow_device "${home_persistence}" "${blacklistdev}") + if [ -b "${homecow}" ] + then + PERSISTENCE_IS_ON="Yes" + export PERSISTENCE_IS_ON + fi root_snapdata=$(find_snap "${root_snapshot_label}" "${blacklistdev}") # This second type should be removed when snapshot will get smarter, # hence when "/etc/live-snapshot*list" will be supported also by |
