Commit 8d6a4d70 authored by Jeremy Soller's avatar Jeremy Soller

Add RedoxFS as submodule. Do not create passwd if no users are provided

parent c2bae248
[submodule "redoxfs"]
path = redoxfs
url = https://github.com/redox-os/redoxfs.git
Subproject commit 6c1d98cea83e2bb02b940959e6b07625ec12656f
......@@ -189,7 +189,9 @@ pub fn install(config: Config, cookbook: Option<&str>) -> Result<(), String> {
passwd.push_str(&format!("{};{};{};{};{};{};{}\n", username, password, uid, gid, name, home, shell));
}
file!("etc/passwd", passwd.as_bytes());
if ! passwd.is_empty() {
file!("etc/passwd", passwd.as_bytes());
}
Ok(())
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment