diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-05-31 13:19:39 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-05-31 13:19:39 +0000 |
commit | 10948d4958157a765d83cbc432747fc38a85b341 (patch) | |
tree | 4d924e51706674adfeec2249c54690c6aaa36161 | |
parent | 212b81f6d25aa0a15c33bbfc83e7c04ec6ef22bf (diff) | |
download | draklive-10948d4958157a765d83cbc432747fc38a85b341.tar draklive-10948d4958157a765d83cbc432747fc38a85b341.tar.gz draklive-10948d4958157a765d83cbc432747fc38a85b341.tar.bz2 draklive-10948d4958157a765d83cbc432747fc38a85b341.tar.xz draklive-10948d4958157a765d83cbc432747fc38a85b341.zip |
allow to get loopbacks list from a file
-rwxr-xr-x | draklive | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -257,10 +257,11 @@ my %overlay = ( my ($live) = @_; #- build dirs list: "dir1=ro:dir2:ro:dir3=rw" my $dirs = join(':', - map { "$live->{prefix}{live}{mnt}$_->{mountpoint}=" . - (!$loop{$_->{type}}{read_only} ? 'rw' : 'ro'); - } reverse grep { !$_->{fallback} } @{$live->{mount}{dirs} || []}); - "mount -o dirs=$dirs -t unionfs unionfs $live->{prefix}{live}{mnt}$live->{mount}{root}"; + map { + $_->{list} ? "\$(cat $_->{list})" : + (!$loop{$_->{type}}{read_only} ? 'rw' : 'ro'); + } reverse grep { !$_->{fallback} } @{$live->{mount}{dirs} || []}); + "sh -c 'mount -o dirs=$dirs -t unionfs unionfs $live->{prefix}{live}{mnt}$live->{mount}{root}'"; }, }, ); |