diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-05-31 13:35:01 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-05-31 13:35:01 +0000 |
commit | 54e881e5fe0261d20d7aa182984e9c5b931c5bcc (patch) | |
tree | 1fc1f86a05a0d4082764d44a79909eaebe0315dc | |
parent | 10948d4958157a765d83cbc432747fc38a85b341 (diff) | |
download | draklive-54e881e5fe0261d20d7aa182984e9c5b931c5bcc.tar draklive-54e881e5fe0261d20d7aa182984e9c5b931c5bcc.tar.gz draklive-54e881e5fe0261d20d7aa182984e9c5b931c5bcc.tar.bz2 draklive-54e881e5fe0261d20d7aa182984e9c5b931c5bcc.tar.xz draklive-54e881e5fe0261d20d7aa182984e9c5b931c5bcc.zip |
add modules source type
-rwxr-xr-x | draklive | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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', |