Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: grub:2 keywords
Date: Tue, 26 Jun 2012 02:45:11
Message-Id: pan.2012.06.26.02.43.47@cox.net
In Reply to: Re: [gentoo-dev] grub:2 keywords by Mike Gilbert
1 Mike Gilbert posted on Mon, 25 Jun 2012 12:56:25 -0400 as excerpted:
2
3 > On Mon, Jun 25, 2012 at 11:19 AM, Doug Goldstein <cardoe@g.o>
4 > wrote:
5 >> Since Grub Legacy and Grub 2 are slotted, Portage won't remove the
6 >> older version. Even if it removes the older one, everything necessary
7 >> is installed into /boot and the MBR already.
8 >
9 > Portage will remove the older slot the next time the user runs emerge
10 > --depclean unless sys-boot/grub:0 is added to the world file. I'm
11 > looking for a good way to communicate this to the user.
12 >
13 > How about this: For ~arch, we do an ewarn in pkg_postinst if grub:0 is
14 > installed. For stable, we do a news item.
15
16 Here's a bit of a different idea:
17
18 Changing the bootloader is really a profile level change. If appropriate
19 grub2-defaulted new profiles are created, and the old ones set to specify
20 grub:0 as their default bootloader and then deprecated, this will
21 automatically both provide the appropriate upgrade preparation required
22 hint, and allow users to upgrade on their own schedule during the usual
23 profile deprecation period.
24
25 Additionally, if there are continued issues with gcc building the old
26 grub, etc (as was complicating the gcc-4.6 upgrade), the old profile can
27 be set to mask new gcc, as well, thus providing additional encouragement
28 to upgrade for the new gcc, and allowing people to deal with that upgrade
29 at the same time, with their profile switch. As such, supporting the old
30 profiles during the deprecation period shouldn't be too bad, since slots,
31 version-ranges, etc, can be nailed down as necessary, and people will
32 automatically be prepared to deal with a bit of churn as they do their
33 profile upgrade.
34
35 Thinking back, that probably would have been the best way to handle the
36 baselayout-2/openrc upgrade as well, but that's rather behind us, now.
37
38 --
39 Duncan - List replies preferred. No HTML msgs.
40 "Every nonfree program has a lord, a master --
41 and if you use the program, he is your master." Richard Stallman

Replies

Subject Author
Re: [gentoo-dev] Re: grub:2 keywords Mike Gilbert <floppym@g.o>
Re: [gentoo-dev] Re: grub:2 keywords "Michał Górny" <mgorny@g.o>