Re: Help: FreeBSD 4.3 to 4.5 upgrade problem using sysinstall script
Nicolas Rachinsky wrote: > > > > Can someone please tell me what I'm doing wrong and also tell me how to > > script this? > > put the cd in a directory named "4.3-RELEASE", sysinstall is looking > for such a directory on the ftp-server Bad plan. Using the wrong sysinstall will get the hard coded header stuff, which will not include everything, and will include some things which are no longer there. Also, ssh will stop working because of /dev/random having a different device node, and /etc/pam.conf not including the ssh lines, and sshd being too damn stupid to fall back to the non-attributed setup lines, if its own named ones are missing. You have to use the sysinstall that matches the CDROM. Unfortunately, the sysinstall that matches the CDROM does not exist on the CDROM, except in the MFS image in the boot floppy image (it would be nice if it and the MAKEDEV and MAKEDEV.local scripts had been included in their own subdirectory on the CDROM). The MAKEDEV stuff can go away, now that devfs is standard, but the next CDROM should contain the boot image sysinstall on it somewhere. -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Help: FreeBSD 4.3 to 4.5 upgrade problem using sysinstall script
Koroush Saraf wrote: > Can someone please tell me what I'm doing wrong and also tell me how to > script this? You have a number of bad assumptions. Here is the correct procedure: 1) Upgrade one system. This is necessary to obtain the correct /stand/sysinstall program and the /dev/MAKEDEV and /dev/MAKEDEV.local scripts, which will not come in automatically, if you do not boot from the install media. 2) Copy these files and make a tarball, e.g.: cd /tmp mkdir terry cd terry cp /stand/sysinstall . cp /dev/MAKEDEV* . tar cvf ../terry.tar . 3) Mount and NFS export the CDROM; this will be more efficient. If you don't want to do that, then you will need to mount the CDROM on a directory named "4.5-RELEASE", and export its *parent* as your FTP export directory on the machine. The main problem here is that the sysinstall looks for the subdirectory named after the release for the sysinstall version you are running. It is a lot easier to just use NFS. 4) Mount the CDROM via NFS on the machine to be upgraded. 5) Copy over the tarball and unpack it on the target system, e.g.: cd /tmp mkdir terry cd terry tar xvf ~/terry.tar 6) Run the sysinstall from the tarball, e.g.: ./sysinstall THIS IS VERY IMPORTANT! 7) If you need local sources, and don't have any local modifications that you care about losing, then empty /usr/src; otherwise, the sources will be left alone, and will be old and stale. 8) Upgrade using the sysinstall "upgrade" option; tell it you are using locally mounted media, and point it to where you mounted the CDROM via NFS. DO NOT REBOOT YET! 9) Modify /etc/pam.conf to add the ssh lines (refer to the system you updated using the normal process). A failure to this means that SSH will stop working; if you are updating rack-mount equipment, this could lock you out! 10) Update and run the MAKDEV scripts. A sysinstall based upgrade done this way will not properly update things; so: cp MAKEDEV* /dev cd /dev sh MAKEDEV all 11) Reboot. This system should be done. Go on to the next system. In theory, you can script the sysinstall upgrade process, along with the MAKEDEV and the pam.conf stuff. Whether this is worthwhile depends on the number of systems that you have to deal with this way (the sysinstall scripting is dark and mysetrious, IMO). -- Terry To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Help: FreeBSD 4.3 to 4.5 upgrade problem using sysinstall script
On Thu, Apr 04, 2002 at 09:56:39AM -0800, Koroush Saraf wrote: > > Howevever the problem is that it comes back and gives the following error: > ? Warning: Can't find the `4.3-RELEASE' distribution on this ? I think you need to use the new sysinstall from 4.5 rather than the old one from 4.3. I'm curious how this turns out for you, I need to do something similar. To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Help: FreeBSD 4.3 to 4.5 upgrade problem using sysinstall script
* Koroush Saraf <[EMAIL PROTECTED]> [2002-04-04 09:56:39 -0800]: > Hi All, > I would like to upgrade a bunch of FreeBSD4.3 computers to FreeBSD 4.5. > Following the FreeBSD handbook I have setup a computer as an ftp server to > serve the contents of the CD4_5_1 as the root for anonymous FTP. > I like to be able to write a script to tell sysinstall to simply upgrade all > the computers. However, before I attempted to write the script I decided to > just try the interactive setup using the /stand/sysinstall on one of the > computers that needs the upgrade. [...] > Howevever the problem is that it comes back and gives the following error: > ? Warning: Can't find the `4.3-RELEASE' distribution on this ? > ? FTP server. You may need to visit a different server for ? > ? the release you are trying to fetch or go to the Options ? > ? menu and to set the release name to explicitly match what's ? > ? available on bsdcon (or set to "any"). ? > ? ? > ? Would you like to select another FTP server? > > Can someone please tell me what I'm doing wrong and also tell me how to > script this? put the cd in a directory named "4.3-RELEASE", sysinstall is looking for such a directory on the ftp-server Nicolas To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Help: FreeBSD 4.3 to 4.5 upgrade problem using sysinstall script
Hi All, I would like to upgrade a bunch of FreeBSD4.3 computers to FreeBSD 4.5. Following the FreeBSD handbook I have setup a computer as an ftp server to serve the contents of the CD4_5_1 as the root for anonymous FTP. I like to be able to write a script to tell sysinstall to simply upgrade all the computers. However, before I attempted to write the script I decided to just try the interactive setup using the /stand/sysinstall on one of the computers that needs the upgrade. I go through the following menus: ? Upgrade Upgrade an existing system Then I choose ?[X] 5 X-Developer Same as above + X Window System then it backs up my data to the following directory Value Required ? Under which directory do you wish to save your current /etc? ? ? ? ? ?/usr/tmp/etc then I choose ? 2 FTP Install from an FTP server next menu ? URL Specify some other ftp site by URL and then I give it the URL of the ftp server that I can configured which contains the 4.5 release CD with the following files as expected: ftp> ls 150 Opening ASCII mode data connection for '/bin/ls'. total 4219 -r--r--r-- 1 0 0 4206 Jan 29 14:59 ERRATA.HTM -r--r--r-- 1 0 0 2713 Jan 29 14:59 ERRATA.TXT -r--r--r-- 1 0 0 104406 Jan 29 14:59 HARDWARE.HTM -r--r--r-- 1 0 0 36878 Jan 29 14:59 HARDWARE.TXT -r--r--r-- 1 0 0 102689 Jan 29 14:59 INSTALL.HTM -r--r--r-- 1 0 0 59121 Jan 29 14:59 INSTALL.TXT -r--r--r-- 1 0 0 22500 Jan 29 14:59 README.HTM -r--r--r-- 1 0 0 13808 Jan 29 14:59 README.TXT -r--r--r-- 1 0 0 68057 Jan 29 14:59 RELNOTES.HTM -r--r--r-- 1 0 0 29529 Jan 29 14:59 RELNOTES.TXT dr-xr-xr-x 4 0 0 6144 Jan 29 13:01 XF86336 dr-xr-xr-x 2 0 0 18432 Jan 29 14:59 bin dr-xr-xr-x 3 0 0 4096 Jan 29 14:59 boot dr-xr-xr-x 2 0 0 4096 Jan 29 14:59 catpages -r--r--r-- 1 0 0 25 Jan 29 14:59 cdrom.inf dr-xr-xr-x 2 0 0 2048 Jan 29 14:59 compat1x dr-xr-xr-x 2 0 0 2048 Jan 29 14:59 compat20 dr-xr-xr-x 2 0 0 2048 Jan 29 14:59 compat21 dr-xr-xr-x 2 0 0 2048 Jan 29 14:59 compat22 dr-xr-xr-x 2 0 0 2048 Jan 29 14:59 compat3x dr-xr-xr-x 2 0 0 2048 Jan 29 14:59 compat4x dr-xr-xr-x 2 0 0 10240 Jan 29 14:59 crypto dr-xr-xr-x 2 0 0 2048 Jan 29 14:59 dict dr-xr-xr-x 2 0 0 10240 Jan 29 14:59 doc -r--r--r-- 1 0 0 2963 Jan 29 14:59 docbook.css -r--r--r-- 1 0 0 89310 Jan 28 18:49 filename.txt dr-xr-xr-x 2 0 0 2048 Jan 29 14:59 floppies dr-xr-xr-x 2 0 0 4096 Jan 29 14:59 games dr-xr-xr-x 2 0 0 2048 Jan 29 14:59 info -r-xr-xr-x 3 0 0 3648397 Jan 28 06:31 kernel dr-xr-xr-x 2 0 0 6144 Jan 29 14:59 manpages dr-xr-xr-x 66 0 0 8192 Jan 29 13:01 packages dr-xr-xr-x 2 0 0 2048 Jan 29 09:08 ports dr-xr-xr-x 2 0 0 2048 Jan 29 14:59 proflibs dr-xr-xr-x 2 0 0 40960 Jan 29 14:59 src dr-xr-xr-x 5 0 0 4096 Jan 29 13:01 tools 226 Transfer complete. Howevever the problem is that it comes back and gives the following error: ? Warning: Can't find the `4.3-RELEASE' distribution on this ? ? FTP server. You may need to visit a different server for ? ? the release you are trying to fetch or go to the Options ? ? menu and to set the release name to explicitly match what's ? ? available on bsdcon (or set to "any"). ? ? ? ? Would you like to select another FTP server? Can someone please tell me what I'm doing wrong and also tell me how to script this? Second I'm having problem finding the script commands that allow you to bypass an already configured network. Since I have a number of computers I don't want to give the hostname etc for each one, so it would be great if the script could just issue the upgrade command and bypasses explicit assignment of hostname, default gateway etc. If you can send me an example of such script to follow it would be much appriciate it. regards, ~koroush To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message