diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-10-26 08:55:12 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-10-26 08:55:12 +0000 |
commit | c17deae98cdc76a8824a3b7c17af41ab2c70b711 (patch) | |
tree | 568f6d2170118f5c7293320039b99fbbc7bc1be0 | |
parent | d0fb319e82169386748d327dbe6490864e30df02 (diff) | |
download | draklive-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-x | draklive | 23 |
1 files changed, 13 insertions, 10 deletions
@@ -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) = @_; { |