Re: Install World fails in -Current

2002-02-24 Thread Doug Barton

Doug Barton wrote:
> 
> Dag-Erling Smorgrav wrote:
> >
> > David Wolfskill <[EMAIL PROTECTED]> writes:
> > > Sounds like a botched (or not run) "mergemaster" execution:
> >
> > No - mergemaster will croak because it runs mtree to build its temp
> > directory, so if you're trying to update a pre-smmsp system you have
> > to add the smmsp user and group manually.

Ok, I decided to go proactive and add -p mode for "pre
{build|install}world" which compares master.passwd, group, and the
variables in /etc/make.conf to /usr/src/share/examples/etc/make.conf.
This should give people a fairly painless way to handle the transition
if they choose to accept it. While I was there, I added some other code
I've been using for a while to compare variables in /etc/rc.conf[.local]
with the same variables in /etc/defaults/rc.conf. Use 'mergemaster -C'
to use that feature.

If someone has suggestions on more files to add to -p mode, let me
know. I'll update the man page after people have had a chance to play
with these.

Enjoy,

Doug
-- 
   "We have known freedom's price. We have shown freedom's power.
  And in this great conflict, ...  we will see freedom's victory."
- George W. Bush, President of the United States
  State of the Union, January 28, 2002

 Do YOU Yahoo!?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Install World fails in -Current

2002-02-23 Thread Doug Barton

Dag-Erling Smorgrav wrote:
> 
> David Wolfskill <[EMAIL PROTECTED]> writes:
> > Sounds like a botched (or not run) "mergemaster" execution:
> 
> No - mergemaster will croak because it runs mtree to build its temp
> directory, so if you're trying to update a pre-smmsp system you have
> to add the smmsp user and group manually.

Every time I suggest adding special handling for master.passwd or group
people scream because they are afraid that they'll accidentally
overwrite their files. Every time we introduce a new user or group,
people scream because mm didn't magically fix things for them. 

One solution I've considered in the past is to have a pre-world mm
option to do just master.passwd and group for just this purpose. One of
the reasons I liked /etc/defaults/make.conf was because this pre-world
script I have also compared my /etc/make.conf to the defaults to make
sure that the options I have in there are still doing what I think they
are doing. I'd kind of like to see this sort of thing return... it was
nice to have a somewhat canonical list of options available.

Doug
-- 
   "We have known freedom's price. We have shown freedom's power.
  And in this great conflict, ...  we will see freedom's victory."
- George W. Bush, President of the United States
  State of the Union, January 28, 2002

 Do YOU Yahoo!?

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Install World fails in -Current

2002-02-23 Thread Crist J. Clark

On Fri, Feb 22, 2002 at 10:25:03PM -0500, John Baldwin wrote:
> 
> On 23-Feb-02 Dag-Erling Smorgrav wrote:
> > David Wolfskill <[EMAIL PROTECTED]> writes:
> >> Sounds like a botched (or not run) "mergemaster" execution:
> > 
> > No - mergemaster will croak because it runs mtree to build its temp
> > directory, so if you're trying to update a pre-smmsp system you have
> > to add the smmsp user and group manually.
> 
> I think this is a bug but can't think of a clean way to work around it.

I can think of a two "clean" ways... but it ain't pretty.

  1) Do not enter users in the BSD.*.dist files by 'uname,' but only
 by 'uid.' But this makes the files more difficult to maintain and
 generally icky.

  2) Keep 'uname's in BSD.*.dist files, but use the distributed
 src/etc/master.passwd to process the BSD.*.dist files into a
 format with 'uid's on the fly during buildworld-installworld.
 These versions would only be built during buildworld and only
 used by the mtree(8) commands during installworld. The source
 BSD.*.dist files would be the ones actually installed of course.

Obviously, one could do the same with groups.
-- 
Crist J. Clark | [EMAIL PROTECTED]
   | [EMAIL PROTECTED]
http://people.freebsd.org/~cjc/| [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Install World fails in -Current

2002-02-22 Thread John Baldwin


On 23-Feb-02 Dag-Erling Smorgrav wrote:
> David Wolfskill <[EMAIL PROTECTED]> writes:
>> Sounds like a botched (or not run) "mergemaster" execution:
> 
> No - mergemaster will croak because it runs mtree to build its temp
> directory, so if you're trying to update a pre-smmsp system you have
> to add the smmsp user and group manually.

I think this is a bug but can't think of a clean way to work around it.

-- 

John Baldwin <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Install World fails in -Current

2002-02-22 Thread Dag-Erling Smorgrav

David Wolfskill <[EMAIL PROTECTED]> writes:
> Sounds like a botched (or not run) "mergemaster" execution:

No - mergemaster will croak because it runs mtree to build its temp
directory, so if you're trying to update a pre-smmsp system you have
to add the smmsp user and group manually.

DES
-- 
Dag-Erling Smorgrav - [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Install World fails in -Current

2002-02-22 Thread Gavin Atkinson


On Fri, 22 Feb 2002, Glenn Gombert wrote:

> All I did was to add a 'smmsp' user in via the sysisntall utility, ran
> 'installworld/mergemaster' again and things worked fine, adding a not to
> the Updating file might be a good idea for others thought :)

Section 19.4.3 of the FreeBSD handbook does mention this type of problem,
however only suggests comparing /etc/group with the new file.

  "There have been occasions when the installation part of ``make world''
   has expected certain usernames or groups to exist. When performing an
   upgrade it is likely that these groups did not exist. This caused
   problems when upgrading."

It might be worth including explicit mention about checking changes in
master.passwd as well. I'll submit a patch tomorrow if nobody beats me to
it...

Gavin


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Install World fails in -Current

2002-02-22 Thread Glenn Gombert

All I did was to add a 'smmsp' user in via the sysisntall utility, ran
'installworld/mergemaster' again and things worked fine, adding a not to
the Updating file might be a good idea for others thought :)



At 11:35 AM 2/22/2002 -0500, John Baldwin wrote:
>
>On 22-Feb-02 David Wolfskill wrote:
>>>Date: Fri, 22 Feb 2002 08:33:01 -0500
>>>From: Glenn Gombert <[EMAIL PROTECTED]>
>> 
>>>I have tried to re-cvsup and a clean rebuild the alst couple of days, and I
>>>keep getting this error when I try and do an 'installworld' ..after a clean
>>>build...does anyone know what might be causing this??
>> 
>>>...
>>>
>>>mtree -deU -f /usr/src/etc/mtree/BSD.var -p /var 
>>>mtree: line 67: unknown user smmsp
>> 
>> 
>> Sounds like a botched (or not run) "mergemaster" execution:
>
>Sort of.  The problem is we have added a new user that installworld
depends on.
>Imagine a 4.x to 5.0 upgrade right now.  4.x doesn't have this user IIRC, and
>you are supposed to run installworld before mergemaster.  Sounds like a nice
>catch 22 to me. :-/
>
>-- 
>
>John Baldwin <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
>"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/
>
Glenn Gombert
[EMAIL PROTECTED]


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Install World fails in -Current

2002-02-22 Thread John Baldwin


On 22-Feb-02 David Wolfskill wrote:
>>Date: Fri, 22 Feb 2002 08:33:01 -0500
>>From: Glenn Gombert <[EMAIL PROTECTED]>
> 
>>I have tried to re-cvsup and a clean rebuild the alst couple of days, and I
>>keep getting this error when I try and do an 'installworld' ..after a clean
>>build...does anyone know what might be causing this??
> 
>>...
>>
>>mtree -deU -f /usr/src/etc/mtree/BSD.var -p /var 
>>mtree: line 67: unknown user smmsp
> 
> 
> Sounds like a botched (or not run) "mergemaster" execution:

Sort of.  The problem is we have added a new user that installworld depends on.
Imagine a 4.x to 5.0 upgrade right now.  4.x doesn't have this user IIRC, and
you are supposed to run installworld before mergemaster.  Sounds like a nice
catch 22 to me. :-/

-- 

John Baldwin <[EMAIL PROTECTED]>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Install World fails in -Current

2002-02-22 Thread David Wolfskill

>Date: Fri, 22 Feb 2002 08:33:01 -0500
>From: Glenn Gombert <[EMAIL PROTECTED]>

>I have tried to re-cvsup and a clean rebuild the alst couple of days, and I
>keep getting this error when I try and do an 'installworld' ..after a clean
>build...does anyone know what might be causing this??

>...
>
>mtree -deU -f /usr/src/etc/mtree/BSD.var -p /var 
>mtree: line 67: unknown user smmsp


Sounds like a botched (or not run) "mergemaster" execution:

freebeast(5.0-C)[2] grep smmsp /usr/src/etc/master.passwd 
smmsp:*:25:25::0:0:Sendmail Submission User:/var/spool/clientmqueue:/sbin/nologin
freebeast(5.0-C)[3] 

Cheers,
david   (links to my resume at http://www.catwhisker.org/~david)
-- 
David H. Wolfskill  [EMAIL PROTECTED]
I believe it would be irresponsible (and thus, unethical) for me to advise,
recommend, or support the use of any product that is or depends on any
Microsoft product for any purpose other than personal amusement.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message