2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

polish code

This commit is contained in:
bybai
2017-03-10 03:58:15 -05:00
parent 2be6b6e91e
commit ef0b1fdce6

View File

@ -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;
}