summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-10-26 08:55:12 +0000
committerOlivier Blin <oblin@mandriva.com>2007-10-26 08:55:12 +0000
commitc17deae98cdc76a8824a3b7c17af41ab2c70b711 (patch)
tree568f6d2170118f5c7293320039b99fbbc7bc1be0
parentd0fb319e82169386748d327dbe6490864e30df02 (diff)
downloaddraklive-c17deae98cdc76a8824a3b7c17af41ab2c70b711.tar
draklive-c17deae98cdc76a8824a3b7c17af41ab2c70b711.tar.gz
draklive-c17deae98cdc76a8824a3b7c17af41ab2c70b711.tar.bz2
draklive-c17deae98cdc76a8824a3b7c17af41ab2c70b711.tar.xz
draklive-c17deae98cdc76a8824a3b7c17af41ab2c70b711.zip
make volatile_squash_union a custom mount, to make modules optional
-rwxr-xr-xdraklive23
1 files changed, 13 insertions, 10 deletions
diff --git a/draklive b/draklive
index e708180..f7e8c78 100755
--- a/draklive
+++ b/draklive
@@ -67,16 +67,6 @@ my %predefined = (
$dir_memory,
],
},
- volatile_squash_union => {
- root => '/union',
- overlay => 'unionfs',
- dirs => [
- $dir_distrib_sqfs,
- $dir_modules,
- $dir_memory,
- ],
- },
- },
);
# this is not unused (it can be used from config file):
@@ -94,6 +84,19 @@ my %custom = (
},
},
mounts => {
+ volatile_squash_union => sub {
+ my ($o_modules) = @_;
+ {
+ root => '/union',
+ overlay => 'unionfs',
+ dirs => [
+ $dir_distrib_sqfs,
+ if_($o_modules, $dir_modules),
+ $dir_memory,
+ ],
+ };
+ }
+ },
squash_union => sub {
my ($default_size, $o_min_size) = @_;
{