Gentoo Archives: gentoo-dev

From: Duncan <1i5t5.duncan@×××.net>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: How help in arch testing work
Date: Fri, 20 Jan 2012 00:13:34
Message-Id: pan.2012.01.20.00.12.30@cox.net
In Reply to: Re: [gentoo-dev] Re: How help in arch testing work by Mike Frysinger
1 Mike Frysinger posted on Thu, 19 Jan 2012 11:46:21 -0500 as excerpted:
2
3 > On Wednesday 18 January 2012 21:23:47 Duncan wrote:
4 >> If people want it, they can merge it, just like any other package.
5 >> Really, the same applies to busybox, and arguably, even to
6 >> module-init-tools (and the more recent replacement, kmod...), since
7 >> that's not needed if people choose to build all their drivers into the
8 >> kernel.
9 >
10 > not really. the # of people who build their kernel without module
11 > support is such a minority that they can suck it up and accept the
12 > additional dep, or simply use one of the many existing knobs in
13 > /etc/portage/ to disable it.
14
15 That's why I said "arguably, even..." for the kernel modules suggestion.
16 I wasn't seriously making that argument, only stating that it could be
17 made.
18
19 > busybox is there because we believe Gentoo should have a rescue shell
20 > installed for when the system/user eats things and needs recovery
21 > without resorting to a livecd. if you never make a mistake, then you're
22 > free to ignore it like anything else.
23
24 Having other recovery arrangements (like the mentioned system backup
25 partition, reachable with a simple alternate root= on the command line)
26 != never make a mistake! In fact, it's precisely because I'm all too
27 aware of the possibility of my own fat-fingering (or neural short-
28 circuiting) as well as recognition of the fact that I DO run ~arch and
29 even masked packages (like the live-git openrc-9999) that I set it up
30 that way, the rootbak solution being at once both FAR more resilient than
31 a busybox after all still installed on the same working partition that
32 we're assuming now has major faults of an unspecified type, thus
33 triggering the emergency in the first place, AND far more flexible, since
34 the rootbaky solution has all of the same tools in the same configuration
35 as the user was using at the time the backup took place. So if (as
36 happened to a famous LWN editor at one point) an in-hindsight unwise
37 system update shortly before a conference where an important presentation
38 was to be made breaks the working installation, simply boot to rootbak
39 instead, and do the presentation using a snapshot of the system taken
40 when it was known to be working say a month or two earlier.
41
42 Busybox installed on a broken partition isn't going to help; neither will
43 busybox alone allow you to do your presentation coming up in 15 minutes,
44 if it's going to take 30 minutes of hacking to find and fix the problem.
45 Simply rebooting to a tested working rootbak snapshot of the system made
46 when it WAS working, using an alternate root= on the kernel command line,
47 allows both, and a single root= change in grub is going to be far easier
48 than working in an unfamiliar busybox environment, as well.
49
50 Of course, that implies changes to the handbook, etc, to encourage users
51 to setup their rootbak partition (partitions, if /usr and /var are on
52 separate partitions), and to periodically update AND TEST the rootbak
53 system snapshot(s), when the system is known to be in a reasonably stable
54 state.
55
56 But still, openssh is certainly the low hanging fruit, here, busybox less
57 so and not at all as long as it remains the recommended and default
58 emergency solution, and module-init-tools/kmod is only included as an
59 example of an excludeable should we REALLY want to get strict with
60 @system.
61
62 Meanwhile, the great thing about Gentoo is that it provides mechanisms
63 such as /etc/portage/profile/packages for users who wish to, to make such
64 changes on their own. On that I'm quite sure pretty much everyone here
65 can agree, or we'd not be here discussing it in the first place! =:^)
66
67 --
68 Duncan - List replies preferred. No HTML msgs.
69 "Every nonfree program has a lord, a master --
70 and if you use the program, he is your master." Richard Stallman