Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: How to update-grub (Read 3208 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

How to update-grub

Hello.   New Artix user here.  I installed Artix artix-lxqt-openrc-20181008-x86_64.iso, upgraded, and manually installed kde starting with  plasma-desktop package.  All is well with my system.

I need to modify the grub config file at /etc/default/grub.  I have made my changes, but cant figure out how to update grub.  What I normally do is  enter update-grub and this will use the grub conf file to update /boot/grub/grub.cfg.  But there is no update-grub on my system.

Grub is at version 2:2.04-1:
Code: [Select]

[dxrobertson@acer ~]$ pacman -Q grub
grub 2:2.04-1



No update-grub:
Code: [Select]
[dxrobertson@acer ~]$ sudo whereis grub
[sudo] password for dxrobertson:
grub: /usr/lib/grub /etc/grub.d /usr/share/grub /usr/share/info/grub.info.gz
[dxrobertson@acer ~]$ sudo whereis update-grub
update-grub:
[dxrobertson@acer ~]$



Am I missing update-grub, or does Artix use a different method to update?

Thanks in advance.


Re: How to update-grub

Reply #1
I have seen guides on internet that uses this command set for grub update
Try this
Code: [Select]
# pacman -S grub os-prober
# grub-install --recheck /dev/sda
# grub-mkconfig -o /boot/grub/grub.cfg

Re: How to update-grub

Reply #2
Thanks @cynicfm!

I recall using grub-mkconfig in the past but had forgotten about it.  All I needed was to run grub-mkconfig, didn t need grub-install.


Code: [Select]

grub-mkconfig -o /boot/grub/grub.cfg


Re: How to update-grub

Reply #3
So you managed to update grub??/ If yes i am glad and very happy that i was able to help you with your concern :))) Thanks :)))))

Re: How to update-grub

Reply #4
BTW: Since I always had trouble because of the missing auto scan function in GRUB2 (e.g. after updating a kernel or replacing the root filesystem), I replaced it tonight with rEFInd. For now, everything works fine.
Code: [Select]
ARTIX Dinit + SDDM + Enlightenment

Re: How to update-grub

Reply #5


So you managed to update grub??/ If yes i am glad and very happy that i was able to help you with your concern :))) Thanks :)))))

Yes, grub update success; thanks again!


To clarify and help others coming from  other distros that may encounter lack of update-grub in Artix:

If you are used to entering:

Code: [Select]
update-grub

Enter this instead:

Code: [Select]
grub-mkconfig -o /boot/grub/grub.cfg





Re: How to update-grub

Reply #6
I just spotted there is a /usr/bin/update-grub which is part of the Artix grub package. Sadly if you run update-grub it says command not found - because the file is not set as executable.
But at least you can do:
Code: [Select]
$ sudo /bin/sh update-grub
( or su / doas etc as preferred) which does work! That's progress  ;D

Code: [Select]
install -m0644 "${srcdir}/update-grub" "${pkgdir}/usr/bin"
install -m0755 "${srcdir}/update-grub" "${pkgdir}/usr/bin"
(Should be 0755 at the end of the PKGBUILD I think)

 

Re: How to update-grub

Reply #7
Yes, I see I now have update-grub in /usr/bin.  Dated 07/31/2019 and exec permissions are not set on mine either.  Thanks; will change permissions and start using this for updating grub.