Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

grub2-mkconfig madness.

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
Budoka
l33t
l33t
Posts: 777
Joined: Sun Jun 03, 2012 9:26 am
Location: Tokyo, Japan

grub2-mkconfig madness.

  • Quote

Post by Budoka » Wed Feb 05, 2020 5:31 am

Some days I feel like I am losing my mind. Anyway,

I have always used

Code: Select all

grub2-mkconfig -o /boot/grub/grub.cfg
after compiling new kernels with no issue...for years. But today after trying to execute it I get
bash: grub2-mkconfig: command not found
I remember that a couple of years ago this happened as well and found the old news item.
2016-08-11-grub2_multislot_default
Title Grub2 multislot default setting is changing
Author William Hubbs <williamh@gentoo.org>
Author Ian Stakenvicius <axs@gentoo.org>
Posted 2016-08-11
Revision 1

The multislot use flag in sys-boot/grub-2.x is no longer enabled by
default.

When the flag is enabled, all upstream binaries and documentation are
renamed to "grub2" so as not to collide with grub-0. Now that the use
flag is no longer default-enabled, these names will revert back to
their upstream defaults. For example, grub2-mkconfig will become
grub-mkconfig, grub2-install will become grub-install, etc.

If you wish to retain the previous naming scheme, please make sure to
explicitly enable USE="multislot" on sys-boot/grub in the usual manner.
I must have added multislot at that time because...well like I said...I've been running it that way for years.

Did multislot go away? When I check it doesn't seem to be a use option for grub now and I can't find anything on my system using it. I was able to update grub using

Code: Select all

grub-mkconfig -o /boot/grub/grub.cfg
. I am not tied to any particular method of updating my grub config I just get spooked when stuff suddenly stops working when I haven't made any explicit changes, or mistakes, myself.

Code: Select all

# equery hasuse multislot
 * Searching for USE flag multislot ...
returns null.

Code: Select all

# equery uses grub
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for sys-boot/grub-2.04-r1:
 U I
 - - device-mapper            : Enable support for device-mapper from sys-fs/lvm2 
 - - doc                      : Add extra documentation (API, Javadoc, etc). It is
                                recommended to enable per package instead of globally
 - - efiemu                   : Build and install the efiemu runtimes 
 + + fonts                    : Build and install fonts for the gfxterm module
 - - grub_platforms_coreboot  : Coreboot platform support
 - - grub_platforms_efi-32    : EFI 32 bit platform support (Old MACs)
 - - grub_platforms_efi-64    : EFI 64 bit platform support
 - - grub_platforms_emu       : Emulation platform support
 - - grub_platforms_ieee1275  : IEEE1275 platform support
 - - grub_platforms_loongson  : MIPS loongson platform support
 - - grub_platforms_multiboot : Multiboot platform support
 + + grub_platforms_pc        : PC platform support
 - - grub_platforms_qemu      : QEMU platform support
 - - grub_platforms_qemu-mips : QEMU MIPS platform support
 - - grub_platforms_uboot     : U-Boot platform support
 - - grub_platforms_xen       : XEN (pvgrub2) platform support
 - - grub_platforms_xen-32    : Build 32-bit XEN (pvgrub2) platform support on amd64
 - - grub_platforms_xen-pvh   : XEN (pvhgrub2) platform support
 - - libzfs                   : Enable support for sys-fs/zfs 
 + + mount                    : Build and install the grub-mount utility 
 + + nls                      : Add Native Language Support (using gettext - GNU
                                locale utilities)
 + + sdl                      : Add support for Simple Direct Layer (media library)
 + + themes                   : Build and install GRUB themes (starfield)
 + + truetype                 : Build and install grub-mkfont conversion utility
Doesn't show multislot as an option. Nevertheless I added

Code: Select all

sys-boot/grub multislot
to package.use and still doesn't work.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31987
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Feb 05, 2020 6:36 am

grub:0 is no longer in official portage tree so

Code: Select all

commit 1c2650e3424d6676a346aa7abdfea67ff24fce0b
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Thu Mar 21 00:20:12 2019 -0400

    sys-boot/grub: drop multislot USE flag
    
    Package-Manager: Portage-2.3.62, Repoman-2.3.12_p83
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Budoka
l33t
l33t
Posts: 777
Joined: Sun Jun 03, 2012 9:26 am
Location: Tokyo, Japan

  • Quote

Post by Budoka » Wed Feb 05, 2020 10:05 am

fedeliallalinea wrote:grub:0 is no longer in official portage tree so

Code: Select all

commit 1c2650e3424d6676a346aa7abdfea67ff24fce0b
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Thu Mar 21 00:20:12 2019 -0400

    sys-boot/grub: drop multislot USE flag
    
    Package-Manager: Portage-2.3.62, Repoman-2.3.12_p83
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Thanks. But curious how I would have known that if it doesn't come up as a news item? Not being snarky. Just not sure where I am supposed to be monitoring this kind of thing.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31987
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Feb 05, 2020 10:17 am

Budoka wrote:Thanks. But curious how I would have known that if it doesn't come up as a news item? Not being snarky. Just not sure where I am supposed to be monitoring this kind of thing.
I think the use flag wasremoved because grub-0 was removed from tree, it seems excessive to me to make a news.
I usually use git log (I sync tree with git) for see the commit from tree.
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic