From ef0b1fdce692ab26ea2576b2a48619097f5a582e Mon Sep 17 00:00:00 2001 From: bybai Date: Fri, 10 Mar 2017 03:58:15 -0500 Subject: [PATCH] polish code --- xCAT-server/lib/xcat/plugins/statelite.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/statelite.pm b/xCAT-server/lib/xcat/plugins/statelite.pm index 774ccad92..daed8b6e6 100644 --- a/xCAT-server/lib/xcat/plugins/statelite.pm +++ b/xCAT-server/lib/xcat/plugins/statelite.pm @@ -991,7 +991,7 @@ sub updateFstab { open($tfstab, ">", "$rootimg_dir/etc/fstab"); foreach my $line (@fsdents) { if ( $line =~ /^$rootfs_name/ ) { - $line =~ s/rw/ro/; + $line =~ s/\brw\b/ro/; } print $tfstab $line; }