search for: set_augeas_configur

Displaying 7 results from an estimated 7 matches for "set_augeas_configur".

2016 Aug 15
1
Re: [PATCH v2] v2v: factor out bootloader handling
...> +class virtual bootloader = object > > + method virtual name : string > > + method virtual augeas_device_patterns : string list > > + method virtual list_kernels : unit -> string list > > + method virtual set_default_kernel : string -> unit > > + method set_augeas_configuration () = false > > + method virtual configure_console : unit -> unit > > + method virtual remove_console : unit -> unit > > + method update () = () > > +end > > I think you'll also find that you don't need to use inheritance at > all. You can jus...
2016 Aug 15
2
[PATCH v2] v2v: factor out bootloader handling
...tils + +open Types +open Utils + +module G = Guestfs + +class virtual bootloader = object + method virtual name : string + method virtual augeas_device_patterns : string list + method virtual list_kernels : unit -> string list + method virtual set_default_kernel : string -> unit + method set_augeas_configuration () = false + method virtual configure_console : unit -> unit + method virtual remove_console : unit -> unit + method update () = () +end + +(* Helper type used in detect_bootloader. *) +type bootloader_type = + | Grub1 + | Grub2 + +(* Helper function for SUSE: remove (hdX,X) prefix...
2015 Nov 20
0
[PATCH] v2v: factor out bootloader handling
...ommon_utils + +open Types +open Utils + +module G = Guestfs + +class virtual bootloader = object + method virtual name : string + method virtual augeas_device_patterns : string list + method virtual list_kernels : unit -> string list + method virtual set_default : string -> unit + method set_augeas_configuration () = false + method virtual configure_console : unit -> unit + method virtual remove_console : unit -> unit + method update () = () +end + +(* Helper type used in detect_bootloader. *) +type bootloader_type = + | Grub1 + | Grub2 + +(* Helper function for SUSE: remove (hdX,X) prefix...
2016 Aug 15
0
Re: [PATCH v2] v2v: factor out bootloader handling
...ended to include NTLDR. > +class virtual bootloader = object > + method virtual name : string > + method virtual augeas_device_patterns : string list > + method virtual list_kernels : unit -> string list > + method virtual set_default_kernel : string -> unit > + method set_augeas_configuration () = false > + method virtual configure_console : unit -> unit > + method virtual remove_console : unit -> unit > + method update () = () > +end I think you'll also find that you don't need to use inheritance at all. You can just declare bootloader as a class typ...
2016 Aug 25
2
[PATCH v2] v2v: factor out bootloader handling
...ist.exists (fun incl -> g#aug_get incl = grub_config) incls in - if not incls_contains_conf then ( - g#aug_set "/augeas/load/Grub/incl[last()+1]" grub_config; - Linux.augeas_reload g; - ) - - | `Grub2 -> () (* Not necessary for grub2. *) + if bootloader#set_augeas_configuration () then + Linux.augeas_reload g and unconfigure_xen () = (* Remove kmod-xenpv-* (RHEL 3). *) @@ -740,7 +610,7 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = let kernels = List.rev kernels (* so best is first *) in List.hd kernels in...
2016 Sep 09
1
[PATCH 1/2] v2v: linux: Avoid recursive functions.
...@@ -78,7 +78,7 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = (*----------------------------------------------------------------------*) (* Conversion step. *) - let rec augeas_grub_configuration () = + let augeas_grub_configuration () = if bootloader#set_augeas_configuration () then Linux.augeas_reload g @@ -675,6 +675,41 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps = and configure_kernel_modules block_type net_type = (* This function modifies modules.conf (and its various aliases). *) + let augeas_modprobe que...
2016 Aug 26
2
[PATCH] v2v: Use unitless methods for methods which don't change the internal state.
...= Guestfs class virtual bootloader = object method virtual name : string method virtual augeas_device_patterns : string list - method virtual list_kernels : unit -> string list + method virtual list_kernels : string list method virtual set_default_kernel : string -> unit method set_augeas_configuration () = false method virtual configure_console : unit -> unit @@ -69,7 +69,7 @@ object "/files/etc/sysconfig/grub/boot"; ] - method list_kernels () = + method list_kernels = let paths = let expr = sprintf "/files%s/title/kernel" grub_config in...