diff options
-rwxr-xr-x | draklive | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -424,9 +424,10 @@ sub create_loopback_files { sub list_selected_loopbacks { my ($live) = @_; + my @pack = $live->{settings}{pack} ? @{$live->{packs}{$live->{settings}{pack}} || []} : (); + my @pack_modules = grep { member($_->{name}, @pack) } list_loopback_modules($live); (map { $loop_types{$_->{type}}{is_loopback} && $_->{path} ? $_->{path} . $loop_types{$_->{type}}{extension} : () } @{$live->{mount}{dirs} || []}), - (map { $live->{prefix}{build}{modules} . '/' . $_ } - $live->{settings}{pack} ? @{$live->{packs}{$live->{settings}{pack}} || []} : ()); + (map { $live->{prefix}{build}{modules} . '/' . $_->{name} . $loop_types{$_->{type}}{extension} } @pack_modules); } sub get_media_device { |