(bug ?) the kernel symlinks don't update

Forum Forums antiX-development antiX Respins (bug ?) the kernel symlinks don't update

This topic contains 5 replies, has 3 voices, and was last updated by skidoo Oct 30-6:56 pm.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #28743
    Member
    melodie
    melodie

    Hello,

    I can’t see how to get the /initrd.img and /vmlinuz to point automatically to new installed kernels. However, what I have noticed, while doing a serious STFW about this issue, is that “update-grub” calls grub-mkconfig, and invoking it fails because the PATH does not include /usr/sbin !

    $ cd /usr/sbin/
    $ cat update-grub
    #!/bin/sh
    set -e
    exec grub-mkconfig -o /boot/grub/grub.cfg “$@”
    $

    $ echo $PATH
    /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    $

    # echo $PATH
    /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    #

    I have changed the update-grub script from
    exec grub-mkconfig -o /boot/grub/grub.cfg "$@"

    to

    exec /usr/sbin/grub-mkconfig -o /boot/grub/grub.cfg "$@"

    which has allowed me to invoke grub-update successfully (using /usr/sbin/grub-update directly to invoke it), so at reboot Grub offered to boot on the last kernel installed.

    However this does not solve it all, and is not perhaps the best way to deal with this issue.

    What can be done ?

    thanks.

    #28750
    Forum Admin
    anticapitalista
    anticapitalista

    antiX does include /usr/sbin!

    echo $PATH
    /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/usr/local/bin:/usr/local/games:/usr/games

    Don’t know what you did to your respin not to invoke it.

    • This reply was modified 2 weeks ago by anticapitalista.

    Philosophers have interpreted the world in many ways; the point is to change it.

    #28756
    Member
    Avatar
    skidoo

    my guess toward what is at play:

    debian10 merged /usr/sbin (and /usr/bin) (ref: https://wiki.debian.org/UsrMerge and https://lwn.net/Articles/773342/ )

    …and melodie has installed usrmerge -affected packages from debian10 repository.

    #28759
    Member
    melodie
    melodie

    @anticapitalista and @skidoo, thanks. I’ll add the missing paths to /etc/environment then ( https://unix.stackexchange.com/questions/324969/can-i-set-add-something-to-path-system-wide-for-all-users-which-has-lowest-pre ) . This is correct, right?

    #28760
    Member
    melodie
    melodie

    antiX does include /usr/sbin!

    echo $PATH
    /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/usr/local/bin:/usr/local/games:/usr/games

    Hello anticapitalista,

    how come you get two times ‘/usr/local/bin’ in the output of your “echo” ? And no ‘/usr/local/sbin’ ?

    • This reply was modified 2 weeks ago by melodie.
    #28770
    Member
    Avatar
    skidoo

    melodie, after reading the usrmerge (perl script) I see that it doesn’t mess with the path definitions.
    The content of /usr/sbin/update-grub (identical to shown in post#1) is same in antiX 17 and 19.
    $ dpkg-query -S /usr/sbin/update-grub
    FWIW, I didn’t find any usermerge -related patches for its buster package https://sources.debian.org/patches/grub2/2.02+dfsg1-20/

    on antiX19 I haven’t been able to reproduce the “echo $PATH” results reported in post #1.
    For sudo and root, the /games directories are not (and definitely should not be) listed in the path.
    Tracking down how that happened (how games wound up listed) might lead you to discover how the /usr/sbin declaration got chopped from your path definition.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.