search for: install_rpm

Displaying 1 result from an estimated 1 matches for "install_rpm".

Did you mean: _install_rpms
2009 Jul 24
2
[PATCH] Initial drop of virt-v2v
...quot;-qlp", $filename])) { + if($file =~ m{^/boot/vmlinuz-(.*)$}) { + $version = $1; + last; + } + } + + die(__x"{filename} doesn't contain a valid kernel\n", + filename => $filename) if(!defined($version)); + + $self->install_rpm($filename); + + # Make augeas reload so it'll find the new kernel + $g->aug_load(); + + return $version; +} + +sub remove_kernel +{ + my $self = shift; + my $version = shift; + + my $g = $self->{g}; + eval { + # Work out which rpm contains the kernel + m...