SOURCE_URL[0]=https://github.com/limine-bootloader/limine/releases/download/v$VERSION/$SOURCE
+ SOURCE2=$SOURCE.sig
+ SOURCE2_URL[0]=${SOURCE_URL[0]}.sig
+ SOURCE_GPG=limine.gpg:$SOURCE.sig:UPSTREAM_KEY
+ SOURCE2_IGNORE=signature
WEB_SITE=https://limine-bootloader.org
LICENSE[0]=BSD
ENTERED=20240323
diff --git a/disk/limine/FINAL b/disk/limine/FINAL
new file mode 100755
index 0000000..b50aa43
--- /dev/null
+++ b/disk/limine/FINAL
@@ -0,0 +1,27 @@
+message ${MESSAGE_COLOR}In order to use Limine:\
+\\n/boot should be a FAT32 partition \
+\\nCopy /usr/share/limine/* to /boot/limine/ \
+\\nOn UEFI systems, the kernel needs efi support
+
+if [[ -d /sys/firmware/efi ]];then
+ message This is a UEFI system\
+\\nIn order to use Limine on a UEFI system, we must \
+\\ncreate an entry in the UEFI Firmware. \
+\\n\
+\\nUse the following command, \
+\\n changing /dev/... as appropriate: \
+
+\\nefibootmgr --create\ \
+\\n#### --disk /dev/sda1 ...\ #### \
+\\n#### --disk /dev/nvme0n1 ...\ #### \
+\\n#### --part 1\ \
+\\n --label "SMGL Linux with Limine"\ \
+\\n --loader '/limine/BOOTX64.EFI'
+else
+ message This is a legacy BIOS system
+ message You will need to run \'limine bios-install ...\'
+fi
+message \
+\\nYou will need to create a limine.conf file each time the Linux kernel
changes. \
+\\nConsider using the mk-limine-cfg.sh script provided. \
+${DEFAULT_COLOR}
diff --git a/disk/limine/HISTORY b/disk/limine/HISTORY
index 4074c76..a90eefd 100644
--- a/disk/limine/HISTORY
+++ b/disk/limine/HISTORY
@@ -1,6 +1,21 @@
+2025-07-18 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 9.5.0
+ * FINAL: replace 'cat' by 'message'
+
+2025-03-17 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: add gpg checking
+ * limine.gpg: add "Mintsuki <mintsuki AT protonmail.com>"
+ * DETAILS: version 9.2.0
+
2025-03-02 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 9.0.1
+2025-02-18 Treeve Jelbert <treeve AT sourcemage.org>
+ * INSTALL: change location of script
+ * mk-limine-cfg.sh: tweak
+ * PROVIDES: added
+ * FINAL: added
+
2025-02-17 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 9.0.0
* mk-limine-cfg.sh: tweak, build a microcode image
diff --git a/disk/limine/INSTALL b/disk/limine/INSTALL
index adf986a..7bee98a 100755
--- a/disk/limine/INSTALL
+++ b/disk/limine/INSTALL
@@ -1,10 +1,8 @@
default_install &&
-DEST=$INSTALL_ROOT/usr/bin &&
+DEST=$INSTALL_ROOT/boot/limine &&
mkdir -p $DEST &&
cp $SPELL_DIRECTORY/mk-limine-cfg.sh $DEST &&
-DEST=$INSTALL_ROOT/boot/limine &&
SPLASH=smgl-splash.png &&
-mkdir -p $DEST &&
cp $SPELL_DIRECTORY/$SPLASH $DEST/$SPLASH &&
message "A SMGL splash screen is available in $DEST" &&
-message "use mk-limine-cfg to update the Limine configuration"
+message "use mk-limine-cfg to create a possible Limine configuration"
diff --git a/disk/limine/PROVIDES b/disk/limine/PROVIDES
new file mode 100644
index 0000000..6da7070
--- /dev/null
+++ b/disk/limine/PROVIDES
@@ -0,0 +1 @@
+BOOTLOADER
diff --git a/disk/limine/limine.gpg b/disk/limine/limine.gpg
new file mode 100644
index 0000000..6aa17d5
Binary files /dev/null and b/disk/limine/limine.gpg differ
diff --git a/disk/limine/mk-limine-cfg.sh b/disk/limine/mk-limine-cfg.sh
index c2dee91..56a4095 100755
--- a/disk/limine/mk-limine-cfg.sh
+++ b/disk/limine/mk-limine-cfg.sh
@@ -10,8 +10,17 @@
cd /boot
-ROOT=`dracut --print-cmdline|cut -d\ -f1,2`
-#ROOT='root=LABEL=root64'
+#ROOT=`dracut --print-cmdline|cut -d\ -f1,2`
+ROOT='root=LABEL=root'
+
+if [[ -d /sys/firmware/efi ]];then
+ echo This is a UEFI system
+ SFX='.efi'
+else
+ echo This is a legacy BIOS system
+fi
+
+
- MOD='initramfs-$VX.img'
+ MOD="initramfs-$VX.img"
if [[ -f $MOD ]];then
cat >> $DEST << EOF
- module_path:boot():$MOD
+ module_path:boot():/$MOD
EOF
fi
done # linux kernels
@@ -62,48 +74,23 @@ path:boot():/memtest+
EOF
fi
-if [[ -d /sys/firmware/efi ]];then
- echo This is a UEFI system
-
-# check for Windows
- if WIN=`blkid | grep SYSTEM_DRV`; then
- WB=${WIN%:*}
- echo Windows installation found at $WB
- cat >> $DEST << EOF
-/Windows
- protocol: efi
- image_path: hdd(0:1):/bootmgfw.efi
-EOF
- fi
-
-
-cat << EOF
-Finally, to create an entry in the UEFI Firmware,
- use the following command,
- changing /dev/... as appropriate:
-
-efibootmgr --create\
- --disk /dev/sda...\
- --disk /dev/nvme...\
- --part 1\
- --label "SMGL Linux with Limine"\
- --loader '/limine/BOOTX64.EFI'
-
-EOF
-else # non UEFI
- echo this is not a UEFI system
# check for Windows
- if WIN=`blkid | grep SYSTEM_DRV`; then
- WB=${WIN%:*}
- echo Windows installation found at $WB
+if WIN=`blkid | grep SYSTEM_DRV`; then
+ WB=${WIN%:*}
+ echo Windows installation found at $WB
cat >> $DEST << EOF
/Windows
- protocol: bios
- image_path: hdd(0:1):/bootmgfw
+ image_path: hdd(1:1):/bootmgfw${SFX}
EOF
+
+ if [[ -n $SFX ]];then
+ echo protocol: efi >> $DEST
+ else
+ echo protocol: bios >> $DEST
fi
+else
+ echo Windows installation NOT found
fi
-cat << EOF
-Check the generated $DEST carefully, especially for Windows
-EOF
+echo Check the generated $DEST carefully, especially for Windows
+## add a reboot option ??
[[SM-Commit] ] GIT changes to master grimoire by Treeve Jelbert (8bfbd0681dda58e920307b08fe13d41b2a341e94),
Treeve Jelbert, 07/18/2025