Displaying 10 results from an estimated 10 matches for "grub_path".
2013 Sep 03
0
[PATCH] virt-v2v: Fix 'isn't numeric in numeric gt' error in grub check (RHBZ#974441)
...le changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/Sys/VirtConvert/Converter/RedHat.pm
b/lib/Sys/VirtConvert/Converter/RedHat.pm
index 36345e7..f1d3b98 100644
--- a/lib/Sys/VirtConvert/Converter/RedHat.pm
+++ b/lib/Sys/VirtConvert/Converter/RedHat.pm
@@ -247,7 +247,7 @@ sub check
my $grub_path = $1;
# Nothing to do if the kernel already has a grub entry
- return if $g->aug_match("/files$grub_conf/title/kernel[. = '$grub_path']")
> 0;
+ return if $g->aug_match("/files$grub_conf/title/kernel[. = '$grub_path']")
ne '';...
2020 Jul 24
3
[PATCH v2] v2v: fix UEFI bootloader for linux guests
...ile =
+ if g#exists file then
+ true
+ else (
+ info (f_"Can't find file: '%s' needed for UEFI fixing")
+ file;
+ false )
+ in
+
+ let grub_config = bootloader#get_config_file () in
+
+ let grub_path =
+ String.sub grub_config 0 (String.rindex grub_config '/') in
+
+ if g#exists uefi_fallback_name then
+ (* don't do anything if uefi fallback exists *)
+ ()
+ else (
+ info (f_"Fixing UEFI bootloader.");
+ match insp...
2020 May 15
1
[PATCH] v2v: fix UEFI bootloader for linux guests
...'t fix UEFI bootloader. VM may not boot.");
+ "" ) in
+
+ let file_exists file =
+ if g#exists file then
+ true
+ else (
+ info (f_"Can't find file: '%s' needed for UEFI bootloader fixing") file;
+ false ) in
+
+ let grub_path = String.sub grub_config 0 (String.rindex grub_config '/') in
+ let uefi_fallback_name =
+ let arch_suffix = get_uefi_arch_suffix arch in
+ if arch_suffix <> "" then
+ String.concat "" [uefi_fallback_path; "BOOT"; arch_suffix; ".E...
2013 Sep 24
0
[PATCH 3/4] Add SUSE converter
...;
+
+ my $g = $self->{g};
+ my $grub_conf = $self->{grub_conf};
+ my $grub_fs = $self->{grub_fs};
+ $path =~ /^$grub_fs(.*)/
+ or v2vdie __x('Kernel {kernel} is not under grub tree {grub}',
+ kernel => $path, grub => $grub_fs);
+ my $grub_path = $1;
+
+ # Nothing to do if the kernel already has a grub entry
+ return if $g->aug_match("/files$grub_conf/title/kernel".
+ "[. = '$grub_path']") ne '';
+
+ my $kernel =
+ Sys::VirtConvert::Converter::SUSE::_inspect...
2013 Sep 25
5
Re: [PATCH 3/4] Add SUSE converter
...;
> + my $grub_conf = $self->{grub_conf};
> + my $grub_fs = $self->{grub_fs};
> + $path =~ /^$grub_fs(.*)/
> + or v2vdie __x('Kernel {kernel} is not under grub tree {grub}',
> + kernel => $path, grub => $grub_fs);
> + my $grub_path = $1;
> +
> + # Nothing to do if the kernel already has a grub entry
> + return if $g->aug_match("/files$grub_conf/title/kernel".
> + "[. = '$grub_path']") ne '';
I notice this is a change from RedHat.pm. Why did y...
2013 Oct 03
2
[PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...;
+
+ my $g = $self->{g};
+ my $grub_conf = $self->{grub_conf};
+ my $grub_fs = $self->{grub_fs};
+ $path =~ /^$grub_fs(.*)/
+ or v2vdie __x('Kernel {kernel} is not under grub tree {grub}',
+ kernel => $path, grub => $grub_fs);
+ my $grub_path = $1;
+
+ # Nothing to do if the kernel already has a grub entry
+ my @entries = $g->aug_match("/files$grub_conf/title/kernel".
+ "[. = '$grub_path']");
+ return if scalar(@entries) > 0;
+
+ my $kernel =
+ Sys::VirtConv...
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
2013 Sep 25
0
Re: [PATCH 3/4] Add SUSE converter
...(well, that and the
copyright changes), so I have some more investigation to do here.
> > + # Nothing to do if the kernel already has a grub entry
> > + return if $g->aug_match("/files$grub_conf/title/kernel".
> > + "[. = '$grub_path']") ne '';
>
> I notice this is a change from RedHat.pm. Why did you add the "ne ''"?
> Augeas will only return kernel entries, and I would expect a blank
> kernel entry to be a parse error, hence this would be redundant.
In my testing (and according...
2013 Oct 07
3
Re: [PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
On Friday, October 04, 2013 09:38:58 AM Matthew Booth wrote:
> It's specifically an error if we're attempting to configure virtio, and
> there's no detected virtio kernel. It shouldn't have been possible to
> get here in that state, hence it's a programmer error. The code below
> attempts to install *any* kernel in the case that we aren't configuring
>
2013 Oct 11
2
Re: [PATCH] virt-v2v: Convert RedHat.pm to Linux.pm - for SUSE support
...up the new configuration
$g->aug_load();
@@ -236,7 +307,7 @@ sub update_console
sub check
{
my $self = shift;
- my ($path) = @_;
+ my ($path, $root) = @_;
my $g = $self->{g};
my $grub_conf = $self->{grub_conf};
@@ -247,19 +318,22 @@ sub check
my $grub_path = $1;
# Nothing to do if the kernel already has a grub entry
- my @entries = $g->aug_match("/files$grub_conf/title/kernel[. =
'$grub_path']");
+ my @entries = $g->aug_match("/files$grub_conf/title/kernel".
+ "[. = '...