summaryrefslogtreecommitdiffstats
path: root/lib/MDV/Draklive/Live.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MDV/Draklive/Live.pm')
-rw-r--r--lib/MDV/Draklive/Live.pm7
1 files changed, 7 insertions, 0 deletions
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;