ksud: fix vendor only overlay not working

This commit is contained in:
tiann
2023-02-12 18:29:20 +08:00
parent 6d15cb7e33
commit 4e35e4ae86

View File

@@ -55,11 +55,9 @@ pub fn mount_systemlessly(module_dir: &str) -> Result<()> {
}
let module_system = Path::new(&module).join("system");
if !module_system.exists() {
info!("module: {} has no system overlay.", module.display());
continue;
if module_system.exists() {
system_lowerdir.push(format!("{}", module_system.display()));
}
system_lowerdir.push(format!("{}", module_system.display()));
for part in &partition {
// if /partition is a mountpoint, we would move it to $MODPATH/$partition when install