grub2config-2.06-13+deb12u1

Moderator: Forum moderators

Post Reply
User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

grub2config-2.06-13+deb12u1

Post by Sofiya »

grub2config-2.06-13+deb12u1

My beautiful bootloader
https://github.com/sofijacom/grub2confi ... -u1.tar.xz

notice:
Forgot to put " grldr " in " /boot/grub/grldr "
repacked

Attachments
splash.jpg
splash.jpg (45.26 KiB) Viewed 2238 times
Last edited by Sofiya on Sun Sep 22, 2024 8:19 pm, edited 4 times in total.

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

notice:
Forgot to put " grldr " in " /boot/grub/grldr "
repacked

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

My grub.cfg

Code: Select all

insmod font
insmod keylayouts
insmod part_acorn
insmod part_amiga
insmod part_apple
insmod part_bsd
insmod part_dfly
insmod part_dvh
insmod part_gpt
insmod part_msdos
insmod part_plan
insmod part_sun
insmod part_sunpc

export bootlang
export keyboard
export timezone
export hwclock
export def_bootlang
export def_keyboard
export def_timezone

set gfxmode=800x600,auto # 1280x1024,1024x768,800x600,640x480 possible value
set gfxpayload=keep

insmod efi_gop
insmod efi_uga

insmod all_video
insmod video_bochs
insmod video_cirrus
insmod gfxterm
insmod png
insmod jpeg
terminal_output gfxterm

insmod ext2
insmod f2fs
insmod ntfs
insmod exfat

insmod loopback
insmod iso9660
insmod udf

background_image /boot/splash.png

set default=0
set timeout=10
set fallback=1

# https://help.ubuntu.com/community/Grub2/Displays
set menu_color_normal='light-gray/black'
set menu_color_highlight='black/cyan'
# text no sel/fond ecran
set color_normal='light-green/black' 

if [ $grub_platform = 'efi' ]; then
  loadfont /boot/grub/fonts/terminus-b18.pf2
  set gfxmode=auto
  terminal_output gfxterm
fi

insmod play
play 960 440 1 0 4 440 1

menuentry "KLV-plasma-KDE-CE-1.2" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLV-plasma-KDE-CE-1.2/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLV-plasma-KDE-CE-1.2 w_changes=RAM2
  initrd /KLV-plasma-KDE-CE-1.2/initrd.gz
}
menuentry "KLA-Manjaro-Openbox-CE-1.0" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLA-Manjaro-Openbox-CE-1.0/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLA-Manjaro-Openbox-CE-1.0 w_changes=RAM2
  initrd /KLA-Manjaro-Openbox-CE-1.0/initrd.gz
}
menuentry "KLA-OT2baseCE-3.0 RAM2" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLA-OT2baseCE-3.0/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLA-OT2baseCE-3.0 w_changes1=RAM2
  initrd /KLA-OT2baseCE-3.0/initrd.gz
}
menuentry "KLA-Hyprland40CE" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLA-Hyprland40CE/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLA-Hyprland40CE w_changes=RAM2
  initrd /KLA-Hyprland40CE/initrd.gz
} 
menuentry "Puppy vanilladpup 10.0.40 - Copy SFS files to RAM" {
  insmod ext2
  search --no-floppy --fs-uuid --set=root fbb65611-fb5c-4b0c-8f21-331dabc54d23
  echo "Loading vmlinuz"
  linux /Puppy-vanilladpup-10.0.40/vmlinuz net.ifnames=0 pmedia=usbhd pdrv=fbb65611-fb5c-4b0c-8f21-331dabc54d23 psubdir=/Puppy-vanilladpup-10.0.40 pfix=fsck TZ=MSK-3
  echo "Loading initrd.gz"
  initrd /Puppy-vanilladpup-10.0.40/ucode.cpio /Puppy-vanilladpup-10.0.40/initrd.gz
}
menuentry "KLV-Hyprland39CE" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLV-Hyprland39CE/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLV-Hyprland39CE w_changes=RAM2
  initrd /KLV-Hyprland39CE/initrd.gz
}
menuentry "KLV-Hyprland-Sway39" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLV-Hyprland-Sway39/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLV-Hyprland-Sway39 w_changes=RAM2
  initrd /KLV-Hyprland-Sway39/initrd.gz
}
menuentry "KLV-Bspwm-1.5 RAM2" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLV-Bspwm-1.5/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLV-Bspwm-1.5 w_changes=RAM2 
  initrd /KLV-Bspwm-1.5/initrd.gz
}
menuentry "KLF-Rawhide-CE RAM2" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLF-Rawhide-CE/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLF-Rawhide-CE w_changes=RAM2 selinux=0
  initrd /KLF-Rawhide-CE/initrd.gz
}
menuentry "KLV-Airedale-sr14" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLV-Airedale-sr14/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLV-Airedale-sr14 w_changes=RAM2
  initrd /KLV-Airedale-sr14/initrd.gz
}
menuentry "Bookworm Pup64 10.0.4 - Don't copy SFS files to RAM" {
  insmod ext2
  search --no-floppy --fs-uuid --set=root fbb65611-fb5c-4b0c-8f21-331dabc54d23
  echo "Loading vmlinuz"
  linux /BookwormPup64-10.0.4/vmlinuz net.ifnames=0 pmedia=usbhd pdrv=fbb65611-fb5c-4b0c-8f21-331dabc54d23 psubdir=/BookwormPup64-10.0.4 pfix=fsck,fsckp TZ=MSK-3
  echo "Loading initrd.gz"
  initrd /BookwormPup64-10.0.4/initrd.gz
}
menuentry "F96-CE_4 - Copy SFS files to RAM" {
  insmod ext2
  search --no-floppy --fs-uuid --set=root fbb65611-fb5c-4b0c-8f21-331dabc54d23
  echo "Loading vmlinuz"
  linux /F96-CE_4/vmlinuz net.ifnames=0 pmedia=usbhd pdrv=fbb65611-fb5c-4b0c-8f21-331dabc54d23 psubdir=/F96-CE_4 pfix=fsck,fsckp TZ=MSK-3
  echo "Loading initrd.gz"
  initrd /F96-CE_4/initrd.gz
}
menuentry "KLV-AwesomeCE-1.3" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLV-AwesomeCE-1.3/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLV-AwesomeCE-1.3 w_changes=RAM2
  initrd /KLV-AwesomeCE-1.3/initrd.gz
}
menuentry "KLV-Spectrwm-pulse" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLV-Spectrwm-pulse/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLV-Spectrwm-pulse w_changes=RAM2
  initrd /KLV-Spectrwm-pulse/initrd.gz
}
menuentry "KLV-spectrwm-pipewire" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLV-spectrwm-pipewire/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLV-spectrwm-pipewire w_changes=RAM2
  initrd /KLV-spectrwm-pipewire/initrd.gz
}
menuentry "Puppy slacko64 8.2.1" {
  insmod ext2
  search --no-floppy --fs-uuid --set=root fbb65611-fb5c-4b0c-8f21-331dabc54d23
  echo "Loading vmlinuz"
  linux /slacko64/vmlinuz net.ifnames=0 pmedia=usbhd pdrv=fbb65611-fb5c-4b0c-8f21-331dabc54d23 psubdir=/slacko64 pfix=fsck,fsckp TZ=MSK-3
  echo "Loading initrd.gz"
  initrd /slacko64/initrd.gz
}
menuentry "easyos 5.6.5 - Copy SFS files to RAM" {
  insmod ext2
  search --no-floppy --fs-uuid --set=root fbb65611-fb5c-4b0c-8f21-331dabc54d23
  echo "Loading vmlinuz"
  linux /easyos-5.6.5/vmlinuz pmedia=usbhd wkg_uuid=fbb65611-fb5c-4b0c-8f21-331dabc54d23 wkg_dir=easyos-5.6.5/ 
  echo "Loading initrd"
  initrd /easyos-5.6.5/initrd
}
menuentry "KLA-XFCEbase-rc4" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLA-XFCEbase-rc4/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLA-XFCEbase-rc4 w_changes1=RAM2
  initrd /KLA-XFCEbase-rc4/initrd.gz
}
menuentry "KLU-jam-XFCEbase-1.1" {
  insmod ext2
  search --no-floppy --fs-uuid --set fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /KLU-jam-XFCEbase-1.1/vmlinuz w_bootfrom=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23=/KLU-jam-XFCEbase-1.1 w_changes1=RAM2
  initrd /KLU-jam-XFCEbase-1.1/initrd.gz
}
menuentry "Fossa_Dog" {
  echo "Fossa_Dog on sda2 ..."
  search --no-floppy --fs-uuid --set=root fbb65611-fb5c-4b0c-8f21-331dabc54d23
  linux /FossaDog/casper/vmlinuz from=/FossaDog noauto changes=/FossaDog/casper/changes
  initrd /FossaDog/casper/initrd1.xz
}
if [ $grub_platform = 'efi' ]; then
  menuentry "System BIOS setup" {
    fwsetup
  }
fi
menuentry "Shutdown computer" {
  halt
}
menuentry "Reboot computer" {
  reboot
}
Attachments
grub.cfg.false.gz
(7.36 KiB) Downloaded 30 times

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

grub2config-2.06-13+deb12u1 ( EFI ) theme ( kl-live ) added to bootloader

Code: Select all

set theme=/boot/grub/theme/kl-live/theme.txt

My super loader with a beautiful theme :thumbup: :ugeek:
Looks great ;)

Attachments
logo.png
logo.png (20.1 KiB) Viewed 2096 times
IMG0113A-fotor-2024091017136.png
IMG0113A-fotor-2024091017136.png (119.75 KiB) Viewed 2098 times
IMG0111A-fotor-20240910171216.png
IMG0111A-fotor-20240910171216.png (135.89 KiB) Viewed 2098 times

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

Grub2config-2.03

Now it's on my hard drive :thumbup:
grub.cfg needs to be edited after (line 96 "# KL-Linux"), all my "OS" are listed there

https://github.com/sofijacom/grub2confi ... /grub-2.03

Updated 09.14.2024

Attachments
IMG0114A-fotor-2024091020832.png
IMG0114A-fotor-2024091020832.png (134.77 KiB) Viewed 2082 times
Last edited by Sofiya on Sat Sep 14, 2024 1:47 pm, edited 1 time in total.

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

linuxmint-22-mate-64bit.iso

Download (linuxmint-22-mate-64bit.iso without extracting ISO)
Place (linuxmint-22-mate-64bit.iso) in the ext4 section. Add the following lines to "grub.cfg"

Code: Select all

menuentry "linuxmint-22-mate-64bit.iso" {
search --set -f "/linuxmint-22-mate-64bit.iso"
loopback loop "/linuxmint-22-mate-64bit.iso"
linux (loop)/casper/vmlinuz file=/cdrom/preseed/linuxmint.seed boot=casper locale=en_US bootkbd=us console-setup/layoutcode=us console-setup/variantcode= iso-scan/filename=/linuxmint-22-mate-64bit.iso noprompt quiet splash --
initrd (loop)/casper/initrd.lz
}
Attachments
Снимок экрана в 2024-09-11 18-22-50.png
Снимок экрана в 2024-09-11 18-22-50.png (154.02 KiB) Viewed 1957 times
Last edited by Sofiya on Thu Sep 12, 2024 2:30 pm, edited 2 times in total.

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

Clarity
Posts: 4244
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1817 times
Been thanked: 571 times

Re: grub2config-2.06-13+deb12u1

Post by Clarity »

Hello @Sofiya
I think you saw this newer version on the forum. @rockedge is working toward integration in the KLs.

FYI

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

neon-user-20240905-0713.iso

Download (neon-user-20240905-0713.iso without extracting ISO)
Place (neon-user-20240905-0713.iso) in the ext4 section. Add the following lines to "grub.cfg"

root=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23 --- replace with your own

Code: Select all

menuentry "neon-user-20240905-0713.iso" {
search --set -f "/neon-user-20240905-0713.iso"
loopback loop "/neon-user-20240905-0713.iso"
linux (loop)/casper/vmlinuz root=UUID=fbb65611-fb5c-4b0c-8f21-331dabc54d23 file=/cdrom/preseed/ubuntu.seed maybe-ubiquity debian-installer/language=ru keyboard-configuration/layoutcode=us  iso-scan/filename=/neon-user-20240905-0713.iso boot=casper noprompt quiet splash --
initrd (loop)/casper/initrd
}
Attachments
Screenshot_20240912_135812.png
Screenshot_20240912_135812.png (240.69 KiB) Viewed 1957 times

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

manjaro-kde-24.0.7-240821-linux69.iso

Download (manjaro-kde-24.0.7-240821-linux69.iso without extracting ISO)
Place (manjaro-kde-24.0.7-240821-linux69.iso) in the ext4 section. Add the following lines to "grub.cfg"

Code: Select all

menuentry "Manjaro-kde.iso" {
iso_path="/manjaro-kde-24.0.7-240821-linux69.iso"
export iso_path
search --set=root --file $iso_path
probe -u -s rootuuid $root
export rootuuid
loopback loop $iso_path
root=(loop)
configfile /boot/grub/loopback.cfg
loopback --delete loop
}
Attachments
plasma.png
plasma.png (88.06 KiB) Viewed 1955 times

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

BookwormPup64_10.0.7.iso

Here is a grub2 boot entry that works for me for ISO files that support 'loopback.cfg':
The image is located on the EXT4 partition
The save is saved in the same section in a folder with my name ( dpupbw64save-Sofiya )

Code: Select all

#####grub.cfg (BOOT from ISO)
menuentry "BookwormPup64_10.0.7.iso" {
iso_path="/BookwormPup64_10.0.7.iso"
export iso_path
search --set=root --file $iso_path
probe -u -s rootuuid $root
export rootuuid
loopback loop $iso_path
root=(loop)
configfile /boot/grub/loopback.cfg
loopback --delete loop
}
Attachments
Снимок экрана.png
Снимок экрана.png (183.38 KiB) Viewed 1928 times

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

Loading KL-ISO using the example of "KLA-Manjaro-Openbox-CE-1.1.iso"

To download (KLA-Manjaro-Openbox-CE-1.1.iso) I decided to create a folder called (KLA-Manjaro-C) in which we will place our ISO.
also a script "iso_grubconfig" was written which will create boot lines for "grub.cfg" . in a file called " iso_grub_config.txt "

note:
before it was packed into ISO (KLA-Manjaro-Openbox-CE-1.1.iso)
in /boot/grub/loopback.cfg lines were added to select boot with saving

in loopback.cfg

Code: Select all

### loopback.cfg (BOOT from ISO):
menuentry "${distname}-${revision} (RAM2 save on demand BOOT from ISO)" {
    linux /vmlinuz w_bootfrom=${iso_path} w_changes=RAM2 net.ifnames=0
    initrd /initrd.gz
}

### loopback.cfg (BOOT from ISO):
menuentry "${distname}-${revision} (RAM2 save persistence BOOT from ISO)" {
    linux /vmlinuz w_bootfrom=${iso_path} w_changes1=RAM2 net.ifnames=0
    initrd /initrd.gz
}

loopback.cfg

Code: Select all

set distname=KLA-Manjaro-Openbox-CE
set revision=1.1
set savepart=Persistence
set savedir=Sessions
set bootlabel=SG2D

loadfont /boot/grub/fonts/terminus-b18.pf2

# https://help.ubuntu.com/community/Grub2/Displays
set menu_color_normal='light-gray/black'
set menu_color_highlight='black/cyan'
# text no sel/fond ecran
set color_normal='light-green/black'


### loopback.cfg (BOOT from ISO):
menuentry "${distname}-${revision} (RAM2 save on demand BOOT from ISO)" {
    linux /vmlinuz w_bootfrom=${iso_path} w_changes=RAM2 net.ifnames=0
    initrd /initrd.gz
}

### loopback.cfg (BOOT from ISO):
menuentry "${distname}-${revision} (RAM2 save persistence BOOT from ISO)" {
    linux /vmlinuz w_bootfrom=${iso_path} w_changes1=RAM2 net.ifnames=0
    initrd /initrd.gz
}

### loopback.cfg: All work with SG2D
menuentry "${distname}-${revision} (RAM0 no save persistence)" {
    linux /vmlinuz w_bootfrom=${iso_path} w_changes=RAM0 net.ifnames=0
    initrd /initrd.gz
}

menuentry "${distname}-${revision} (RAM2 save on demand to ${savepart}_${savedir})" {
    linux /vmlinuz w_bootfrom=${iso_path} w_changes=LABEL=${savepart}=/${savedir}/${distname}-${revision} w_changes1=RAM2 net.ifnames=0
    initrd /initrd.gz
}

menuentry "${distname}-${revision} (direct saves to ${savepart}_${savedir})" {
    linux /vmlinuz w_bootfrom=${iso_path} w_changes=LABEL=${savepart}=/${savedir}/${distname}-${revision} net.ifnames=0
    initrd /initrd.gz
}

menuentry "${distname}-${revision} (RAM2 save on demand to ${bootlabel}_${savedir})" {
    linux /vmlinuz w_bootfrom=${iso_path} w_changes=LABEL=${bootlabel}=/${savedir}/${distname}-${revision} w_changes1=RAM2 net.ifnames=0
    initrd /initrd.gz
}

menuentry "${distname}-${revision} (direct saves to ${bootlabel}_${savedir})" {
    linux /vmlinuz w_bootfrom=${iso_path} w_changes=LABEL=${bootlabel}=/${savedir}/${distname}-${revision} net.ifnames=0
    initrd /initrd.gz
}

menuentry "Shutdown" {
	halt
}

menuentry "Reboot" {
	reboot
}
Attachments
iso_grubconfig.false.gz
(1.58 KiB) Downloaded 26 times
Screenshot(1).png
Screenshot(1).png (187.5 KiB) Viewed 1877 times
Снимок экрана.png
Снимок экрана.png (214.87 KiB) Viewed 1877 times
Last edited by Sofiya on Fri Sep 13, 2024 10:24 pm, edited 10 times in total.

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

I am happy with the result and the work done. :thumbup: :ugeek:

Attachments
Снимок экрана(1).png
Снимок экрана(1).png (534.06 KiB) Viewed 1871 times

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
rockedge
Site Admin
Posts: 7047
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3160 times
Been thanked: 2946 times
Contact:

Re: grub2config-2.06-13+deb12u1

Post by rockedge »

@Sofiya Excellent!

Code: Select all

menuentry "${distname}-${revision} (${bootlabel} RAM2 persistence)" {
 linux /vmlinuz w_bootfrom=/${distname}-${revision}.iso w_changes=RAM2 net.ifnames=0
 initrd /initrd.gz
}

What does the menu.lst boot stanza look like?

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

rockedge wrote: Fri Sep 13, 2024 1:46 pm

@Sofiya Excellent!

Code: Select all

menuentry "${distname}-${revision} (${bootlabel} RAM2 persistence)" {
 linux /vmlinuz w_bootfrom=/${distname}-${revision}.iso w_changes=RAM2 net.ifnames=0
 initrd /initrd.gz
}

What does the menu.lst boot stanza look like?

menu.lst

Code: Select all

set distname=KLA-Manjaro-Openbox-CE
set revision=1.1
set savepart=Persistence
set savedir=Sessions
set bootlabel=QEMU

#
# menu.lst
#
#color NORMAL            HIGHLIGHT       HELPTEXT       HEADING
#       f/b               f/b              f/b           f/b
color light-gray/black yellow/red cyan/black light-blue/black

timeout 10
default 0

# 0.4.6a
graphicsmode -1 800 600
splashimage /boot/splash.jpg

# FOR BOOTING FROM CDROM:

title %distname%-%revision% (LABEL, RAM0 no persistence)
 kernel /vmlinuz w_bootfrom=LABEL=%distname%=/ w_changes=RAM0 net.ifnames=0
 initrd /initrd.gz
  
title %distname%-%revision% (LABEL, RAM2 save on demand to %savepart%_%savedir%)
 kernel /vmlinuz w_bootfrom=LABEL=%distname%=/ w_changes=LABEL=%savepart%=/%savedir%/%distname%-%revision% w_changes1=RAM2 net.ifnames=0
 initrd /initrd.gz 

title %distname%-%revision% (LABEL, direct saves to %savepart%_%savedir%)
 kernel /vmlinuz w_bootfrom=LABEL=%distname%=/ w_changes=LABEL=%savepart%=/%savedir%/%distname%-%revision% net.ifnames=0
 initrd /initrd.gz

title %distname%-%revision% (LABEL, RAM2 save on demand to sda1/%savedir%)
 kernel /vmlinuz w_bootfrom=LABEL=%distname%=/ w_changes=/mnt/sda1/%savedir%/%distname%-%revision% w_changes1=RAM2 net.ifnames=0
 initrd /initrd.gz

title %distname%-%revision% (LABEL, direct saves to sda1/%savedir%)
 kernel /vmlinuz w_bootfrom=LABEL=%distname%=/ w_changes=/mnt/sda1/%savedir%/%distname%-%revision% net.ifnames=0
 initrd /initrd.gz

title %distname%-%revision% (LABEL, RAM2 save on demand to %bootlabel%_%savedir%)
 kernel /vmlinuz w_bootfrom=LABEL=%distname%=/ w_changes=LABEL=%bootlabel%=/%savedir%/%distname%-%revision% w_changes1=RAM2 net.ifnames=0
 initrd /initrd.gz 

title %distname%-%revision% (LABEL, direct saves to %bootlabel%_%savedir%)
 kernel /vmlinuz w_bootfrom=LABEL=%distname%=/ w_changes=LABEL=%bootlabel%=/%savedir%/%distname%-%revision% net.ifnames=0
 initrd /initrd.gz
 
# EXTRAS, for example, /mnt/sr0 w_copy2ram:

title %distname%-%revision% (/mnt/sr0 RAM0 no persistence w_copy2ram)
 kernel /vmlinuz w_bootfrom=/mnt/sr0 w_changes=RAM0 net.ifnames=0 w_copy2ram
 initrd /initrd.gz
 
title %distname%-%revision% (/mnt/sr0 RAM2 save on demand to %savepart%_%savedir% w_copy2ram)
 kernel /vmlinuz w_bootfrom=/mnt/sr0  w_changes=LABEL=%savepart%=/%savedir%/%distname%-%revision% w_changes1=RAM2 net.ifnames=0 w_copy2ram
 initrd /initrd.gz

title %distname%-%revision% (/mnt/sr0 direct saves to %savepart%_%savedir% w_copy2ram)
 kernel /vmlinuz w_bootfrom=/mnt/sr0  w_changes=LABEL=%savepart%=/%savedir%/%distname%-%revision% net.ifnames=0 w_copy2ram
 initrd /initrd.gz
 
title %distname%-%revision% (/mnt/sr0 RAM2 save on demand to sda1/%savedir% w_copy2ram)
 kernel /vmlinuz w_bootfrom=/mnt/sr0  w_changes=/mnt/sda1/%savedir%/%distname%-%revision% w_changes1=RAM2 net.ifnames=0 w_copy2ram
 initrd /initrd.gz

title %distname%-%revision% (/mnt/sr0 direct saves to sda1/%savedir% w_copy2ram)
 kernel /vmlinuz w_bootfrom=/mnt/sr0  w_changes=/mnt/sda1/%savedir%/%distname%-%revision% net.ifnames=0 w_copy2ram
 initrd /initrd.gz
 
title %distname%-%revision% (/mnt/sr0 RAM2 save on demand to %bootlabel%_%savedir% w_copy2ram)
 kernel /vmlinuz w_bootfrom=/mnt/sr0  w_changes=LABEL=%bootlabel%=/%savedir%/%distname%-%revision% w_changes1=RAM2 net.ifnames=0 w_copy2ram
 initrd /initrd.gz

title %distname%-%revision% (/mnt/sr0 direct saves to %bootlabel%_%savedir% w_copy2ram)
 kernel /vmlinuz w_bootfrom=/mnt/sr0  w_changes=LABEL=%bootlabel%=/%savedir%/%distname%-%revision% net.ifnames=0 w_copy2ram
 initrd /initrd.gz
 
title
  root

title Help - Boot Params
  configfile /boot/grub/menu_phelp.lst

title
  root
  
# Boot from Partition Boot Sector

title Boot first hard drive (hd0,0)
  root (hd0,0)
  chainloader +1 || chainloader /grldr || chainloader /bootmngr

title
  root

# additionals

title Grub4Dos commandline\n(for experts only)
  commandline

title Reboot computer
  reboot

title Halt computer
  halt
Attachments
Снимок экрана от 2024-09-13 17-35-09.png
Снимок экрана от 2024-09-13 17-35-09.png (121.53 KiB) Viewed 1849 times
Last edited by Sofiya on Sun Sep 15, 2024 6:11 am, edited 1 time in total.

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
rockedge
Site Admin
Posts: 7047
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3160 times
Been thanked: 2946 times
Contact:

Re: grub2config-2.06-13+deb12u1

Post by rockedge »

looking into including this /boot in KLV-Airedale-sr15 :ugeek: :thumbup2:

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

rockedge wrote: Sat Sep 14, 2024 4:25 pm

looking into including this /boot in KLV-Airedale-sr15 :ugeek: :thumbup2:

This is a good idea as it will allow you to download without unpacking the ISO. :thumbup:

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

rockedge wrote: Sat Sep 14, 2024 4:25 pm

looking into including this /boot in KLV-Airedale-sr15 :ugeek: :thumbup2:

I unpacked yours (KLV-Airedale-sr14). I downloaded the theme for Grub, and wrote down what was needed and packed it again.
https://github.com/sofijacom/KLV-Aireda ... edale-sr14

the test showed everything works :thumbup: :ugeek:

Attachments
Screenshot.png
Screenshot.png (228.44 KiB) Viewed 1740 times
Screenshot(2).png
Screenshot(2).png (171.36 KiB) Viewed 1740 times
Снимок экрана.png
Снимок экрана.png (155.16 KiB) Viewed 1740 times

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

rockedge wrote: Sat Sep 14, 2024 4:25 pm

looking into including this /boot in KLV-Airedale-sr15 :ugeek: :thumbup2:

Note:
Do not put the EFI folder in boot, this is not correct

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
rockedge
Site Admin
Posts: 7047
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3160 times
Been thanked: 2946 times
Contact:

Re: grub2config-2.06-13+deb12u1

Post by rockedge »

@Sofiya Excellent! I could replace the copies of the ISO on the rockedge server and Sourceforge OR we could repackage this as a new KLV-Airedale-sr15 and include the /boot modifications in the post.

I could extract a new Void Linux kernel and update the fie system as well for the sr15 version.

Or should we just use this new sr14 ISO and mention the upgrades to /boot?

In any case this is good stuff! :thumbup:

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

rockedge wrote: Sat Sep 14, 2024 5:59 pm

@Sofiya Excellent! I could replace the copies of the ISO on the rockedge server and Sourceforge OR we could repackage this as a new KLV-Airedale-sr15 and include the /boot modifications in the post.

I could extract a new Void Linux kernel and update the fie system as well for the sr15 version.

Or should we just use this new sr14 ISO and mention the upgrades to /boot?

In any case this is good stuff! :thumbup:

Do it as you think is necessary and understandable for the user ;)

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

rockedge wrote: Sat Sep 14, 2024 5:59 pm

@Sofiya Excellent! I could replace the copies of the ISO on the rockedge server and Sourceforge OR we could repackage this as a new KLV-Airedale-sr15 and include the /boot modifications in the post.

I could extract a new Void Linux kernel and update the fie system as well for the sr15 version.

Or should we just use this new sr14 ISO and mention the upgrades to /boot?

In any case this is good stuff! :thumbup:

I really don't know where to put the script to create lines for booting from ISO, and I need to indicate somewhere that it is for this use

Attachments
iso_grubconfig.gz
(1.58 KiB) Downloaded 28 times

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

Clarity
Posts: 4244
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1817 times
Been thanked: 571 times

Re: grub2config-2.06-13+deb12u1

Post by Clarity »

This thread is very good! It demonstrates a positive effort to move boot operations into a consistent model. Thus users and developers benefit with the consistency that would extend across forum distros;particularly in KLs and PUPs.

Thanks @Sofiya for another interesting pathway as you provide here.

Request for thought from anyone
Over the past 5 years, I have stopped installation of any forum distro, yet, I have been able to boot and use every forum distro. The ISO/IMG files ARE a running OS and the facilities within each running forum distro provides a method for saving their sessions (persistence). As such, this give users a FRUGAL operation of every distro shared over the forum by its developers; without the effort of all the work in extractions reducing errors and issues with of traditional setup.

Over these past years, I have refined my boots for all OSes on any given PC to using a single structure for ALL distros. Whether I use a USB or an internal disk the following standard I employ

  • Done ONLY once creating the boot disk

    1. Create a Ventoy disk

    2. Create a folder on its 1st partition named BOOTISOS

    3. Initially add the SuperGRUB2disc ISO (SG2D) file to BOOTISOS

    And, forevermore, Place ALL distro ISOs or IMG files in BOOTISOS

    This disk allows me to launch and use every forum distro and ISO/IMG files from the Ventoy list.

    If contains SG2D because some (fewer and fewer as time goes on) distros will not boot successfully when launched from Ventoy, but every forum distro boots from SG2D. So for those troublesome distros, usually WoofCEs, I launch SG2D from the Ventoy list and then select the troublesome that will lead to an operational desktop.

    Thus, this arrangement is a download and boot arrangement which has matured over the past 5 years and works for every evaluations I have (along with students/others from time to time)done; with it being a productivity gain because there is no installations and no modifications to the Ventoy disk, ever. This is merely a download and boot to desktop Frugal use for all forum distros.
    .
    There is NO MAINTENANCE to this VENTOY disk
    .

  • Environment - A single Ventoy disk.

    1. Ventoy's partition #1 (Labeled "Ventoy") contains only the BOOTISOS folder where the ISO files are kept

    2. Partition #2 is the PC's boot partition that is NEVER touched as it contains the PC boot instructions that every PC looks for and executes following the PC's POST.

I am willing to seek a way to use the work of this thread in that environment. Maybe there a way to add an option to the Ventoy partition #2 that would lead to this thread's utility; OR maybe some sort of minimal ISO/IMG file that would be visible on the Ventoy list of ISOs (the way that SG2D ISO is used on the disk) OR ???

All Ideas would be appreciated.

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

Note:
If you don't like the theme and logo, just suggest what you want and I'll do it

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

Clarity
Posts: 4244
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1817 times
Been thanked: 571 times

Re: grub2config-2.06-13+deb12u1

Post by Clarity »

Sofiya wrote: Sat Sep 14, 2024 6:50 pm

Note:
If you don't like the theme and logo, just suggest what you want and I'll do it

I have NO problem with either.

I am only considering how I can integrate this thread's contribution into the Boot Launcher I described above.

The post above, from me, is NOT a request for change. Its a concern for any idea to embrace it using the USB structure I show such that it, too, is embraced to launch forum distros and others as well.

Clarity
Posts: 4244
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1817 times
Been thanked: 571 times

Re: grub2config-2.06-13+deb12u1

Post by Clarity »

This is the ONLY item I would like to see as demo here ... an example boot stanza using the boot disk's label where the ISOs are present versus the UUID.

Thus this post (not my above posts) is NOT a request for ANY change, rather, its merely a stanza example.

Thanks @Sofiya for all you have done and have shared in your threads on the forum.

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

grub2config-2.0.2_1.x86_64.xbps Fixed - updated

  • GRUB 2 is a cross-platform operating system boot loader.

https://github.com/sofijacom/grub2confi ... nfig-2.0.2

I collected it as I could, it is installed with my theme "kl-linux" :)
tested on "KLV-Boxer-rc4, KLV-Airedale-sr14, KLA-Manjaro-Openbox-CE-1.0" :ugeek:
was installed on a flash drive

Attachments
Снимок экрана.png
Снимок экрана.png (58.21 KiB) Viewed 1575 times
IMG0113A-fotor-2024091017136.png
IMG0113A-fotor-2024091017136.png (119.76 KiB) Viewed 1583 times
Screenshot.png
Screenshot.png (144.59 KiB) Viewed 1583 times
Last edited by Sofiya on Sun Sep 22, 2024 2:46 pm, edited 2 times in total.

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

grub2config-2.0.3_1.x86_64.xbps

https://github.com/sofijacom/grub2confi ... nfig-2.0.3

writes the boot string KL

Attachments
IMG0113A-fotor-2024091017136.png
IMG0113A-fotor-2024091017136.png (119.77 KiB) Viewed 1378 times

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

notification: Updated 09.24.2024
grub2config-2.0.2_1.x86_64.xbps
https://forum.puppylinux.com/viewtopic. ... 93#p131093

Last edited by Sofiya on Tue Sep 24, 2024 2:18 pm, edited 1 time in total.

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

User avatar
rockedge
Site Admin
Posts: 7047
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 3160 times
Been thanked: 2946 times
Contact:

Re: grub2config-2.06-13+deb12u1

Post by rockedge »

@Sofiya
I changed the Grub2config.desktop file so the menu entry shows up in Applications->System

In Grub2config.desktop changes:

Categories=System;

User avatar
Sofiya
Posts: 2476
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1532 times
Been thanked: 1691 times

Re: grub2config-2.06-13+deb12u1

Post by Sofiya »

rockedge wrote: Sun Sep 22, 2024 9:13 pm

@Sofiya
I changed the Grub2config.desktop file so the menu entry shows up in Applications->System

In Grub2config.desktop changes:

Categories=System;

Thank you! Fixed!

KL-Linux https://sofijacom.github.io
KL LINUX Simple fast free

Post Reply

Return to “KL-Dev_Work”