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

This commit is contained in:
Jeremy Soller
2017-05-10 21:38:05 -06:00
parent c2bae24835
commit 8d6a4d7071
3 changed files with 7 additions and 1 deletions
+3
View File
@@ -0,0 +1,3 @@
[submodule "redoxfs"]
path = redoxfs
url = https://github.com/redox-os/redoxfs.git
Submodule
+1
Submodule redoxfs added at 6c1d98cea8
+3 -1
View File
@@ -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(())
}