search for: ki_vmlinuz

Displaying 20 results from an estimated 31 matches for "ki_vmlinuz".

2017 May 15
1
[PATCH] v2v: linux: pass the root device when using SUSE's mkinitrd
...7,7 +517,8 @@ let rec convert (g : G.guestfs) inspect source output rcaps = g#command [| "/sbin/mkinitrd"; "-m"; String.concat " " modules; "-i"; initrd; - "-k"; kernel.ki_vmlinuz |] + "-k"; kernel.ki_vmlinuz; + "-d"; inspect.i_root |] ) ) else if family = `Debian_family then ( -- 2.9.3
2016 Sep 09
0
[PATCH] v2v: linux: Move kernel detection to a separate module.
...rnel information. *) -type kernel_info = { - ki_app : G.application2; (* The RPM package data. *) - ki_name : string; (* eg. "kernel-PAE" *) - ki_version : string; (* version-release *) - ki_arch : string; (* Kernel architecture. *) - ki_vmlinuz : string; (* The path of the vmlinuz file. *) - ki_vmlinuz_stat : G.statns; (* stat(2) of vmlinuz *) - ki_initrd : string option; (* Path of initramfs, if found. *) - ki_modpath : string; (* The module path. *) - ki_modules : string list; (* The list of...
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.
2016 Aug 15
2
[PATCH v2] v2v: factor out bootloader handling
...convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = let kernels = List.rev kernels (* so best is first *) in List.hd kernels in if best_kernel <> List.hd grub_kernels then - grub_set_bootable best_kernel; + bootloader#set_default_kernel best_kernel.ki_vmlinuz; (* Does the best/bootable kernel support virtio? *) let virtio = best_kernel.ki_supports_virtio in @@ -751,46 +629,6 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = best_kernel, virtio - and grub_set_bootable kernel = - match grub with - |...
2015 Nov 20
0
[PATCH] v2v: factor out bootloader handling
...(* Only do autorelabel if load_policy binary exists. Actually @@ -741,44 +618,7 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source = best_kernel, virtio and grub_set_bootable kernel = - match grub with - | `Grub1 -> - if not (String.is_prefix kernel.ki_vmlinuz grub_prefix) then - error (f_"kernel %s is not under grub tree %s") - kernel.ki_vmlinuz grub_prefix; - let kernel_under_grub_prefix = - let prefix_len = String.length grub_prefix in - let kernel_len = String.length kernel.ki_vmlinuz in - String.su...
2016 Aug 15
0
Re: [PATCH v2] v2v: factor out bootloader handling
...ole (g : G.guestfs) inspect source rcaps = > let kernels = List.rev kernels (* so best is first *) in > List.hd kernels in > if best_kernel <> List.hd grub_kernels then > - grub_set_bootable best_kernel; > + bootloader#set_default_kernel best_kernel.ki_vmlinuz; > > (* Does the best/bootable kernel support virtio? *) > let virtio = best_kernel.ki_supports_virtio in > @@ -751,46 +629,6 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = > > best_kernel, virtio > > - and grub_set_boota...
2016 Aug 25
2
[PATCH v2] v2v: factor out bootloader handling
...convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = let kernels = List.rev kernels (* so best is first *) in List.hd kernels in if best_kernel <> List.hd grub_kernels then - grub_set_bootable best_kernel; + bootloader#set_default_kernel best_kernel.ki_vmlinuz; (* Does the best/bootable kernel support virtio? *) let virtio = best_kernel.ki_supports_virtio in @@ -758,46 +628,6 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = best_kernel, virtio - and grub_set_bootable kernel = - match grub with - |...
2017 Jun 01
1
[PATCH] v2v: tell v2v the real root device to mkinitrd
...n/env"; + "rootdev=" ^ inspect.i_root; + "/sbin/mkinitrd"; "-m"; String.concat " " modules; "-i"; initrd; "-k"; kernel.ki_vmlinuz; -- 2.12.2
2014 Dec 04
2
[PATCH v2] v2v: When picking a default kernel, favour non-debug kernels over debug kernels (RHBZ#1170073).
...Xen paravirt kernel? *) + ki_is_debug : bool; (* Is debug kernel? *) } let string_of_kernel_info ki = - sprintf "(%s, %s, %s, %s, %s, virtio=%b, xen=%b)" + sprintf "(%s, %s, %s, %s, %s, virtio=%b, xen=%b, debug=%b)" ki.ki_name ki.ki_version ki.ki_arch ki.ki_vmlinuz (match ki.ki_initrd with None -> "None" | Some f -> f) - ki.ki_supports_virtio ki.ki_is_xen_kernel + ki.ki_supports_virtio ki.ki_is_xen_kernel ki.ki_is_debug (* The conversion function. *) let rec convert ~verbose ~keep_serial_console (g : G.guestfs) inspect source =...
2016 Sep 13
1
[PATCH v3 1/2] v2v: linux: correctly reconfigure the initrd on Debian
.../sbin/dracut" then run_dracut_command "/sbin/dracut" else if g#is_file ~followsymlinks:true "/usr/bin/dracut" then @@ -491,6 +500,18 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = "-k"; kernel.ki_vmlinuz |] ) ) + else if family = `Debian_family then ( + if not (g#is_file ~followsymlinks:true "/usr/sbin/update-initramfs") then + error (f_"unable to rebuild initrd (%s) because update-initramfs was not found in the guest") + initrd; +...
2017 Apr 06
12
[PATCH v4 0/9] v2v: Add drivers for virtio-rng, balloon, pvpanic.
v1: https://www.redhat.com/archives/libguestfs/2017-April/msg00031.html v2: https://www.redhat.com/archives/libguestfs/2017-April/msg00040.html v3: https://www.redhat.com/archives/libguestfs/2017-April/msg00051.html v3 -> v4: - Properly fix Xen PV-only kernel detection, and test it. Rich.
2016 Sep 16
1
[PATCH v4] v2v: linux: correctly reconfigure the initrd on Debian
.../sbin/dracut" then run_dracut_command "/sbin/dracut" else if g#is_file ~followsymlinks:true "/usr/bin/dracut" then @@ -491,6 +500,30 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = "-k"; kernel.ki_vmlinuz |] ) ) + else if family = `Debian_family then ( + if not (g#is_file ~followsymlinks:true "/usr/sbin/update-initramfs") then + error (f_"unable to rebuild initrd (%s) because update-initramfs was not found in the guest") + initrd; +...
2017 Apr 06
1
Re: [PATCH v4 3/9] v2v: linux: Replace 'ki_supports_virtio' field.
...ki_supports_virtio_net in Should this consider both virtio-net+virtio-blk to determine that a kernel "supports virtio"? > -let string_of_kernel_info ki = > - sprintf "(%s, %s, %s, %s, %s, %s, virtio=%b, xen=%b, debug=%b)" > - ki.ki_name ki.ki_version ki.ki_arch ki.ki_vmlinuz > - (match ki.ki_initrd with None -> "None" | Some f -> f) > - (match ki.ki_config_file with None -> "None" | Some f -> f) > - ki.ki_supports_virtio ki.ki_is_xen_pv_only_kernel ki.ki_is_debug > +let print_kernel_info chan prefix ki = Can you ple...
2017 Apr 06
0
[PATCH v4 3/9] v2v: linux: Replace 'ki_supports_virtio' field.
...o_blk : bool; + ki_supports_virtio_net : bool; ki_is_xen_pv_only_kernel : bool; ki_is_debug : bool; ki_config_file : string option; } -let string_of_kernel_info ki = - sprintf "(%s, %s, %s, %s, %s, %s, virtio=%b, xen=%b, debug=%b)" - ki.ki_name ki.ki_version ki.ki_arch ki.ki_vmlinuz - (match ki.ki_initrd with None -> "None" | Some f -> f) - (match ki.ki_config_file with None -> "None" | Some f -> f) - ki.ki_supports_virtio ki.ki_is_xen_pv_only_kernel ki.ki_is_debug +let print_kernel_info chan prefix ki = + let fpf fs = output_string ch...
2017 Apr 06
9
[PATCH v3 0/8] v2v: Add drivers for virtio-rng, balloon, pvpanic.
v1: https://www.redhat.com/archives/libguestfs/2017-April/msg00031.html v2: https://www.redhat.com/archives/libguestfs/2017-April/msg00040.html v2 -> v3: - Fix Xen PV-only kernel detection. Rich.
2020 Sep 23
0
[v2v PATCH 3/3] linux: remove special handling of packages with no files
...String.is_suffix app.G.app2_name "-debug" || + String.is_suffix app.G.app2_name "-dbg" in - Some { - ki_app = app; - ki_name = name; - ki_version = version; - ki_arch = arch; - ki_vmlinuz = vmlinuz; - ki_vmlinuz_stat = vmlinuz_stat; - ki_initrd = initrd; - ki_modpath = modpath; - ki_modules = modules; - ki_supports_virtio_blk = supports_virtio_blk; - ki_supports_virtio_net = supports_virtio_net; -...
2016 Aug 10
0
[PATCH 1/2] v2v: linux: correctly reconfigure the initrd on Debian
.../sbin/dracut" then run_dracut_command "/sbin/dracut" else if g#is_file ~followsymlinks:true "/usr/bin/dracut" then @@ -878,6 +887,18 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = "-k"; kernel.ki_vmlinuz |] ) ) + else if family = `Debian_family then ( + if not (g#is_file ~followsymlinks:true "/usr/sbin/update-initramfs") then + error (f_"unable to rebuild initrd (%s) because update-initramfs was not found in the guest") + initrd; +...
2016 Sep 12
0
[PATCH 1/2] v2v: linux: correctly reconfigure the initrd on Debian
.../sbin/dracut" then run_dracut_command "/sbin/dracut" else if g#is_file ~followsymlinks:true "/usr/bin/dracut" then @@ -491,6 +500,18 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = "-k"; kernel.ki_vmlinuz |] ) ) + else if family = `Debian_family then ( + if not (g#is_file ~followsymlinks:true "/usr/sbin/update-initramfs") then + error (f_"unable to rebuild initrd (%s) because update-initramfs was not found in the guest") + initrd; +...
2016 Sep 20
1
[PATCH v5] v2v: linux: correctly reconfigure the initrd on Debian
.../sbin/dracut" then run_dracut_command "/sbin/dracut" else if g#is_file ~followsymlinks:true "/usr/bin/dracut" then @@ -491,6 +500,29 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = "-k"; kernel.ki_vmlinuz |] ) ) + else if family = `Debian_family then ( + if not (g#is_file ~followsymlinks:true "/usr/sbin/update-initramfs") then + error (f_"unable to rebuild initrd (%s) because update-initramfs was not found in the guest") + initrd; +...
2014 Dec 04
0
Re: [PATCH v2] v2v: When picking a default kernel, favour non-debug kernels over debug kernels (RHBZ#1170073).
...is_debug : bool; (* Is debug kernel? *) > } > > let string_of_kernel_info ki = > - sprintf "(%s, %s, %s, %s, %s, virtio=%b, xen=%b)" > + sprintf "(%s, %s, %s, %s, %s, virtio=%b, xen=%b, debug=%b)" > ki.ki_name ki.ki_version ki.ki_arch ki.ki_vmlinuz > (match ki.ki_initrd with None -> "None" | Some f -> f) > - ki.ki_supports_virtio ki.ki_is_xen_kernel > + ki.ki_supports_virtio ki.ki_is_xen_kernel ki.ki_is_debug > > (* The conversion function. *) > let rec convert ~verbose ~keep_serial_console (g...