Use correct home for realm

This commit is contained in:
Bruce Leidl 2019-09-24 17:05:29 -04:00
parent df1c6a3cb3
commit 9f2acb07f8
2 changed files with 5 additions and 1 deletions

View File

@ -157,6 +157,10 @@ impl VmConfig {
self.realm_name.as_ref().map(|s| s.as_str())
}
pub fn is_realm(&self) -> bool {
self.realm_name.is_some()
}
pub fn is_wayland_enabled(&self) -> bool {
if !self.wayland {
return false;

View File

@ -87,7 +87,7 @@ impl Vm {
let homedir = config.homedir();
devices::VirtioP9::create(virtio, "home", homedir, false, false)?;
if homedir != "/home/user" {
if homedir != "/home/user" && !config.is_realm() {
cmdline.push_set_val("phinit.home", homedir);
}