[augeas-devel] [PATCH 3/6] FAI_DiskConfig: Fix invalid escape sequence \s

Michael Chapman mike at very.puzzling.org
Sat Oct 8 11:08:03 UTC 2011


It should be expanded to [ \n\t].

Signed-off-by: Michael Chapman <mike at very.puzzling.org>
---
 lenses/fai_diskconfig.aug |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lenses/fai_diskconfig.aug b/lenses/fai_diskconfig.aug
index d29a3f6..2c29a0d 100644
--- a/lenses/fai_diskconfig.aug
+++ b/lenses/fai_diskconfig.aug
@@ -219,7 +219,7 @@ let disk_config_entry (kw:regexp) (opt:lens) (vol:lens) =
 (* Variable: lvmoption *)
 let lvmoption =
      (* preserve partitions -- always *)
-      generic_opt "preserve_always" /[^\/, \t\n-]+-[^\/, \t\n-]+(,[^\/,\s\-]+-[^\/, \t\n-]+)*/
+      generic_opt "preserve_always" /[^\/, \t\n-]+-[^\/, \t\n-]+(,[^\/, \t\n-]+-[^\/, \t\n-]+)*/
      (* preserve partitions -- unless the system is installed
       * for the first time *)
    | generic_opt "preserve_reinstall" /[^\/, \t\n-]+-[^\/, \t\n-]+(,[^\/, \t\n-]+-[^\/, \t\n-]+)*/
-- 
1.7.6.4




More information about the augeas-devel mailing list