Gentoo Archives: gentoo-dev

From: Mike Frysinger <vapier@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Why isn't /root/.bash_profile in the stage tarballs?
Date: Thu, 20 Sep 2007 16:57:45
Message-Id: 200709201234.42152.vapier@gentoo.org
In Reply to: Re: [gentoo-dev] Why isn't /root/.bash_profile in the stage tarballs? by Chris Gianelloni
1 On Thursday 20 September 2007, Chris Gianelloni wrote:
2 > On Thu, 2007-09-20 at 03:03 -0400, Mike Frysinger wrote:
3 > > what catalyst should do is just before cleaning up the stage3 root and
4 > > packing it up is run `rsync -a /etc/skel/ /root/`
5 >
6 > It definitely should not. One of my primary motivations with catalyst
7 > is to ensure that the users get *exactly* what would be provided by the
8 > profiles/packages. We don't add extra files into the stages and likely
9 > never will. Doing something like this in catalyst would create an
10 > inconsistency between doing a stage3 install and any previous stage
11 > installs. Yes, we don't support stage1 anymore, but we still support
12 > stage1 users once their systems are up and running. Having them
13 > inconsistent only causes one more area where we have to do extra
14 > troubleshooting to determine the cause.
15
16 not really ... someone installing by hand and someone taking a default setup
17 are different things. we know that someone taking a stage3 has never
18 configured anything before and so we can safely put defaults into /root/. we
19 have no idea what people have done when they run emerge themselves. that is
20 why only putting this into catalyst makes sense.
21
22 > > no, this cannot live in baselayout (the package that creates /root/),
23 > > because it cannot be run everytime a user upgrades the baselayout
24 > > package. no, it cannot be tied to USE=build (used to make stage1) or
25 > > USE=bootstrap (use to make stage2) as the only time the /etc/skel/ ->
26 > > /root/ sync can sanely happen is in the final steps of creating a stage3
27 > > ... and there is nothing to differentiate the creation of a stage3 from a
28 > > normal build, nor is there a sane way to make sure baselayout is the very
29 > > last package in the stage3 build step
30 >
31 > Well, it depends on whether we're interested in getting all of /etc/skel
32 > or just the .bash* files. About the only thing I would see useful as
33 > "defaults" is the .bash* stuff and a .ssh directory. I do agree that
34 > everything else should be left up to the user. If we decided what to
35 > include and limited it, it shouldn't be a problem to do it via USE=build
36 > at all.
37
38 anything that is part of the system /etc/skel/ makes sense (iow, anything that
39 is in /etc/skel/ at the end of stage3). the files from bash and the .ssh dir
40 are the only things that go into /etc/skel/ right now for the default system.
41 -mike

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies