From owner-freebsd-hackers Fri Jun 7 13:57:18 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from noble.vservers.com (noble.vservers.com [66.111.75.60]) by hub.freebsd.org (Postfix) with ESMTP id 3097C37B404 for ; Fri, 7 Jun 2002 13:56:34 -0700 (PDT) Received: from [192.168.7.179] (254.155.96.63.in-addr.arpa [63.96.155.254]) by noble.vservers.com (8.11.0/8.11.0) with ESMTP id g57KuXu03065 for ; Fri, 7 Jun 2002 16:56:33 -0400 (EDT) (envelope-from jnoble@perlwizard.org) Subject: Getting PXE to leave an existing partition alone From: Jason Noble To: freebsd-hackers@freebsd.org Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.5 Date: 07 Jun 2002 16:56:21 -0400 Message-Id: <1023483386.1146.23.camel@ratbert.lightrealm.com> Mime-Version: 1.0 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I've got a hundred systems that I'm looking at upgrading to 4.4 from 4.1. These systems were originally setup with pxe, with the following partioning scheme (install.cfg format): ################################ # Now set the parameters for the partition editor on mlxd0 disk=mlxd0 partition=exclusive bootManager=standard diskPartitionEditor ################################ ################################ # All sizes are expressed in 512 byte blocks! # mlxd0s1-1=ufs 400000 / mlxd0s1-2=swap 4096000 none mlxd0s1-3=ufs 400000 /var mlxd0s1-4=ufs 8192000 /usr mlxd0s1-5=ufs 0 /virtual # Let's do it! diskLabelEditor For the upgrade, I'd like to leave the /virtual partition alone (it contains user's home directories and such). According to the sysinstall(8) manpage I should be able to add a N to the end of the /virtual partition line and it will not newfs the drive. The following line does not work (i.e. all the data on /virtual goes bye bye): mlxd0s1-5=ufs 0 /virtual N Has anyone used pxe to upgrade a system and leave one or more existing FreeBSD partitions alone? How should I go about this? Thanks for any help you can provide. Jason Full install.cfg: # FreeBSD installer for Mylex drives # Turn on extra debugging. debug=YES # Ok, this ought to turn off ALL prompting, don't complain to me that # you # lost a machine because you netbooted it on the same subnet as this # box nonInteractive=YES noWarn=YES tryDHCP=YES ################################ # My host specific data hostname=NameMe domainname=perlwizard.org ################################ ################################ # Which installation device to use nfs=10.15.100.4:/virtual/perlwizard1.4.0 netDev=fxp1 tryDHCP=YES mediaSetNFS ################################ ################################ # Select which distributions we want. dists= bin doc manpages catpages proflibs dict info des compat1x compat20 compat21 compat22 compat3x comp at4x crypto distSetCustom ################################ ################################ # Now set the parameters for the partition editor on mlxd0 disk=mlxd0 #partition=all partition=exclusive bootManager=standard diskPartitionEditor #diskPartitionWrite ################################ ################################ # All sizes are expressed in 512 byte blocks! # mlxd0s1-1=ufs 400000 / mlxd0s1-2=swap 4096000 none mlxd0s1-3=ufs 400000 /var mlxd0s1-4=ufs 8192000 /usr # The following line newfs's /virtual, the second line does not #mlxd0s1-5=ufs 0 /virtual mlxd0s1-5=ufs 0 /virtual N # Let's do it! diskLabelEditor #diskLabelCommit # OK, everything is set. Do it! installCommit #package=perlwizard-1.4.0 #packageAdd package=pxe-perlwizard-kludge-1.3.0 packageAdd ###THE OLD STUFF### #package=ports-1.0 #packageAdd #package=linux_base-6.1 #packageAdd #package=perlwizard-password-1.0 #packageAdd shutdown n To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message