From f328113a2aa6026c94fc5f0f9b526ecb655aa2bc Mon Sep 17 00:00:00 2001 From: pptx704 Date: Sun, 3 May 2026 03:32:03 +0600 Subject: [PATCH] rename guest hostname from "sandbox" to "capsule" Terminal prompt inside VMs now shows root@capsule instead of root@sandbox, aligning with user-facing "capsule" terminology. --- images/wrenn-init.sh | 4 ++-- internal/vm/config.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/images/wrenn-init.sh b/images/wrenn-init.sh index 8a9e22e..b05a08b 100644 --- a/images/wrenn-init.sh +++ b/images/wrenn-init.sh @@ -18,8 +18,8 @@ mount -t cgroup2 cgroup2 /sys/fs/cgroup 2>/dev/null || true echo "+cpu +memory +io" > /sys/fs/cgroup/cgroup.subtree_control 2>/dev/null || true # Set hostname and make it resolvable (sudo requires this). -hostname sandbox -echo "127.0.0.1 sandbox" >> /etc/hosts +hostname capsule +echo "127.0.0.1 capsule" >> /etc/hosts # Configure networking if the kernel ip= boot arg did not already set it up. if ! ip addr show eth0 2>/dev/null | grep -q "169.254.0.21"; then diff --git a/internal/vm/config.go b/internal/vm/config.go index 0c1f258..ea229b6 100644 --- a/internal/vm/config.go +++ b/internal/vm/config.go @@ -90,7 +90,7 @@ func (c *VMConfig) applyDefaults() { // kernelArgs builds the kernel command line for the VM. func (c *VMConfig) kernelArgs() string { // ip= format: :::::: - ipArg := fmt.Sprintf("ip=%s::%s:%s:sandbox:eth0:off", + ipArg := fmt.Sprintf("ip=%s::%s:%s:capsule:eth0:off", c.GuestIP, c.GatewayIP, c.NetMask, )