Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Jul 2002 14:44:17 +0100
From:      Geraint A Edwards <gedge@serf.org>
To:        stable@freebsd.org
Subject:   sysinstall hard links
Message-ID:  <20020707134417.GA18082@cymru.serf.org>

next in thread | raw e-mail | index | archive | help
Hi,

I'm fairly new to the world of upgrading, but (I think) I have
noticed something odd (though, I'm not sure if it's significant).

On a handful of occasions, I've followed the handbook to upgrade
to STABLE, even to the later point (after 'make installworld'
and 'mergemaster') of
	cd /usr/src/release/sysinstall
	make all install
but have noticed that the contents of /stand is not what I
expected:  all files hard linked to the same binary:

# cd /stand/
# ls -laF
total 61346
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 -sh*
drwxr-xr-x   5 root  wheel     1024 Jul  7 13:40 ./
drwxr-xr-x  20 root  wheel      512 Jul  7 13:20 ../
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 [*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 arp*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 boot_crunch*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 camcontrol*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 cpio*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 dhclient*
-r-xr-xr-x   1 root  wheel     6690 Jan 29 22:43 dhclient-script*
drwx------   3 root  wheel      512 Jun 23 15:39 etc/
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 find*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 fsck*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 gunzip*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 gzip*
drwxr-xr-x   2 root  wheel     1024 Jun 23 15:39 help/
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 hostname*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 ifconfig*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 minigzip*
drwxr-xr-x   2 root  wheel      512 Jun 23 15:39 modules/
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 mount_mfs*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 mount_nfs*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 newfs*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 pccardc*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 pccardd*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 ppp*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 pwd*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 rm*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 route*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 rtsol*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 sed*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 sh*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 slattach*
-r-xr-xr-x   1 root  wheel   917392 Jul  7 13:40 sysinstall*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 test*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 tunefs*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 usbd*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 usbdevs*
-r-xr-xr-x  32 root  wheel  1913600 Jan 29 22:42 zcat*

# uname -a
FreeBSD foo 4.6-STABLE FreeBSD 4.6-STABLE #0: Sun Jul  7 13:11:21 BST 2002     root@foo:/usr/obj/usr/src/sys/GENERIC  i386


So, which is wrong:
	- the handbook instructions
	- sysinstall's Makefile(?): the way it installs the target
	- my expectation that all files are hard-linked
	- something else :-)
?

This may be something to do with my /etc/make.conf having had
	INSTALL=install -C
previously, or (for this build)
	COPY=-C
in it.

-- 
Geraint A. Edwards  "Gedge"       Caerdydd(Cardiff), Cymru(Wales)
gedge@serf.org      IRCNet:Gedge  http://serf.org/gedge/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020707134417.GA18082>