Skip to content

Commit

Permalink
Improved regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Sep 23, 2014
1 parent d7a9d17 commit 8dffd55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clients/save_network.rb
Expand Up @@ -78,7 +78,7 @@ def adjust_for_network_disks(file)
# tune ifcfg file for remote filesystem
SCR.Execute(
path(".target.bash"),
"sed -i s/STARTMODE.*/STARTMODE='nfsroot'/ #{file}"
"sed -i s/^[[:space:]]*STARTMODE=.*/STARTMODE='nfsroot'/ #{file}"
)
end

Expand Down

0 comments on commit 8dffd55

Please sign in to comment.