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.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/MDV/Draklive/Live.pm b/lib/MDV/Draklive/Live.pm
index 49af192..9603879 100644
--- a/lib/MDV/Draklive/Live.pm
+++ b/lib/MDV/Draklive/Live.pm
@@ -47,6 +47,11 @@ sub find_kernel {
$kernel ||= first(@kernels) or die "no kernel can be found\n";
}
+sub get_initrd_name {
+ my ($live) = @_;
+ 'initrd-'. $live->find_kernel->{version} . '.img';
+}
+
sub get_lib_prefix {
my ($live) = @_;
my $lib_prefix = find { glob($live->get_system_root . $_ . '/libc.so.*') } qw(/lib64 /lib);