diff options
author | Olivier Blin <blino@mageia.org> | 2012-01-15 20:51:23 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2012-01-15 20:51:23 +0000 |
commit | 3a010088ba0c132e016bd9a527663cb66e29c09f (patch) | |
tree | 097e9fe271cb53fe0807337d2d6318699357654a /lib/MDV/Draklive/Live.pm | |
parent | 2b2d7f345a725d747a3e1526aeef933adbfc243a (diff) | |
download | drakiso-3a010088ba0c132e016bd9a527663cb66e29c09f.tar drakiso-3a010088ba0c132e016bd9a527663cb66e29c09f.tar.gz drakiso-3a010088ba0c132e016bd9a527663cb66e29c09f.tar.bz2 drakiso-3a010088ba0c132e016bd9a527663cb66e29c09f.tar.xz drakiso-3a010088ba0c132e016bd9a527663cb66e29c09f.zip |
extract get_initrd_name
Diffstat (limited to 'lib/MDV/Draklive/Live.pm')
-rw-r--r-- | lib/MDV/Draklive/Live.pm | 5 |
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); |