From owner-freebsd-hackers Tue Dec 16 17:02:21 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA17977 for hackers-outgoing; Tue, 16 Dec 1997 17:02:21 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (8.8.7/8.8.7) with SMTP id RAA17953 for ; Tue, 16 Dec 1997 17:02:08 -0800 (PST) (envelope-from imp@village.org) Received: from harmony [10.0.0.6] by rover.village.org with esmtp (Exim 1.71 #1) id 0xi7sE-0000VY-00; Tue, 16 Dec 1997 18:02:06 -0700 Received: from harmony.village.org (localhost [127.0.0.1]) by harmony.village.org (8.8.8/8.8.3) with ESMTP id SAA00624 for ; Tue, 16 Dec 1997 18:02:13 -0700 (MST) Message-Id: <199712170102.SAA00624@harmony.village.org> To: hackers@freebsd.org Subject: Question about making a new machine from an old one Date: Tue, 16 Dec 1997 18:02:13 -0700 From: Warner Losh Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk OK. I have a new machine I'd like to bring online. I'd rather not download the latest snapshot, but do have a complete -stable tree that I just built that I'd like to place onto a disk and then boot that disk on the new machine. As near as I can tell, from looking at the makefiles, I would do something like the following: disklabel new-disk newfs new-disk-a newfs new-disk-d newfs new-disk-e newfs new-disk-f mount new-disk-a /gerbils mkdir /gerbils/usr /gerbils/var /gerbils/home mount new-disk-d /gerbils/usr mount new-disk-e /gerbils/var mount new-disk-f /gerbils/home cd /usr/src make buildworld cd /usr/src/etc make distribution DESTDIR=/gerbils cd .. make installworld DESTDIR=/gerbils umount /gerbils/{usr,home,var} /gerbils Then take the disk to the new system and run /stand/sysinstall to configure the system in single user. Have I missed anything? Is there an easier way to do this that doesn't require that I grab a snapshot? What's the smallest subset I can install that would allow me to upgrade via make installworld? Thanks much... Warner