Subject: Re: Where'd that /rescue come from?
To: Daniel Carosone <dan@geek.com.au>
From: Chris Ross <cross+netbsd@distal.com>
List: current-users
Date: 12/16/2004 08:23:41
On Dec 16, 2004, at 00:09, Daniel Carosone wrote:
> On Wed, Dec 15, 2004 at 11:43:00PM -0500, Chris Ross wrote:
>> Did anything like this used to be here?  Is this supposed to be
>> here?  Why did this just appear and/or get *much* bigger?
>>
>>   Or am I just confused?  Did I do something wrong?
>
> Unless you did something very wrong, all these files are hardlinks to
> the one file, and rescue will be just ~2.5Mb in actual size.  Check
> with du(1).

   Then I must've done something "very wrong".  I'm just trying
to figure out what.  This has never happened before.  The
destdir.i386 in the obj directory has 130 files, all of which are
single link-count.  I'll look through the build log and see if I
see anything that looks wrong.

   The builds I did of 2.0-RELEASE, on the same day, don't
have this problem (sparc64 and i386).  I built them on the same
host but their destdir.$MACHINE/rescue directories have 130
hard-links to the same inode.

   Okay, searching through the build log, it looks like:

--- install ---
TARGETDIR=/data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386/rescue  
LDD_CMD=ldd_
elf NETBSDSRCDIR=/data/NetBSD/src  CRUNCHBIN=rescue   
CURDIR=/data/NetBSD/src/res
cue  DESTDIR=/data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386   
DISTRIBDIR=/dat
a/NetBSD/src/distrib  MACHINE=i386  MACHINE_ARCH=i386   
MAKE=/data/obj/NetBSD.i38
6/data/NetBSD/src/tooldir.NetBSD-2.99.11-i386/bin/nbmake   
OBJDIR=/data/obj/NetBS
D.i386/data/NetBSD/src/rescue awk -f  
/data/NetBSD/src/distrib/common/parselist.a
wk -v mode=install /data/NetBSD/src/rescue/list  
/data/NetBSD/src/rescue/list.fdi
sk /data/NetBSD/src/rescue/list.ldconfig |  
/data/obj/NetBSD.i386/data/NetBSD/src
/tooldir.NetBSD-2.99.11-i386/bin/nbmake -f - install
STRIP=/data/obj/NetBSD.i386/data/NetBSD/src/tooldir.NetBSD-2.99.11- 
i386/bin/i386
--netbsdelf-strip  
/data/obj/NetBSD.i386/data/NetBSD/src/tooldir.NetBSD-2.99.11-i
386/bin/nbinstall -U -M  
/data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386/METAL
OG -D /data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386 -h sha1 -N  
/data/NetBSD
/src/etc -c  -r -o root -g wheel -m 555  
/data/obj/NetBSD.i386/data/NetBSD/src/re
scue/rescue  
/data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386/rescue/cat
STRIP=/data/obj/NetBSD.i386/data/NetBSD/src/tooldir.NetBSD-2.99.11- 
i386/bin/i386
--netbsdelf-strip  
/data/obj/NetBSD.i386/data/NetBSD/src/tooldir.NetBSD-2.99.11-i
386/bin/nbinstall -U -M  
/data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386/METAL
OG -D /data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386 -h sha1 -N  
/data/NetBSD
/src/etc -l h -r  
/data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386/rescue/cat /
data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386/rescue/chio
STRIP=/data/obj/NetBSD.i386/data/NetBSD/src/tooldir.NetBSD-2.99.11- 
i386/bin/i386
--netbsdelf-strip  
/data/obj/NetBSD.i386/data/NetBSD/src/tooldir.NetBSD-2.99.11-i
386/bin/nbinstall -U -M  
/data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386/METAL
OG -D /data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386 -h sha1 -N  
/data/NetBSD
/src/etc -l h -r  
/data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386/rescue/cat /
data/obj/NetBSD.i386/data/NetBSD/src/destdir.i386/rescue/chmod


   So, I'm guessing the "-l h" argument to nbinstall is supposed to make  
it a hard
link, but it's not working.  I don't see any errors, but it clearly  
didn't do what
it was supposed to.  It's the same nbinstall command-line in the  
2.0-RELEASE
build log, but that one worked.

   Is there a bug in install in -current?

                                          - Chris