initrd: System.write for login environment tasks
@@ -9,9 +9,9 @@ class Tasks::LoginEnvironment < SingletonTask
"/etc",
"/var/log",
)
- File.write("/etc/shells", "/bin/sh\n")
- File.write("/etc/passwd", "root:*:0:0:root:/root:/bin/sh\n")
- File.write("/etc/nsswitch.conf", "passwd: files\n")
- File.write("/var/log/lastlog", "")
+ System.write("/etc/shells", "/bin/sh\n")
+ System.write("/etc/passwd", "root:*:0:0:root:/root:/bin/sh\n")
+ System.write("/etc/nsswitch.conf", "passwd: files\n")
+ System.write("/var/log/lastlog", "")
end
end
