How to add frugal Puppy to boot menu? - solved

Moderator: Forum moderators

Post Reply
oliverjames
Posts: 18
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 2 times
Been thanked: 5 times

How to add frugal Puppy to boot menu? - solved

Post by oliverjames »

Hello, I'm very impressed with this new (for me) Puppy. I did a frugal install and selected to add its boot instruction to ubuntu (actually Mint). On my machine I boot from an ssd "sdc" which is gpt and boots MX or Mint from Grub that located in MX.

Could someone please help me by explaining how to add a script to the MX boot menu?

It may be something like:
menuentry "Puppy dpupbw64 10.0.4" {
insmod ext2
search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
echo "Loading vmlinuz"
linux /Frugalpup/vmlinuz pmedia=atahd pdrv=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 psubdir=/Frugalpup pfix=fsck,fsckp,trim TZ=CET-1CEST,M3.5.0,M10.5.0/3
if [ -e /Frugalpup/local-initrd.gz ]; then
set local_rd=/Frugalpup/local-initrd.gz
taken for the attached screenshot, but I'm not certain.

Any help would be much appreciated.

Thank you

Attachments
screenshot-3.png
screenshot-3.png (309.95 KiB) Viewed 572 times
Last edited by oliverjames on Mon Mar 04, 2024 11:01 pm, edited 1 time in total.
Clarity
Posts: 3270
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1347 times
Been thanked: 438 times

Re: How to add to boot menu

Post by Clarity »

Post MX's GRUB2 /boot/grub/grub.cfg

oliverjames
Posts: 18
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 2 times
Been thanked: 5 times

Re: How to add to boot menu

Post by oliverjames »

Clarity wrote: Sun Mar 03, 2024 3:37 pm

Post MX's GRUB2 /boot/grub/grub.cfg

Here it is:

Code: Select all

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_gpt
insmod ext2
set root='hd2,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  30c23802-7ed2-4ced-be51-5cb8668bdfab
else
  search --no-floppy --fs-uuid --set=root 30c23802-7ed2-4ced-be51-5cb8668bdfab
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1024x768
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_GB
  insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
set root='hd2,gpt1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  30c23802-7ed2-4ced-be51-5cb8668bdfab
else
  search --no-floppy --fs-uuid --set=root 30c23802-7ed2-4ced-be51-5cb8668bdfab
fi
insmod gfxmenu
insmod png
set theme=($root)/boot/grub/themes/linen/theme.txt
export theme
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'MX 23.2 Libretto' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-30c23802-7ed2-4ced-be51-5cb8668bdfab' {
	load_video
	insmod gzio
	if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
	insmod part_gpt
	insmod ext2
	set root='hd2,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  30c23802-7ed2-4ced-be51-5cb8668bdfab
	else
	  search --no-floppy --fs-uuid --set=root 30c23802-7ed2-4ced-be51-5cb8668bdfab
	fi
	echo	'Loading Linux 6.1.0-18-amd64 ...'
	linux	/boot/vmlinuz-6.1.0-18-amd64 root=UUID=30c23802-7ed2-4ced-be51-5cb8668bdfab ro  quiet splash
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-6.1.0-18-amd64
}
submenu 'Advanced options for MX 23.2 Libretto' $menuentry_id_option 'gnulinux-advanced-30c23802-7ed2-4ced-be51-5cb8668bdfab' {
	menuentry 'MX 23.2 Libretto, with Linux 6.1.0-18-amd64' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-18-amd64-advanced-30c23802-7ed2-4ced-be51-5cb8668bdfab' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  30c23802-7ed2-4ced-be51-5cb8668bdfab
		else
		  search --no-floppy --fs-uuid --set=root 30c23802-7ed2-4ced-be51-5cb8668bdfab
		fi
		echo	'Loading Linux 6.1.0-18-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-18-amd64 root=UUID=30c23802-7ed2-4ced-be51-5cb8668bdfab ro  quiet splash
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-18-amd64
	}
	menuentry 'MX 23.2 Libretto, with Linux 6.1.0-18-amd64 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-18-amd64-init-systemd-30c23802-7ed2-4ced-be51-5cb8668bdfab' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  30c23802-7ed2-4ced-be51-5cb8668bdfab
		else
		  search --no-floppy --fs-uuid --set=root 30c23802-7ed2-4ced-be51-5cb8668bdfab
		fi
		echo	'Loading Linux 6.1.0-18-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-18-amd64 root=UUID=30c23802-7ed2-4ced-be51-5cb8668bdfab ro  quiet splash init=/lib/systemd/systemd
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-18-amd64
	}
	menuentry 'MX 23.2 Libretto, with Linux 6.1.0-18-amd64 (recovery mode)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-6.1.0-18-amd64-recovery-30c23802-7ed2-4ced-be51-5cb8668bdfab' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  30c23802-7ed2-4ced-be51-5cb8668bdfab
		else
		  search --no-floppy --fs-uuid --set=root 30c23802-7ed2-4ced-be51-5cb8668bdfab
		fi
		echo	'Loading Linux 6.1.0-18-amd64 ...'
		linux	/boot/vmlinuz-6.1.0-18-amd64 root=UUID=30c23802-7ed2-4ced-be51-5cb8668bdfab ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-6.1.0-18-amd64
	}
	menuentry 'MX 23.2 Libretto, with Linux 5.10.0-28-amd64' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-28-amd64-advanced-30c23802-7ed2-4ced-be51-5cb8668bdfab' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  30c23802-7ed2-4ced-be51-5cb8668bdfab
		else
		  search --no-floppy --fs-uuid --set=root 30c23802-7ed2-4ced-be51-5cb8668bdfab
		fi
		echo	'Loading Linux 5.10.0-28-amd64 ...'
		linux	/boot/vmlinuz-5.10.0-28-amd64 root=UUID=30c23802-7ed2-4ced-be51-5cb8668bdfab ro  quiet splash
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.10.0-28-amd64
	}
	menuentry 'MX 23.2 Libretto, with Linux 5.10.0-28-amd64 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-28-amd64-init-systemd-30c23802-7ed2-4ced-be51-5cb8668bdfab' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  30c23802-7ed2-4ced-be51-5cb8668bdfab
		else
		  search --no-floppy --fs-uuid --set=root 30c23802-7ed2-4ced-be51-5cb8668bdfab
		fi
		echo	'Loading Linux 5.10.0-28-amd64 ...'
		linux	/boot/vmlinuz-5.10.0-28-amd64 root=UUID=30c23802-7ed2-4ced-be51-5cb8668bdfab ro  quiet splash init=/lib/systemd/systemd
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.10.0-28-amd64
	}
	menuentry 'MX 23.2 Libretto, with Linux 5.10.0-28-amd64 (recovery mode)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-28-amd64-recovery-30c23802-7ed2-4ced-be51-5cb8668bdfab' {
		load_video
		insmod gzio
		if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  30c23802-7ed2-4ced-be51-5cb8668bdfab
		else
		  search --no-floppy --fs-uuid --set=root 30c23802-7ed2-4ced-be51-5cb8668bdfab
		fi
		echo	'Loading Linux 5.10.0-28-amd64 ...'
		linux	/boot/vmlinuz-5.10.0-28-amd64 root=UUID=30c23802-7ed2-4ced-be51-5cb8668bdfab ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-5.10.0-28-amd64
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
if [ "${grub_platform}" == "efi" ]; then
   if [ "${grub_cpu}" == "x86_64" ]; then
true
menuentry "Memory Test (64-bit UEFI)" {
	insmod part_gpt
	insmod ext2
	set root='hd2,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt1 --hint-efi=hd2,gpt1 --hint-baremetal=ahci2,gpt1  30c23802-7ed2-4ced-be51-5cb8668bdfab
	else
	  search --no-floppy --fs-uuid --set=root 30c23802-7ed2-4ced-be51-5cb8668bdfab
	fi
	chainloader	/boot/uefi-mt/mtest-64.efi
}
  fi
fi
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Linux Mint 21.3 Virginia (21.3) (on /dev/sdc4)' --class linuxmint --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-faf4b8d1-1ceb-4b69-8655-c2e40f9862f1' {
	insmod part_gpt
	insmod ext2
	set root='hd2,gpt4'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt4 --hint-efi=hd2,gpt4 --hint-baremetal=ahci2,gpt4  faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
	else
	  search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
	fi
	linux /boot/vmlinuz-5.15.0-97-generic root=UUID=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 ro quiet splash
	initrd /boot/initrd.img-5.15.0-97-generic
}
submenu 'Advanced options for Linux Mint 21.3 Virginia (21.3) (on /dev/sdc4)' $menuentry_id_option 'osprober-gnulinux-advanced-faf4b8d1-1ceb-4b69-8655-c2e40f9862f1' {
	menuentry 'Linux Mint 21.3 Xfce (on /dev/sdc4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-97-generic--faf4b8d1-1ceb-4b69-8655-c2e40f9862f1' {
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt4 --hint-efi=hd2,gpt4 --hint-baremetal=ahci2,gpt4  faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		else
		  search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		fi
		linux /boot/vmlinuz-5.15.0-97-generic root=UUID=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 ro quiet splash
		initrd /boot/initrd.img-5.15.0-97-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 5.15.0-97-generic (on /dev/sdc4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-97-generic--faf4b8d1-1ceb-4b69-8655-c2e40f9862f1' {
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt4 --hint-efi=hd2,gpt4 --hint-baremetal=ahci2,gpt4  faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		else
		  search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		fi
		linux /boot/vmlinuz-5.15.0-97-generic root=UUID=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 ro quiet splash
		initrd /boot/initrd.img-5.15.0-97-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 5.15.0-97-generic (recovery mode) (on /dev/sdc4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-97-generic-root=UUID=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 ro recovery nomodeset dis_ucode_ldr-faf4b8d1-1ceb-4b69-8655-c2e40f9862f1' {
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt4 --hint-efi=hd2,gpt4 --hint-baremetal=ahci2,gpt4  faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		else
		  search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		fi
		linux /boot/vmlinuz-5.15.0-97-generic root=UUID=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 ro recovery nomodeset dis_ucode_ldr
		initrd /boot/initrd.img-5.15.0-97-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 5.15.0-94-generic (on /dev/sdc4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-94-generic--faf4b8d1-1ceb-4b69-8655-c2e40f9862f1' {
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt4 --hint-efi=hd2,gpt4 --hint-baremetal=ahci2,gpt4  faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		else
		  search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		fi
		linux /boot/vmlinuz-5.15.0-94-generic root=UUID=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 ro quiet splash
		initrd /boot/initrd.img-5.15.0-94-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 5.15.0-94-generic (recovery mode) (on /dev/sdc4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-94-generic-root=UUID=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 ro recovery nomodeset dis_ucode_ldr-faf4b8d1-1ceb-4b69-8655-c2e40f9862f1' {
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt4 --hint-efi=hd2,gpt4 --hint-baremetal=ahci2,gpt4  faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		else
		  search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		fi
		linux /boot/vmlinuz-5.15.0-94-generic root=UUID=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 ro recovery nomodeset dis_ucode_ldr
		initrd /boot/initrd.img-5.15.0-94-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 5.15.0-91-generic (on /dev/sdc4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-91-generic--faf4b8d1-1ceb-4b69-8655-c2e40f9862f1' {
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt4 --hint-efi=hd2,gpt4 --hint-baremetal=ahci2,gpt4  faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		else
		  search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		fi
		linux /boot/vmlinuz-5.15.0-91-generic root=UUID=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 ro quiet splash
		initrd /boot/initrd.img-5.15.0-91-generic
	}
	menuentry 'Linux Mint 21.3 Xfce, with Linux 5.15.0-91-generic (recovery mode) (on /dev/sdc4)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.15.0-91-generic-root=UUID=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 ro recovery nomodeset dis_ucode_ldr-faf4b8d1-1ceb-4b69-8655-c2e40f9862f1' {
		insmod part_gpt
		insmod ext2
		set root='hd2,gpt4'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd2,gpt4 --hint-efi=hd2,gpt4 --hint-baremetal=ahci2,gpt4  faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		else
		  search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
		fi
		linux /boot/vmlinuz-5.15.0-91-generic root=UUID=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 ro recovery nomodeset dis_ucode_ldr
		initrd /boot/initrd.img-5.15.0-91-generic
	}
}

### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
Clarity
Posts: 3270
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1347 times
Been thanked: 438 times

Re: How to add to boot menu

Post by Clarity »

Add

Code: Select all

menuentry "BookwormPup64 10.0.5" {
    linux /vmlinuz pmedia=cd pfix=fsck 
    if [ -e /ucode.cpio ]; then
      initrd /ucode.cpio /initrd.gz
    else
      initrd /initrd.gz
    fi
}

Replace the linux line with your linux line from your earlier post
/Frugalpup/vmlinuz pmedia=atahd pdrv=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 psubdir=/Frugalpup pfix=fsck,fsckp,trim TZ=CET-1CEST,M3.5.0,M10.5.0/3

User avatar
fredx181
Posts: 2561
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 274 times
Been thanked: 993 times
Contact:

Re: How to add frugal Puppy to boot menu?

Post by fredx181 »

To add to @Clarity's post. Perhaps add also : search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
So then becomes: (if the UUID is correct where the location of the puppy files are) :

Code: Select all

menuentry "BookwormPup64 10.0.5" {
    search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
    linux /vmlinuz pmedia=cd pfix=fsck 
    if [ -e /ucode.cpio ]; then
      initrd /ucode.cpio /initrd.gz
    else
      initrd /initrd.gz
    fi
}

Don't know really if if...else... fi code works that way with GRUB2 (never tried).

Or if your Puppy files are in "Frugalpup" (as you seem indicated), perhaps:

Code: Select all

menuentry "Puppy dpupbw64 10.0.4" {
insmod ext2
search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
echo "Loading vmlinuz"
linux /Frugalpup/vmlinuz pmedia=atahd pdrv=faf4b8d1-1ceb-4b69-8655-c2e40f9862f1 psubdir=/Frugalpup pfix=fsck,fsckp,trim TZ=CET-1CEST,M3.5.0,M10.5.0/3
initrd /Frugalpup//initrd.gz
}

Just hints what could be logical, don't know enough of your situation though.

User avatar
bigpup
Moderator
Posts: 6268
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 732 times
Been thanked: 1292 times

Re: How to add frugal Puppy to boot menu?

Post by bigpup »

I think the boot loader that is actually being used is the one Mxmint installed.
If it was the last install you did it probably is.

By the statements at the start of your grub.cfg:

DO NOT EDIT THIS FILE
#

It is automatically generated by grub-mkconfig using templates

from /etc/grub.d and settings from /etc/default/grub

These other files may be the place to put the entry to boot BookwormPup64 :idea:

Post what is in these locations probably in /etc/default/grub

In /etc/default/grub look for a 40_custom file that is usually what needs to be edited.
That is usually the settings, but the other location has templates that get used, if the other OS auto-updates the boot loader.
:idea:

The problem is these other Linux OS's setup their own version of how they use grub2 boot loader.
Their own specific grub.cfg file and where it is located and how it gets configured.
Most of them use this method to add entries to the boot loader.

You can add additional custom menu entries by editing /etc/grub.d/40_custom and re-generating /boot/grub/grub.cfg. Or you can create /boot/grub/custom.cfg and add them there. Changes to /boot/grub/custom.cfg do not require re-running grub-mkconfig, since /etc/grub.d/41_custom adds the necessary source statement to the generated configuration file.

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
mikewalsh
Moderator
Posts: 5575
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 570 times
Been thanked: 1681 times

Re: How to add frugal Puppy to boot menu?

Post by mikewalsh »

Guys:-

Wouldn't the simplest & easiest way be to install Puppy to a good-quality flash drive.......followed by going into the BIOS/UEFI/whatever and setting the device boot order to be USB first, internal drive second?

That way, you plug your Puppy flash drive in, it'll boot from that.......boot without it, whatever's on the internal drive will fire up instead. Nice'n'simple, no? :D

I know it's technically "nicer" to have Menu entries in all the correct places, but, well; there's no point making life harder than ya got to.....

Just my two-penn'orth....FWIW.

(shrug...)

Mike. ;)

Last edited by mikewalsh on Mon Mar 04, 2024 11:02 am, edited 2 times in total.
Reason: Edited to read better....

Puppy "stuff" ~ MORE Puppy "stuff" ~ ....and MORE! :D
_______________________________________________________

Image

williwaw
Posts: 1594
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 145 times
Been thanked: 291 times

Re: How to add frugal Puppy to boot menu?

Post by williwaw »

I would try bigpups suggested /boot/grub/custom.cfg method

search --no-floppy --fs-uuid --set=root 30c23802-7ed2-4ced-be51-5cb8668bdfab
if your puppy files are in the /Puppy directory next to the MX23 dir

also replace /Frugalpup naming with /Puppy if.....
/Puppy is actually the name of the install dir

oliverjames
Posts: 18
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 2 times
Been thanked: 5 times

Re: How to add frugal Puppy to boot menu?

Post by oliverjames »

Thank you all for your replies, I realise that what I should have asked is, "How do I get the Puppy boot instruction, placed in the EFI directory when I did a frugal install, to be registered on the boot menu that was last created in MX-Linux"? If anyone can point me to an explanation of how the modern uefi boot system works I'll read it.

Before the arrival of uefi I used to take the script generated by Dos4Grub and edit Custom 40 as I recorded in this post viewtopic.php?t=988 . At that time I was using an old laptop with no uefi boot. Now my machines are more recent and are all gpt and uefi.

With regard to MikeWalsh's comment. That is an excellent option. It worked on my former laptop (ACER 4820T - msdos / no uefi) and as I have an external SSD with a full Linux install on it that was a perfect solution that avoided taking my laptop when traveling.
However my current machines, laptop base workstation and media centre tower, are uefi and hence I have to hold down F12 or F8 and select the boot device. This is currently how I boot BookwormPup64.

Nonetheless it would be far easier to have the option on the (MX) boot menu.

So can I use the Custom 40, update-grub, solution from within MX-linux, adding the script:
menuentry "BookwormPup64 10.0.5" {
search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
linux /Frugalpup/vmlinuz pmedia=cd pfix=fsck
if [ -e /ucode.cpio ]; then
initrd /ucode.cpio /initrd.gz
else
initrd /Frugalpup/initrd.gz
fi
}

I've just tried this again and it works.

By the way, the BookwormPup64 is a very impressive OS and as it is faster than MX or Mint I plan to spend time with it and maybe use it as my daily driver.

Last edited by oliverjames on Mon Mar 04, 2024 10:52 pm, edited 1 time in total.
keniv
Posts: 627
Joined: Mon Jul 13, 2020 2:18 pm
Location: Scotland
Has thanked: 99 times
Been thanked: 65 times

Re: How to add frugal Puppy to boot menu?

Post by keniv »

@oliverjames
Can I ask if you are actually seeing your "menuentry" appear on the screen when you boot up. The reason I ask is that I tried some time ago to boot a frugal puppy together with Mint Linux 21.1 using the version of grub in Mint Linux. I was fairly sure that the boot stanza I entered into /etc/grub.d/40_custom should work or at least show an error but I did not see any boot menu entry when I booted up and so it always booted into Mint. The thread is here viewtopic.php?t=8965. After much searching I found that Mint Linux does not make the boot menu visible by default so even if your "menuentry" is correct you would not see it and so could not select it. I found the way to make the menu visible outlined here https://easylinuxtipsproject.blogspot.c ... b.html#ID9.
I scrolled down to Making the Grub boot menu permanently visible and followed the instructions. After rebooting the boot menu appeared and I was able to boot into a fresh frugal install of the pup. If you're not seeing the boot menu when you boot your machine I think the above might be worth a try. Hope this helps.

Regard,

Ken.

Clarity
Posts: 3270
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1347 times
Been thanked: 438 times

Re: How to add frugal Puppy to boot menu?

Post by Clarity »

oliverjames wrote: Mon Mar 04, 2024 10:46 am

...
So can I use the Custom 40, update-grub, solution from within MX-linux, adding the script:
menuentry "BookwormPup64 10.0.5" {
search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
linux /Frugalpup/vmlinuz pmedia=cd pfix=fsck
if [ -e /ucode.cpio ]; then
initrd /ucode.cpio /initrd.gz
else
initrd /Frugalpup/initrd.gz
fi
}

Not running MX, the short-answer is yes...should work.

Can you post your "upgraded" grub.cfg for review by members here? Or post on MX forum site for review? Expect solution efforts to help.

BTW: What happens when you power-on the PC and it presents the MX selections of boot options? Is the upgrade entry there? What happens when you select it?

oliverjames
Posts: 18
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 2 times
Been thanked: 5 times

Re: How to add frugal Puppy to boot menu?

Post by oliverjames »

keniv wrote: Mon Mar 04, 2024 6:39 pm

@oliverjames
Can I ask if you are actually seeing your "menuentry" appear on the screen when you boot up. The reason I ask is that I tried some time ago to boot a frugal puppy together with Mint Linux 21.1 using the version of grub in Mint Linux. I was fairly sure that the boot stanza I entered into /etc/grub.d/40_custom should work or at least show an error but I did not see any boot menu entry when I booted up and so it always booted into Mint. The thread is here viewtopic.php?t=8965. After much searching I found that Mint Linux does not make the boot menu visible by default so even if your "menuentry" is correct you would not see it and so could not select it. I found the way to make the menu visible outlined here https://easylinuxtipsproject.blogspot.c ... b.html#ID9.
I scrolled down to Making the Grub boot menu permanently visible and followed the instructions. After rebooting the boot menu appeared and I was able to boot into a fresh frugal install of the pup. If you're not seeing the boot menu when you boot your machine I think the above might be worth a try. Hope this helps.

Regard,

Ken.

As you'll see from my edited post I added the script to Custom 40 and ran sudo update-grub from within an MX terminal (first time I tried to be too clever; edited Custom 40 from Bookwormpup64 ten used boot repair in MX - something went wrong).
I rebooted and got a nice MX menu display complete with the Bookwormpup64 entry.

A nice end to the day.

oliverjames
Posts: 18
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 2 times
Been thanked: 5 times

Re: How to add frugal Puppy to boot menu? - solved

Post by oliverjames »

A quick additional post to say thank you for your replies. Running this Bookwormpup64 installation and indeed, exploring the possibilities of the Linux OS in all it's formats is clearly the way to learn.

oliverjames
Posts: 18
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 2 times
Been thanked: 5 times

Re: How to add frugal Puppy to boot menu?

Post by oliverjames »

Clarity wrote: Mon Mar 04, 2024 8:14 pm
oliverjames wrote: Mon Mar 04, 2024 10:46 am

...
So can I use the Custom 40, update-grub, solution from within MX-linux, adding the script:
menuentry "BookwormPup64 10.0.5" {
search --no-floppy --fs-uuid --set=root faf4b8d1-1ceb-4b69-8655-c2e40f9862f1
linux /Frugalpup/vmlinuz pmedia=cd pfix=fsck
if [ -e /ucode.cpio ]; then
initrd /ucode.cpio /initrd.gz
else
initrd /Frugalpup/initrd.gz
fi
}

Not running MX, the short-answer is yes...should work.

Can you post your "upgraded" grub.cfg for review by members here? Or post on MX forum site for review? Expect solution efforts to help.

BTW: What happens when you power-on the PC and it presents the MX selections of boot options? Is the upgrade entry there? What happens when you select it?

It does work, thank you.

dancytron
Posts: 653
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 422 times
Been thanked: 190 times

Re: How to add frugal Puppy to boot menu? - solved

Post by dancytron »

What kind of an MX install did you start with?

oliverjames
Posts: 18
Joined: Tue Sep 22, 2020 4:21 pm
Has thanked: 2 times
Been thanked: 5 times

Re: How to add frugal Puppy to boot menu? - solved

Post by oliverjames »

dancytron wrote: Sun Mar 10, 2024 10:10 pm

What kind of an MX install did you start with?

It was a standard install to my boot ssd. MX 23.1, gpt, root, swap and home partitions.

dancytron
Posts: 653
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 422 times
Been thanked: 190 times

Re: How to add frugal Puppy to boot menu? - solved

Post by dancytron »

oliverjames wrote: Mon Mar 11, 2024 7:59 am
dancytron wrote: Sun Mar 10, 2024 10:10 pm

What kind of an MX install did you start with?

It was a standard install to my boot ssd. MX 23.1, gpt, root, swap and home partitions.

Thanks.

I tried to do it on an MX USB stick, but it didn't work. With the custom.cfg method, the entries appeared but grub couldnt' see the partition and it timed out. I'll try a regular install.

User avatar
bigpup
Moderator
Posts: 6268
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 732 times
Been thanked: 1292 times

Re: How to add frugal Puppy to boot menu? - solved

Post by bigpup »

If you are booting from a USB stick install.

In the boot menu entry make sure to make the pmedia= command be pmedia=usbflash

Puppy boots slightly differently using that pmedia= command.

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

dancytron
Posts: 653
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 422 times
Been thanked: 190 times

Re: How to add frugal Puppy to boot menu? - solved

Post by dancytron »

bigpup wrote: Mon Mar 11, 2024 2:44 pm

If you are booting from a USB stick install.

In the boot menu entry make sure to make the pmedia= command be pmedia=usbflash

Puppy boots slightly differently using that pmedia= command.

I did that. It's something about the [very complicated] grub setup MX uses. Debian Dog didn't work either.

edit: Debian Dog does work. will report back

Post Reply

Return to “BookwormPup”