summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-05-16 20:48:30 +0000
committerOlivier Blin <oblin@mandriva.com>2007-05-16 20:48:30 +0000
commitac749432848c6b3d92a36d062cdb60e36d9d5577 (patch)
tree268cf7837ff8ef6ed599e4fcc91571e490063765
parent4c01933fda8b15f10a9f1a308af10c9e6ee81294 (diff)
downloaddraklive-ac749432848c6b3d92a36d062cdb60e36d9d5577.tar
draklive-ac749432848c6b3d92a36d062cdb60e36d9d5577.tar.gz
draklive-ac749432848c6b3d92a36d062cdb60e36d9d5577.tar.bz2
draklive-ac749432848c6b3d92a36d062cdb60e36d9d5577.tar.xz
draklive-ac749432848c6b3d92a36d062cdb60e36d9d5577.zip
allow to include loopback modules in master images by defining modules sets in live->{packs} and selecting them from live->{settings}{pack}
-rwxr-xr-xdraklive4
1 files changed, 3 insertions, 1 deletions
diff --git a/draklive b/draklive
index 779a1bd..3b7f6b2 100755
--- a/draklive
+++ b/draklive
@@ -824,7 +824,9 @@ sub create_loopback_files {
sub list_selected_loopbacks {
my ($live);
- (map { $_->{path} ? $_->{path} : () } @{$live->{mount}{dirs} || []});
+ (map { $_->{path} ? $_->{path} : () } @{$live->{mount}{dirs} || []}),
+ (map { $live->{prefix}{build}{modules} . '/' . $_ }
+ $live->{settings}{pack} ? @{$live->{packs}{$live->{settings}{pack}} || []} : ());
}
#- mainly for storage-specific subroutines