Displaying 7 results from an estimated 7 matches for "remove_kernel".
2011 Jan 20
1
[PATCH] Don't remove foreign kernels during conversion
...t a/lib/Sys/VirtV2V/Converter/RedHat.pm b/lib/Sys/VirtV2V/Converter/RedHat.pm
index d8f9141..61e81dc 100644
--- a/lib/Sys/VirtV2V/Converter/RedHat.pm
+++ b/lib/Sys/VirtV2V/Converter/RedHat.pm
@@ -538,21 +538,11 @@ sub _configure_kernel
{
my ($virtio, $g, $config, $desc, $dom) = @_;
- my @remove_kernels = ();
-
- # Remove foreign hypervisor specific kernels from the list of available
- # kernels
- foreach my $kernel (_find_hv_kernels($desc)) {
- # Don't actually try to remove them yet in case we remove them all. This
- # might make your dependency checker unhappy.
-...
2010 May 19
8
RHN support and capabilities
This patch series includes a repost of Milan's unmodified RHN support patch
because I haven't pushed it yet. On top of that patch, it includes the
capabilities patch in as many bits as I could make it into. The big one is 7/8.
I've tested all of the following guests both with and without RHN registration:
Xen RHEL 54 PV
Xen RHEL 51 PV
Xen RHEL 48 PV
ESX RHEL 54 FV
2010 May 14
1
[PATCH] Use RHN to retrieve replacement packages
...#39;kernel' if package name wasn't discovered
@@ -664,7 +756,7 @@ sub _discover_kernel
# a very long time.
$kernel_arch = 'i686' if('i386' eq $kernel_arch);
- return ($kernel_pkg, $kernel_arch);
+ return ($kernel_pkg, $kernel_ver, $kernel_arch);
}
=item remove_kernel(version)
--
1.7.1
2010 May 13
1
[PATCH] Improve augeas error reporting
...,7 +583,11 @@ sub add_kernel
$self->_install_rpms(0, ($app));
# Make augeas reload so it'll find the new kernel
- $g->aug_load();
+ eval {
+ $g->aug_load();
+ };
+
+ $self->_augeas_error($@) if ($@);
return $version;
}
@@ -603,17 +669,15 @@ sub remove_kernel
unless(defined($version));
my $g = $self->{g};
- eval {
- # Work out which rpm contains the kernel
- my @output =
- $g->command_lines(['rpm', '-qf', "/boot/vmlinuz-$version"]);
- $g->command(['rpm', '-...
2009 Dec 21
4
Refactor virt-v2v to be more like a 'big script'
These patches combine HVSource and HVTarget into a single Converter. This should
make it more obvious where to hack without losing any practical flexibility.
GuestOS remains separate. GuestOS is now a misnomer, because it's really only a
Linux distro abstraction. It will be useless for Windows, for example. Functions
which you'd expect to be different on a non-RH distro should live in
2009 Jul 24
2
[PATCH] Initial drop of virt-v2v
...}
+
+ 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
+ my $rpm = $g->command(["rpm", "-qf", "/boot/vmlinuz-".$version]);
+
+ $g->command(["rpm", &qu...
2010 Jul 28
3
Create new Sys::VirtV2V::Util
These 2 patches are mostly code motion. They were prompted by an apparent augeas
error in BZ 613967 which didn't display useful error message. The error seems to
happen in Converter::Linux. GuestOS::RedHat had a handy function which displayed
verbose augeas error messages. This function moves into the new module where it
can be used by both modules.
The second patch is an consequential tidy