• oldkernelsrm

    From Grimble@2:250/1 to All on Sun Feb 6 16:59:40 2022
    Directed to Dave Hodgins:
    Dave, I just used your script to remove old kernels. Normally there's no additional output but this time for each of 4 kernels there was this:

    removing package kernel-desktop-5.15.4-1.mga8-1-1.mga8.x86_64
    2/4: removing kernel-desktop-5.15.4-1.mga8-1-1.mga8.x86_64

    ###################################################################################################
    Usage: grub2-set-default [OPTION] MENU_ENTRY
    Set the default boot menu entry for GRUB.
    This requires setting GRUB_DEFAULT=saved in /etc/default/grub.

    -h, --help print this message and exit
    -V, --version print the version information and exit
    --boot-directory=DIR expect GRUB images under the directory DIR/grub2
    instead of the /boot/grub2 directory

    MENU_ENTRY is a number, a menu item title or a menu item identifier.

    Report bugs to <bug-grub@gnu.org>.

    A bit strange.....
    --
    Grimble
    Registered Linux User #450547
    Machine 'Bach' running Plasma 5.20.4 on 5.15.18-desktop-2.mga8 kernel.
    Mageia release 8 (Official) for x86_64

    --- MBSE BBS v1.0.7.24 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Sun Feb 6 18:45:33 2022
    On Sun, 06 Feb 2022 11:59:40 -0500, Grimble <grimble@nomail.afraid.org> wrote:
    removing package kernel-desktop-5.15.4-1.mga8-1-1.mga8.x86_64
    2/4: removing kernel-desktop-5.15.4-1.mga8-1-1.mga8.x86_64
    ###################################################################################################
    Usage: grub2-set-default [OPTION] MENU_ENTRY
    Set the default boot menu entry for GRUB.
    This requires setting GRUB_DEFAULT=saved in /etc/default/grub.

    -h, --help print this message and exit
    -V, --version print the version information and exit
    --boot-directory=DIR expect GRUB images under the directory DIR/grub2
    instead of the /boot/grub2 directory

    MENU_ENTRY is a number, a menu item title or a menu item identifier.

    Report bugs to <bug-grub@gnu.org>.

    That's coming from update-grub when it's automatically run after removing a kernel using rpm or urpme commands, which the oldkernelrm script generates.

    What's the contents of /etc/default/grub?

    Regards, Dave Hodgins

    --- MBSE BBS v1.0.7.24 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From Grimble@2:250/1 to All on Mon Feb 7 15:23:00 2022
    On 06/02/2022 18:45, David W. Hodgins wrote:
    On Sun, 06 Feb 2022 11:59:40 -0500, Grimble <grimble@nomail.afraid.org> wrote:
    removing package kernel-desktop-5.15.4-1.mga8-1-1.mga8.x86_64
           2/4: removing kernel-desktop-5.15.4-1.mga8-1-1.mga8.x86_64
    ###################################################################################################

    Usage: grub2-set-default [OPTION] MENU_ENTRY
    Set the default boot menu entry for GRUB.
    This requires setting GRUB_DEFAULT=saved in /etc/default/grub.

       -h, --help              print this message and exit
       -V, --version           print the version information and exit
       --boot-directory=DIR    expect GRUB images under the directory
    DIR/grub2
                               instead of the /boot/grub2 directory

    MENU_ENTRY is a number, a menu item title or a menu item identifier.

    Report bugs to <bug-grub@gnu.org>.

    That's coming from update-grub when it's automatically run after removing a kernel using rpm or urpme commands, which the oldkernelrm script generates.

    What's the contents of /etc/default/grub?

    Regards, Dave Hodgins
    /etc/default/grub:
    GRUB_CMDLINE_LINUX_DEFAULT="splash quiet noiswmd resume=UUID=ca3503c1-ae8b-40a0-b1a8-30743e411bea audit=0 vga=791" GRUB_DEFAULT=saved
    GRUB_DISABLE_OS_PROBER=false
    GRUB_DISABLE_RECOVERY=false
    GRUB_DISABLE_SUBMENU=n
    GRUB_DISTRIBUTOR=Mageia
    GRUB_ENABLE_CRYPTODISK=y
    GRUB_GFXMODE=1024x768x32
    GRUB_GFXPAYLOAD_LINUX=text
    GRUB_SAVEDEFAULT=true
    GRUB_TERMINAL_OUTPUT=gfxterm
    GRUB_THEME=/boot/grub2/themes/maggy/theme.txt
    GRUB_TIMEOUT=10

    So it looks as though GRUB_DEFAULT is correct.

    --
    Grimble
    Registered Linux User #450547
    Machine 'Bach' running Plasma 5.20.4 on 5.15.18-desktop-2.mga8 kernel.
    Mageia release 8 (Official) for x86_64

    --- MBSE BBS v1.0.7.24 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)
  • From David W. Hodgins@2:250/1 to All on Mon Feb 7 18:42:15 2022
    On Mon, 07 Feb 2022 10:23:00 -0500, Grimble <grimble@nomail.afraid.org> wrote:
    On 06/02/2022 18:45, David W. Hodgins wrote:
    On Sun, 06 Feb 2022 11:59:40 -0500, Grimble <grimble@nomail.afraid.org>
    wrote:
    removing package kernel-desktop-5.15.4-1.mga8-1-1.mga8.x86_64
    2/4: removing kernel-desktop-5.15.4-1.mga8-1-1.mga8.x86_64
    ###################################################################################################

    Usage: grub2-set-default [OPTION] MENU_ENTRY
    Set the default boot menu entry for GRUB.
    This requires setting GRUB_DEFAULT=saved in /etc/default/grub.

    -h, --help print this message and exit
    -V, --version print the version information and exit
    --boot-directory=DIR expect GRUB images under the directory
    DIR/grub2
    instead of the /boot/grub2 directory

    MENU_ENTRY is a number, a menu item title or a menu item identifier.

    Report bugs to <bug-grub@gnu.org>.

    That's coming from update-grub when it's automatically run after removing a >> kernel using rpm or urpme commands, which the oldkernelrm script generates. >>
    What's the contents of /etc/default/grub?

    /etc/default/grub:
    GRUB_CMDLINE_LINUX_DEFAULT="splash quiet noiswmd resume=UUID=ca3503c1-ae8b-40a0-b1a8-30743e411bea audit=0 vga=791" GRUB_DEFAULT=saved
    GRUB_DISABLE_OS_PROBER=false
    GRUB_DISABLE_RECOVERY=false
    GRUB_DISABLE_SUBMENU=n
    GRUB_DISTRIBUTOR=Mageia
    GRUB_ENABLE_CRYPTODISK=y
    GRUB_GFXMODE=1024x768x32
    GRUB_GFXPAYLOAD_LINUX=text
    GRUB_SAVEDEFAULT=true
    GRUB_TERMINAL_OUTPUT=gfxterm
    GRUB_THEME=/boot/grub2/themes/maggy/theme.txt
    GRUB_TIMEOUT=10

    So it looks as though GRUB_DEFAULT is correct.

    Yes. That looks fine. Mine has $ cat /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT="noiswmd modprobedebug rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0 audit=0 rd.driver.pre=ehci_hcd net.ifnames=0 pcie_port_pm=off pcie_aspm=off 3 nosmt=force vga=788"
    GRUB_DEFAULT=saved
    GRUB_DISABLE_OS_PROBER=false
    GRUB_DISABLE_RECOVERY=false
    GRUB_DISABLE_SUBMENU=n
    GRUB_DISTRIBUTOR=Mageia
    GRUB_ENABLE_CRYPTODISK=y
    GRUB_GFXMODE=1024x768x32
    GRUB_GFXPAYLOAD_LINUX=text
    GRUB_SAVEDEFAULT=true
    GRUB_TERMINAL_OUTPUT=gfxterm
    GRUB_THEME=/boot/grub2/themes/maggy/theme.txt
    GRUB_TIMEOUT=7

    I've checked and the last time that error msg was included in a bug report was around 18 months ago.
    https://bugs.mageia.org/show_bug.cgi?id=27215#c13

    That msg was overlooked at that time as it occurred during kernel installation and the reboot into the new kernel worked ok. I've never seen it on one of my kernel installs or removals.

    I have no idea what's causing it. If you can recreate it, which will likely require re-installing an older kernel, please open a bug report. The kernel/grub
    experts will likely be able to figure it out.

    Regards, Dave Hodgins

    --- MBSE BBS v1.0.7.24 (GNU/Linux-x86_64)
    * Origin: A noiseless patient Spider (2:250/1@fidonet)