Set HOME to /root for guest root

SA
6mo ago
+3-0

When kbox runs as guest root, it previously inherited the host's HOME. Because this directory does not exist in the LKL filesystem, cd would fail with ENOENT and shell profiles wouldn't load.

Fix this by overriding HOME to /root when guest root is active.

Change-Id: I738dbea7b0bcca01c62c29f054d0d5b375a68d66


Summary by cubic

Set HOME to /root when running as guest root to avoid inheriting the host HOME. This fixes cd ENOENT errors and ensures shell profiles load in the LKL filesystem.