refactor: Use systemd-nspawn directly instead of machinectl
- Replace machinectl shell with systemd-nspawn -q -D - Add systemd-nspawn to sudoers permissions - Simpler and more direct container entry - No dependency on systemd-machined service
This commit is contained in:
@@ -75,7 +75,7 @@ if [[ -o login ]] && [[ -o interactive ]]; then
|
||||
if [[ -z "$INSIDE_WORKSPACE" ]]; then
|
||||
# Running as ai user on aios OS - enter workspace container
|
||||
export INSIDE_WORKSPACE=1
|
||||
exec sudo machinectl shell workspace
|
||||
exec sudo systemd-nspawn -q -D /var/lib/machines/workspace /bin/zsh
|
||||
else
|
||||
# Running as root inside workspace container - start claude
|
||||
if command -v claude &>/dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user