From 4fffbfd0bba6dd25e2fbadec643cb9ce270906cc Mon Sep 17 00:00:00 2001 From: eshanized Date: Mon, 30 Dec 2024 03:23:07 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(lts):=20linux=20lts=20preset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- archiso/airootfs/etc/grub.d/40_custom | 15 +++++++++++++++ archiso/airootfs/etc/mkinitcpio.d/linux.preset | 13 ++++++++----- 2 files changed, 23 insertions(+), 5 deletions(-) create mode 100755 archiso/airootfs/etc/grub.d/40_custom diff --git a/archiso/airootfs/etc/grub.d/40_custom b/archiso/airootfs/etc/grub.d/40_custom new file mode 100755 index 0000000..e8bd23e --- /dev/null +++ b/archiso/airootfs/etc/grub.d/40_custom @@ -0,0 +1,15 @@ +#!/bin/sh +exec tail -n +3 $0 +# This file provides an easy way to add custom menu entries. Simply type the +# menu entries you want to add after this comment. Be careful not to change +# the 'exec tail' line above. + +menuentry "Restart" --class restart { + echo "System rebooting..." + reboot +} + +menuentry "Shutdown" --class shutdown { + echo "System shutting down..." + halt +} \ No newline at end of file diff --git a/archiso/airootfs/etc/mkinitcpio.d/linux.preset b/archiso/airootfs/etc/mkinitcpio.d/linux.preset index 8e85205..7d1cb33 100644 --- a/archiso/airootfs/etc/mkinitcpio.d/linux.preset +++ b/archiso/airootfs/etc/mkinitcpio.d/linux.preset @@ -1,8 +1,11 @@ -# mkinitcpio preset file for the 'linux' package on archiso +# mkinitcpio preset file for the kernel -PRESETS=('archiso') +#ALL_config='/etc/mkinitcpio.conf' +ALL_kver='/boot/vmlinuz-linux-lts' -ALL_kver='/boot/vmlinuz-linux' -archiso_config='/etc/mkinitcpio.conf.d/archiso.conf' +PRESETS=('default' 'fallback') -archiso_image="/boot/initramfs-linux.img" +default_image="/boot/initramfs-linux-lts.img" + +fallback_image="/boot/initramfs-linux-lts-fallback.img" +fallback_options="-S autodetect" \ No newline at end of file