File bug-291778_create-conf.patch of Package yast2-drbd
diff -Nru yast2-drbd-2.13.1.ori/agents/drbd.rb.yy yast2-drbd-2.13.1/agents/drbd.rb.yy
--- yast2-drbd-2.13.1.ori/agents/drbd.rb.yy 2007-07-30 14:58:26.000000000 +0800
+++ yast2-drbd-2.13.1/agents/drbd.rb.yy 2007-07-31 00:16:05.000000000 +0800
@@ -198,6 +198,12 @@
$configstr = ""
in_skip = false
+if !File.exist?($drbdcfg)
+ file = File.open($drbdcfg, "w")
+ file.close
+end
+
+
File.open($drbdcfg, "r") do |file|
file.each_line do |line|
line = line.gsub(/#.*$/, '').chomp