Use correct home for realm
This commit is contained in:
parent
df1c6a3cb3
commit
9f2acb07f8
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user