From 6f91f1c65c6afc807f87b6a4a20ae19776cd8a65 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 1 Aug 2002 21:21:31 +0000 Subject: (duplicate_kernel_entry): added --- perl-install/bootloader.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'perl-install') diff --git a/perl-install/bootloader.pm b/perl-install/bootloader.pm index 76ec21ae4..a8f2c4584 100644 --- a/perl-install/bootloader.pm +++ b/perl-install/bootloader.pm @@ -196,6 +196,16 @@ sub add_kernel { $v; } +sub duplicate_kernel_entry { + my ($bootloader, $new_label) = @_; + + get_label($new_label, $bootloader) and return; + + my $entry = { %{ get_label('linux', $bootloader) }, label => $new_label }; + add_entry($bootloader->{entries}, $entry); + $entry; +} + sub unpack_append { my ($s) = @_; my @l = split(' ', $s); -- cgit v1.2.1