grub2 update-grub?

Hey guys. I’ve just installed Opensuse 12.2. I’ve just edited my /etc/default/grub file to shorten the timeout, i then attempted to update it with,

update-grub

but i get this back

If 'update-grub' is not a typo you can use command-not-found to lookup the package that contains it, like this:     cnf update-grub

I have little experience with grub2 but am pretty sure that this isn’t right. Any advice please? Thankyou

Try this:

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

Thanks for that mate. update-grub still doesn’t work, but my edits have been applied.

As the error told you: update-grub doesn’t exist (and thus it can not “work”).

Is this standard behavior? or is this just present on my system

It’s normal.
The right command is the one I already suggested … :slight_smile:

Ok, thanks heaps then guys. Appreciate it. :slight_smile:

Hallo,

update-grub ist z.B. in Debian und ubuntu nur ein Script, das man sich unter OpenSuse z.B. als root mit* nano /usr/sbin/update-grub* selbst erstellen kann. Der Inhalt ist dann z.B.:

#!/bin/sh
set -e
exec grub2-mkconfig -o /boot/grub2/grub.cfg “$@”

Dann noch mit *chmod +x **/usr/sbin/update-grub *ausführbar machen, fertig.

Na ja, einfach “updategrub” aus meinem repo installieren … Erst dann abschleifen, Farbe drauf und … fertig! :wink:

Vielen dank, Ich war gerade auf der Suche, warum update-grub nicht arbeitete in openSUSE

What, your cat has fleas! Why that’s terrible! j/k lol!

IIRC update-grub is an Ubuntu thing … whereas openSUSE, Fedora, … use grub2-mkconfig … BTW, it is specifically mentioned to use that later command within the comments section of the /etc/default/grub file