diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/MDV/Draklive/Initrd.pm | 4 | ||||
-rw-r--r-- | lib/MDV/Draklive/Live.pm | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lib/MDV/Draklive/Initrd.pm b/lib/MDV/Draklive/Initrd.pm index 3bc4713..dcba8d2 100644 --- a/lib/MDV/Draklive/Initrd.pm +++ b/lib/MDV/Draklive/Initrd.pm @@ -76,9 +76,7 @@ sub create_media_specific_initrd { require_list_modules_chroot($live); - my $lib_prefix = find { glob($root . $_ . '/libc.so.*') } qw(/lib64 /lib); - $lib_prefix or die 'unable to find system libraries in /lib or /lib64'; - + my $lib_prefix = $live->get_lib_prefix; my $initrd_tree = $live->get_builddir . $live->{prefix}{build}{initrd} . '/' . $media->{storage}; rm_rf($initrd_tree) if -e $initrd_tree; diff --git a/lib/MDV/Draklive/Live.pm b/lib/MDV/Draklive/Live.pm index c8839c2..0242658 100644 --- a/lib/MDV/Draklive/Live.pm +++ b/lib/MDV/Draklive/Live.pm @@ -39,4 +39,11 @@ sub find_kernel { $kernel; } +sub get_lib_prefix { + my ($live) = @_; + my $lib_prefix = find { glob($live->get_system_root . $_ . '/libc.so.*') } qw(/lib64 /lib); + $lib_prefix or die 'unable to find system libraries in /lib or /lib64'; + $lib_prefix; +} + 1; |