antiX / MX LinuxThis forum is for the discussion of antiX and MX Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Well, the grub.cfg contains everything, including the lines that I'd like to remove. But since it says do not edit, I haven't changed anything from there, figuring that it wouldn't make a difference anyway since that content is compiled from several sources. That old laptop works flawlessly and boots up lightning fast with a 120GB SSD. Anyway, here's that content:
Code:
#
# 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="1"
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_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
font="/usr/share/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=de_DE
insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=1
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=1
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
insmod png
if background_image /usr/share/backgrounds/MXLinux/grub/MX-Gold1080P.png; then
set color_normal=light-gray/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### 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 18.3 Continuum, mit Linux 4.19.0-9-amd64' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-9-amd64-advanced-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
echo 'Linux 4.19.0-9-amd64 wird geladen …'
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro quiet zswap.zpool=zsmalloc
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.19.0-9-amd64
}
menuentry 'MX 18.3 Continuum, with Linux 4.19.0-9-amd64 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-9-amd64-init-systemd-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
echo 'Linux 4.19.0-9-amd64 wird geladen …'
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro quiet zswap.zpool=zsmalloc init=/lib/systemd/systemd
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.19.0-9-amd64
}
menuentry 'MX 18.3 Continuum, mit Linux 4.15.0-1-amd64' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-advanced-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
echo 'Linux 4.15.0-1-amd64 wird geladen …'
linux /boot/vmlinuz-4.15.0-1-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro quiet zswap.zpool=zsmalloc
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-1-amd64
}
menuentry 'MX 18.3 Continuum, with Linux 4.15.0-1-amd64 (systemd)' --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-init-systemd-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
echo 'Linux 4.15.0-1-amd64 wird geladen …'
linux /boot/vmlinuz-4.15.0-1-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro quiet zswap.zpool=zsmalloc init=/lib/systemd/systemd
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-1-amd64
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_linux_proxy ###
menuentry "MX 18.3 Continuum, mit Linux 4.19.0-9-amd64" --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-9-amd64-advanced-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
echo 'Linux 4.19.0-9-amd64 wird geladen …'
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro quiet zswap.zpool=zsmalloc
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.19.0-9-amd64
}
menuentry "MX 18.3 Continuum, with Linux 4.19.0-9-amd64 (systemd)" --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-9-amd64-init-systemd-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
echo 'Linux 4.19.0-9-amd64 wird geladen …'
linux /boot/vmlinuz-4.19.0-9-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro quiet zswap.zpool=zsmalloc init=/lib/systemd/systemd
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.19.0-9-amd64
}
menuentry "MX 18.3 Continuum, mit Linux 4.15.0-1-amd64" --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-advanced-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
echo 'Linux 4.15.0-1-amd64 wird geladen …'
linux /boot/vmlinuz-4.15.0-1-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro quiet zswap.zpool=zsmalloc
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-1-amd64
}
menuentry "MX 18.3 Continuum, with Linux 4.15.0-1-amd64 (systemd)" --class mx --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.15.0-1-amd64-init-systemd-c39f7fe7-971a-48f7-a04a-fd7a8d21f90b' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
echo 'Linux 4.15.0-1-amd64 wird geladen …'
linux /boot/vmlinuz-4.15.0-1-amd64 root=UUID=c39f7fe7-971a-48f7-a04a-fd7a8d21f90b ro quiet zswap.zpool=zsmalloc init=/lib/systemd/systemd
echo 'Initiale Ramdisk wird geladen …'
initrd /boot/initrd.img-4.15.0-1-amd64
}
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
### END /etc/grub.d/10_linux_proxy ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
if [ "${grub_platform}" == "pc" ]; then
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2 c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
else
search --no-floppy --fs-uuid --set=root c39f7fe7-971a-48f7-a04a-fd7a8d21f90b
fi
linux16 /boot/memtest86+.bin
}
fi
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/21_memtest86+_proxy ###
### END /etc/grub.d/21_memtest86+_proxy ###
### BEGIN /etc/grub.d/30_os-prober ###
### 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/31_uefi-firmware ###
### END /etc/grub.d/31_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 ###
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 631
Rep:
1. You must have created /etc/grub.d/10_linux_proxy - remove it (make a backup if you really want to use it).
2. Remove the kernels and headers you don't need (4.15.0-1-amd64)
3. sudo update-grub
4. Compare the difference between this posted grub.cfg and your new one.
5. Reboot
Thank you, thank you, thank you ... for having the patience to stick with me on this.
That was the solution!
I'm curious though ... if I had just deleted the kernel files that I didn't want, followed by sudo update-grub, would that have achieved the same thing?
Distribution: antiX using herbstluftwm, fluxbox, IceWM and jwm.
Posts: 631
Rep:
Quote:
Originally Posted by LinWinux
Thank you, thank you, thank you ... for having the patience to stick with me on this.
That was the solution!
I'm curious though ... if I had just deleted the kernel files that I didn't want, followed by sudo update-grub, would that have achieved the same thing?
No. The existence of /etc/grub.d/10_linux_proxy was duplicating the entries.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.