summaryrefslogtreecommitdiff
path: root/image/iso-share/post-x86_64.sh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-20 05:57:48 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-20 05:57:48 -0500
commit3f7a2b2d2deca1f1896e2e90b09afece0555d3f7 (patch)
tree14efc4adf206fcb17632c3b3f2b8fc49ea055d69 /image/iso-share/post-x86_64.sh
parenta9ccd9bc7e22573c5c327d3f75722ebd3cca6a82 (diff)
downloadhorizon-3f7a2b2d2deca1f1896e2e90b09afece0555d3f7.tar.gz
horizon-3f7a2b2d2deca1f1896e2e90b09afece0555d3f7.tar.bz2
horizon-3f7a2b2d2deca1f1896e2e90b09afece0555d3f7.tar.xz
horizon-3f7a2b2d2deca1f1896e2e90b09afece0555d3f7.zip
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
Diffstat (limited to 'image/iso-share/post-x86_64.sh')
-rwxr-xr-ximage/iso-share/post-x86_64.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/image/iso-share/post-x86_64.sh b/image/iso-share/post-x86_64.sh
index e8b904d..8ede382 100755
--- a/image/iso-share/post-x86_64.sh
+++ b/image/iso-share/post-x86_64.sh
@@ -8,7 +8,15 @@ set prefix=($root)/boot
EARLYCFG
cat >cdroot/boot/grub.cfg <<'GRUBCFG'
-menuentry "Adelie Linux Live (Intel 64-bit)" --class linux --id adelie-live-cd {
+menuentry "Adelie Linux Live (Intel 64-bit)" --class linux --id adelie-live-cd-x64 {
+ insmod iso9660
+ insmod linux
+ search --label "Adelie-x86_64" --no-floppy --set
+ linux ($root)/kernel-x86_64 root=live:LABEL=Adelie-x86_64 rd.live.dir=/ rd.live.squashimg=x86_64.squashfs softlevel=graphical
+ initrd ($root)/initrd-x86_64
+}
+
+menuentry "Adelie Linux Live (Intel 64-bit) (text-only)" --class linux --id adelie-live-cd-x64-text {
insmod iso9660
insmod linux
search --label "Adelie-x86_64" --no-floppy --set