Skip to content

Set HOME to /root for guest root#69

Open
SArthurX wants to merge 1 commit into
sysprog21:mainfrom
SArthurX:fix/guest-root-home
Open

Set HOME to /root for guest root#69
SArthurX wants to merge 1 commit into
sysprog21:mainfrom
SArthurX:fix/guest-root-home

Conversation

@SArthurX
Copy link
Copy Markdown

@SArthurX SArthurX commented May 25, 2026

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.

Written for commit 00002f6. Summary will update on new commits. Review in cubic

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
Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant