X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C8A5AC.F8706E50@onstor-exch02.onstor.net>; Wed, 23 Apr 2008 18:46:10 -0700
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-class: urn:content-classes:message
Subject: RE: passwd and shadow files
Date: Wed, 23 Apr 2008 18:46:10 -0700
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E056C9581@onstor-exch02.onstor.net>
In-Reply-To: <20080423175932.5e91bf82@ripper.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: passwd and shadow files
Thread-Index: AcilpnVkanp5vi6PSKGAXWVSblWK2QAA3Ltw
From: "Larry Scheer" <larry.scheer@onstor.com>
To: "Andy Sharp" <andy.sharp@onstor.com>

I got it figured out. It never created the .org versions of these files
because the Makefile has no explicit dependencies for these files they
get created as a side effect of creating the /etc/shadow and /etc/passwd
files.
The make target for these are not getting triggered because the files in
rootfs/etc are the same or older time stamp of the files in the rootfs
tarball which is being unpacked in the Release dir before the install
target is being called. It just happens that the tarball has
/etc/passwd.org, etc. The make target needs to be fixed to have explict
dependencies on these files. Since the original target was wrong it
needs fixing anyway.

-----Original Message-----
From: Andy Sharp=20
Sent: Wednesday, April 23, 2008 6:00 PM
To: Larry Scheer
Subject: Re: passwd and shadow files

I don't see where it does ACCOUNT_TARGETS or SHADOW_TARGETS at all.
Attached is my log file.  But I see where it did NFX_ETC_TARGETS which
is right after ACCOUNT_TARGETS and SHADOW_TARGETS in the
INSTALL_TARGETS macro.  So quite frankly I don't understand what's
happening or where the passwd and shadow files in /etc are coming from
at all.


On Wed, 23 Apr 2008 17:51:21 -0700 "Larry Scheer"
<larry.scheer@onstor.com> wrote:

> One thing I see that I missed this when I did the review.=20
>=20
> Change from:
> $(SUDO) install -o 0 -g 42 -m 640 $* $(DESTDIR)/onstor/etc/$(@).org
> =20
> Change to:
> $(SUDO) install -o 0 -g 42 -m 640 $ $(DESTDIR)/onstor/etc/$*.org
>=20
> But this may not be it either I would expect to see a strange
> $(DESTDIR) subdirectory in onstor/etc unless the install is failing
> because the directory doesn't exist. But I don't see an error form
> install.
>=20
> -----Original Message-----
> From: Andy Sharp=20
> Sent: Wednesday, April 23, 2008 5:12 PM
> To: Larry Scheer
> Subject: passwd and shadow files
>=20
> Larry,
>=20
> I just did a make release [with the current rootfs template] and the
> passwd.org and shadow.org are not going into /onstor/etc, they are
> still going into /etc.  Try as I might, I can't seem to figure out why
> when I look at the makefile in linux/rootfs/Makefile.  I guess there's
> something I don't quite get.  I noticed that there is some NFX_ETC
> thing, but I don't think I understand how that works either.
>=20
> Perhaps you can fix it?  Or give me a hint?
>=20
> Thanks,
>=20
> a
