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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user