From owner-freebsd-questions Fri Mar 30 21:54: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from he.net (he.net [216.218.186.2]) by hub.freebsd.org (Postfix) with ESMTP id C08E637B719 for ; Fri, 30 Mar 2001 21:54:01 -0800 (PST) (envelope-from dnava@he.net) Received: from localhost (dnava@localhost) by he.net (8.8.6/8.8.2) with ESMTP id VAA23580 for ; Fri, 30 Mar 2001 21:53:58 -0800 Date: Fri, 30 Mar 2001 21:53:58 -0800 (PST) From: Dan Nava To: freebsd-questions@freebsd.org Subject: customizing an mfsroot disk Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello. I've made a customized sysinstall program that asks for the network configuration stuff right after the device probe, then writes that to the install.cfg file in order to make for a completely canned install This runs great from the hard drive, but I have not been able to succesfully add this new program to an mfsroot floppy. Heres the way I have been trying this: mount /dev/fd0 /mnt/fd cp /mnt/fd/mfsroot.gz /tmp/mfsroot.gz gunzip /tmp/mfsroot.gz vnconfig /dev/vn0 /tmp/mfsroot mount /dev/vn0 /mnt/mfs cp /my/customized/sysinstall /mnt/mfs/stand/sysinstall umount /mnt/mfs vnconfig -u /dev/vn0 gzip /tmp/mfsroot cp /tmp/mfsroot.gz /dev/fd/ umount /dev/fd So when I insert this disk (after booting from a kern floppy), the kernel config, and the kernel boot work fine, but it hangs when starting /stand/sysinstall. It just says: "/stand/sysinstall running as init on vty0" < hang ... > Now if i switch to a different vterm, the following lines are outputed there: "DEBUG: ioctl(3, TIOCCONS, NULL) = 0 (success)" "proc: table is full" Im not sure what im doing wrong, or if i missed a step. Also, I'm very confused about the file sizes. On the default mfsroot floppy (when the file system image is mounted using vnconfig) almost every file in /stand shows as being 1748692 bytes. Most all the other binaries on the disk show as being this size also. /stand/sysinstall on my hard drive also shows as being this size, but my hacked sysinstall binary is 875555 bytes. When i copy this to the (vnconfig) mounted mfsroot file system in place of the original, all the other file sizes in the stand directory change to 875555. Whats the deal with this wierd file size reporting? Is there something I have to do to the hacked binary before copying it to the floppy's filesystem? Any hints/tips/answers/etc would be _greatly_ appreciated. This thing has been dribing me crazy! Thanks in advance, -Dan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message