Displaying 7 results from an estimated 7 matches for "1console".
Did you mean:
  console
  
2016 Aug 06
1
[PATCH] v2v: fix regex replacement in grub2_update_console
...onvert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -1057,9 +1057,9 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps =
       if Str.string_match rex grub_cmdline 0 then (
         let new_grub_cmdline =
           if not remove then
-            Str.global_replace rex "\\1console=ttyS0\\3" grub_cmdline
+            Str.global_replace rex "\\1console=ttyS0\\2" grub_cmdline
           else
-            Str.global_replace rex "\\1\\3" grub_cmdline in
+            Str.global_replace rex "\\1\\2" grub_cmdline in
         g#aug_set path new_grub...
2016 Aug 15
2
[PATCH v2] v2v: factor out bootloader handling
...warning (f_"could not remove grub2 serial console (ignored)")
+    | path :: _ ->
+      let grub_cmdline = g#aug_get path in
+      if Str.string_match rex grub_cmdline 0 then (
+        let new_grub_cmdline =
+          if not remove then
+            Str.global_replace rex "\\1console=ttyS0\\2" grub_cmdline
+          else
+            Str.global_replace rex "\\1\\2" grub_cmdline in
+        g#aug_set path new_grub_cmdline;
+        g#aug_save ();
+
+        try
+          ignore (g#command [| "grub2-mkconfig"; "-o"; grub_config |])
+        wi...
2015 Nov 20
0
[PATCH] v2v: factor out bootloader handling
...warning (f_"could not remove grub2 serial console (ignored)")
+    | path :: _ ->
+      let grub_cmdline = g#aug_get path in
+      if Str.string_match rex grub_cmdline 0 then (
+        let new_grub_cmdline =
+          if not remove then
+            Str.global_replace rex "\\1console=ttyS0\\3" grub_cmdline
+          else
+            Str.global_replace rex "\\1\\3" grub_cmdline in
+        g#aug_set path new_grub_cmdline;
+        g#aug_save ();
+
+        try
+          ignore (g#command [| "grub2-mkconfig"; "-o"; grub_config |])
+        wi...
2016 Aug 15
0
Re: [PATCH v2] v2v: factor out bootloader handling
...emove grub2 serial console (ignored)")
> +    | path :: _ ->
> +      let grub_cmdline = g#aug_get path in
> +      if Str.string_match rex grub_cmdline 0 then (
> +        let new_grub_cmdline =
> +          if not remove then
> +            Str.global_replace rex "\\1console=ttyS0\\2" grub_cmdline
> +          else
> +            Str.global_replace rex "\\1\\2" grub_cmdline in
> +        g#aug_set path new_grub_cmdline;
> +        g#aug_save ();
> +
> +        try
> +          ignore (g#command [| "grub2-mkconfig"; "-o...
2016 Aug 25
2
[PATCH v2] v2v: factor out bootloader handling
...warning (f_"could not remove grub2 serial console (ignored)")
-    | path :: _ ->
-      let grub_cmdline = g#aug_get path in
-      if Str.string_match rex grub_cmdline 0 then (
-        let new_grub_cmdline =
-          if not remove then
-            Str.global_replace rex "\\1console=ttyS0\\2" grub_cmdline
-          else
-            Str.global_replace rex "\\1\\2" grub_cmdline in
-        g#aug_set path new_grub_cmdline;
-        g#aug_save ();
-
-        try
-          ignore (g#command [| "grub2-mkconfig"; "-o"; grub_config |])
-        wi...
2017 Sep 21
18
[PATCH v2 00/18] Replace many more uses of the Str module with PCRE.
v1 was here:
https://www.redhat.com/archives/libguestfs/2017-September/msg00135.html
This is a more complete evolution of the earlier patch.  It replaces
most important uses of Str with PCRE throughout the code.  It also
extends the bindings with some useful features like case-insensitive
regexps.
The main places I *didn't* touch are the generator (GObject uses Str
extensively); and
2017 Sep 22
27
[PATCH v3 00/22] Replace almost all uses of the Str module with PCRE.
v1:
https://www.redhat.com/archives/libguestfs/2017-September/msg00135.html
v2:
https://www.redhat.com/archives/libguestfs/2017-September/msg00158.html
v3 is almost identical to v2, but I have added 4 extra commits to
almost finish the job of replacing Str everywhere possible (note it's
not possible to replace Str in common/mlstdutils or the generator
because those are pure OCaml).
As