search for: any_module

Displaying 15 results from an estimated 15 matches for "any_module".

2019 Mar 20
2
[PATCH] v2v: linux: canonicalize module path for arch detection (RHBZ#1690574)
...tion(-) diff --git a/v2v/linux_kernels.ml b/v2v/linux_kernels.ml index 3313aabc7..889ec2f2a 100644 --- a/v2v/linux_kernels.ml +++ b/v2v/linux_kernels.ml @@ -189,7 +189,7 @@ let detect_kernels (g : G.guestfs) inspect family bootloader = *) let arch = let any_module = modpath ^ List.hd modules in - g#file_architecture any_module in + g#file_architecture (g#realpath any_module) in (* Just return the module names, without path or extension. *) let modules = List.filter_map ( -- 2.20.1
2009 Jul 31
1
[PATCH] Use grub entries to find Linux kernels
...tory, which is the easiest way to find out what kernels - # are installed, and what modules are available. - foreach ($g->ls ("/lib/modules")) { - if ($g->is_dir ("/lib/modules/$_")) { - my %kernel; - $kernel{version} = $_; - - # List modules. - my @modules; - my $any_module; - my $prefix = "/lib/modules/$_"; - foreach ($g->find ($prefix)) { - if (m,/([^/]+)\.ko$, || m,([^/]+)\.o$,) { - $any_module = "$prefix$_" unless defined $any_module; - push @modules, $1; - } - } + # Check we've got a kernel entry +...
2009 Aug 03
1
[REPOST] Use grub entries to find Linux kernels
This is a repost of the patch I sent on Friday. I know it was already ACK'd, but I've changed a fair bit in addition to adding the requested POD. Specifically: I discovered that augeas's grub lens wasn't returning cmdline the way I expected. This is fixed. The kernel package, if known, is output as a property of the kernel. The XML output of virt-inspector is updated with all
2019 Mar 20
1
[PATCH] v2v: linux: improve archtecture detection from modules (RHBZ#1690574)
...* To avoid architecture detection issues with 3rd party + * modules (RHBZ#1690574), try to pick one of the well + * known modules, if available. Otherwise, an arbitrary + * module is used. *) let arch = - let any_module = modpath ^ List.hd modules in - g#file_architecture any_module in + (* Well known kernel modules. *) + let candidates = [ "virtio"; "kvm" ] in + let all_candidates = List.flatten ( + List.map ( +...
2019 Mar 20
0
Re: [PATCH] v2v: linux: canonicalize module path for arch detection (RHBZ#1690574)
...nels.ml b/v2v/linux_kernels.ml > index 3313aabc7..889ec2f2a 100644 > --- a/v2v/linux_kernels.ml > +++ b/v2v/linux_kernels.ml > @@ -189,7 +189,7 @@ let detect_kernels (g : G.guestfs) inspect family bootloader = > *) > let arch = > let any_module = modpath ^ List.hd modules in > - g#file_architecture any_module in > + g#file_architecture (g#realpath any_module) in I don't mind this, but would it better to fix the actual API? Anyway either way is fine so ACK. Rich. > (* Just return t...
2006 Jan 18
0
Namespace Issues
...s that the AnyModule::AnyModel shadows AnyModel. ----------------------------------------------------------------- Note: a simila post of mine appears in "Rails Engines development" as well. The goal --------- I would like to have the model AnyModule::AnyModel in apps/models/any_module/any_model.rb managed by the controller AnyModule::AnyModelController in apps/controllers/any_module/any_models_controller.rb with views in apps/views/any_module/any_models I am experimentig a quite strange behavior: 1 - create a test rails application (e.g. tasklist) 2 - s...
2016 Sep 09
0
[PATCH] v2v: linux: Move kernel detection to a separate module.
...(fun m -> Str.string_match rex_ko m 0) modules in - assert (List.length modules > 0); - - (* Determine the kernel architecture by looking at the - * architecture of an arbitrary kernel module. - *) - let arch = - let any_module = modpath ^ List.hd modules in - g#file_architecture any_module in - - (* Just return the module names, without path or extension. *) - let modules = filter_map ( - fun m -> - if Str.string_match rex_ko_extract m 0 then -...
2016 Sep 09
2
[PATCH] v2v: linux: Move kernel detection to a separate module.
This is a sort of follow-up to the Linux_bootloaders patch. It turns out all the kernel detection code is nicely self- contained and can therefore be moved to its own module. Rich.
2009 Aug 19
2
[PATCH] Export inspect_linux_kernel in Lib.pm
...my $package; eval { $package = $g->command(['rpm', '-qf', '--qf', '%{NAME}', $path]); }; @@ -1667,14 +1687,6 @@ sub _inspect_linux_kernel # of any kernel module. $kernel{arch} = file_architecture ($g, $any_module); - # Put this kernel on the top level kernel list - my $kernels = $os->{kernels}; - if(!defined($kernels)) { - $kernels = []; - $os->{kernels} = $kernels; - } - push(@$kernels, \%kernel); - return \%kernel; } -- 1.6.2.5
2013 Sep 24
0
[PATCH 3/4] Add SUSE converter
...__x("Couldn't guess kernel version number from path for ". + "kernel {path}\n", path => $path); + + # Give up + return undef; + } + } + + $kernel{version} = $version; + + # List modules. + my @modules; + my $any_module; + my $prefix = "/lib/modules/$version"; + foreach my $module ($g->find ($prefix)) { + if ($module =~ m{/([^/]+)\.(?:ko|o)$}) { + $any_module = "$prefix$module" unless defined $any_module; + push @modules, $1; + } + } + + $kerne...
2013 Oct 03
2
[PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...__x("Couldn't guess kernel version number from path for ". + "kernel {path}\n", path => $path); + + # Give up + return undef; + } + } + + $kernel{version} = $version; + + # List modules. + my @modules; + my $any_module; + my $prefix = "/lib/modules/$version"; + foreach my $module ($g->find ($prefix)) { + if ($module =~ m{/([^/]+)\.(?:ko|o)$}) { + $any_module = "$prefix$module" unless defined $any_module; + push @modules, $1; + } + } + + $kerne...
2013 Sep 24
5
[PATCH 0/4] Add SUSE guest converter to virt-v2v
This is a new conversion module to convert SUSE Linux and openSUSE guests. The converter is based on the RedHat module, and should offer the same functionality on both SUSE and RedHat hosts. There are a few additional messages in this module, such as reporting of packages when installing through zypper or the local virt-v2v repo. These messages don't necessarily flow unless verbose switches
2017 Nov 21
2
[PATCH v3 0/2] common/mlstdutils: Extend the List module.
v2 -> v3: - Renamed List.assoc_ -> List.assoc_lbl. - Rebased on top of current master branch. Rich.
2017 Oct 08
4
[PATCH 0/3] common/mlstdutils: Add Std_utils List and Option modules.
In Std_utils we already extend Char and String. These commits take it a little further by extending List and adding a new Option submodule. All basically simple refactoring. Rich.
2017 Oct 08
7
[[PATCH v2 0/4] common/mlstdutils: Add Std_utils List and Option modules.
This time including the first commit ...