summaryrefslogtreecommitdiffstats
path: root/recipes-extended
diff options
context:
space:
mode:
authorBruce Ashfield <bruce.ashfield@gmail.com>2026-04-11 03:27:58 +0000
committerBruce Ashfield <bruce.ashfield@gmail.com>2026-04-11 03:27:58 +0000
commitb59fb87c0e991aa95f62627c3b2a606956ef6377 (patch)
treede4cf2153fdf50b166b904f0d68a887921c6c3fe /recipes-extended
parent4dddf149832ef19233c13af31987bcd6b1faf4cd (diff)
downloadmeta-virtualization-b59fb87c0e991aa95f62627c3b2a606956ef6377.tar.gz
alpine-xen-guest-bundle: fix boot with init=/bin/sh
Alpine minirootfs is container-oriented and doesn't include openrc. The default /sbin/init is a symlink to /sbin/openrc which doesn't exist, causing a boot loop with: can't run '/sbin/openrc': No such file or directory Add init=/bin/sh to the guest kernel cmdline so the guest boots to a shell prompt instead of failing to find the init system. Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-extended')
-rw-r--r--recipes-extended/xen-guest-bundles/alpine-xen-guest-bundle_3.23.bb5
1 files changed, 4 insertions, 1 deletions
diff --git a/recipes-extended/xen-guest-bundles/alpine-xen-guest-bundle_3.23.bb b/recipes-extended/xen-guest-bundles/alpine-xen-guest-bundle_3.23.bb
index 8d45cd8d..e70c48d5 100644
--- a/recipes-extended/xen-guest-bundles/alpine-xen-guest-bundle_3.23.bb
+++ b/recipes-extended/xen-guest-bundles/alpine-xen-guest-bundle_3.23.bb
@@ -43,4 +43,7 @@ XEN_GUEST_IMAGE_SIZE[alpine] = "128"
43 43
44# Guest parameters 44# Guest parameters
45XEN_GUEST_MEMORY[alpine] = "256" 45XEN_GUEST_MEMORY[alpine] = "256"
46XEN_GUEST_EXTRA[alpine] = "root=/dev/xvda ro console=hvc0" 46# Use init=/bin/sh — Alpine minirootfs doesn't include openrc which
47# /sbin/init symlinks to. The minirootfs is container-oriented, not
48# a full bootable system.
49XEN_GUEST_EXTRA[alpine] = "root=/dev/xvda ro console=hvc0 init=/bin/sh"