summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-05-31 13:35:01 +0000
committerOlivier Blin <oblin@mandriva.com>2007-05-31 13:35:01 +0000
commit54e881e5fe0261d20d7aa182984e9c5b931c5bcc (patch)
tree1fc1f86a05a0d4082764d44a79909eaebe0315dc
parent10948d4958157a765d83cbc432747fc38a85b341 (diff)
downloaddraklive-54e881e5fe0261d20d7aa182984e9c5b931c5bcc.tar
draklive-54e881e5fe0261d20d7aa182984e9c5b931c5bcc.tar.gz
draklive-54e881e5fe0261d20d7aa182984e9c5b931c5bcc.tar.bz2
draklive-54e881e5fe0261d20d7aa182984e9c5b931c5bcc.tar.xz
draklive-54e881e5fe0261d20d7aa182984e9c5b931c5bcc.zip
add modules source type
-rwxr-xr-xdraklive8
1 files changed, 8 insertions, 0 deletions
diff --git a/draklive b/draklive
index f0ccb7f..65c3f60 100755
--- a/draklive
+++ b/draklive
@@ -218,6 +218,14 @@ my %loop = (
);
},
},
+ modules => {
+ read_only => 1,
+ delay_mount => 1,
+ mount => sub {
+ my ($live, $dir) = @_;
+ "sh -c 'modules=; for m in $live->{prefix}{live}{mnt}$live->{prefix}{media}{mnt}$live->{prefix}{media}{loopbacks}$dir->{path}/*; do n=\$(basename \$m); n=\${n%.sqfs}; d=$live->{prefix}{live}{mnt}$dir->{mountpoint}/\$n; mkdir -p \$d; mount -n -o loop,ro -t squashfs \$m \$d && modules=\$modules\$d=ro:; done; echo \$modules > $dir->{list}'";
+ },
+ },
loopfs => {
modules => [],
extension => '.loop',