From 3f7a2b2d2deca1f1896e2e90b09afece0555d3f7 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 20 Oct 2023 05:57:48 -0500 Subject: image: CD backend: Allow choice of graphics / text Combined with adelie/image@7df95115f4, this allows a user to choose whether to boot to a graphical environment or drop to a text prompt. Implements: #346 --- image/iso-share/post-ppc.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'image/iso-share/post-ppc.sh') diff --git a/image/iso-share/post-ppc.sh b/image/iso-share/post-ppc.sh index e834d7b..61aaca8 100644 --- a/image/iso-share/post-ppc.sh +++ b/image/iso-share/post-ppc.sh @@ -19,7 +19,16 @@ rm early.cfg cp cdroot/VolumeIcon.icns 'cdroot/Icon ' cat >cdroot/boot/grub.cfg <<'GRUBCFG' -menuentry "Adelie Linux Live (PowerPC 32-bit)" --class linux --id adelie-live-cd { +menuentry "Adelie Linux Live (PowerPC 32-bit)" --class linux --id adelie-live-cd-ppc { + insmod part_apple + insmod iso9660 + insmod linux + search --label "Adelie-ppc" --hint cd,apple2 --no-floppy --set + linux ($root)/kernel-ppc root=live:LABEL=Adelie-ppc rd.live.dir=/ rd.live.squashimg=ppc.squashfs softlevel=graphical + initrd ($root)/initrd-ppc +} + +menuentry "Adelie Linux Live (PowerPC 32-bit) (text-only)" --class linux --id adelie-live-cd-ppc-text { insmod part_apple insmod iso9660 insmod linux -- cgit v1.2.3-60-g2f50