[Compactbsd-devel] Build questions
Status: Alpha
Brought to you by:
ttul
From: Mike M. <mmc...@pn...> - 2002-10-27 17:44:46
|
Hello everyone, I have two questions. First, why does the build process make MFS filesystems *and* put all the files directly on the media? Shouldn't it just put the MFS filesystems, along with a minimal /, /etc and /stand on there? Am I doing something wrong? Second, what is the best method of adding directories and file to the build? Let's say I have directory /usr/local/fnord. I could just copy it to the media, but it won't be in the MFS filesystems, so it won't be there after booting, right? Thanks very much, Mike Here's my latest build output, in case it helps determine if I'm doing something wrong in the build. -------------- # /usr/local/bin/python build.py -b sd0 1035721209.91 [18306]: Creating working stand directory... 1035721209.91 [18306]: Copying boot files into working stand directory... # using MBR partition 3: type A6 off 32 (0x20) size 124896 (0x1e7e0) fdisk: sysctl(machdep.bios.diskinfo): Device not configured # using MBR partition 3: type A6 off 32 (0x20) size 124896 (0x1e7e0) tar: Unable to access ./root/.profile <No such file or directory> tar: Unable to access ./root/.klogin <No such file or directory> tar: Unable to access ./stand/fpconfig <No such file or directory> tar: WARNING! These file names were not selected: ./root/.profile ./root/.klogin ./stand/fpconfig using MBR partition 3: type 166 (0xa6) offset 32 (0x20) 1035721324.83 [18306]: flashdist.sh 20020501 ch...@dq... 1035721324.83 [18306]: Using disk device: sd0 1035721324.83 [18306]: Using distfile: /root/CompactBSD-0.1.0/flashdist/flashsma ll.txt 1035721324.83 [18306]: Copying kernel from: /bsd 1035721324.83 [18306]: 1035721324.83 [18306]: Please pay attention to any error messages that you may 1035721324.83 [18306]: receive from the commands this script it using. If you 1035721324.83 [18306]: end up having problems, they could explain why. 1035721324.83 [18306]: Setting up disklabel... 1035721324.83 [18306]: 1035721324.83 [18306]: The install script is using the following parameters: 1035721324.83 [18306]: Total size of media: 125441 sectors (64225792 bytes) 1035721324.83 [18306]: Bytes/Sector: 512 1035721324.83 [18306]: Sectors/Track: 32 1035721324.83 [18306]: Sectors/Cylinder: 2048 1035721324.84 [18306]: Tracks/Cylinder (heads): 64 1035721324.84 [18306]: Cylinders: 61 1035721324.84 [18306]: 1035721324.84 [18306]: Updating MBR and partition table... 1035721324.84 [18306]: Note, you may ignore "sysctl(machdep.bios.diskinfo)" erro rs if present. 1035721324.84 [18306]: 1035721324.84 [18306]: Installing disklabel... 1035721324.84 [18306]: disklabel -R sd0 /tmp/_ahhA14924 1035721324.84 [18306]: 1035721324.84 [18306]: Creating new filesystem... 1035721324.84 [18306]: newfs -c 61 -S 512 -u 32 -z 64 -o space /dev/rsd0a 1035721324.84 [18306]: Warning: 32 sector(s) in last cylinder unallocated 1035721324.84 [18306]: /dev/rsd0a: 124896 sectors in 122 cylinders of 32 tr acks, 32 sectors 1035721324.84 [18306]: 61.0MB in 2 cyl groups (61 c/g, 30.50MB/g, 7680 i/g) 1035721324.84 [18306]: super-block backups (for fsck -b #) at: 1035721324.84 [18306]: 32, 62528, 1035721324.84 [18306]: Copying OpenBSD distribution to media...done 1035721324.84 [18306]: Copying bsd kernel, boot blocks, /etc/resolv.conf... 1035721324.85 [18306]: Installing boot blocks... 1035721324.85 [18306]: Running MAKEDEV...done 1035721324.85 [18306]: Setting up ttys... 1035721324.85 [18306]: Setting up directories and links... 1035721324.85 [18306]: Unmounting filesystem...done! # # df -k Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0a 3965052 1878343 1888457 50% / # mount /dev/sd0a /mnt # cd /mnt # ls bin boot bsd dev etc mnt sbin stand tmp usr var # df -k Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wd0a 3965052 1878343 1888457 50% / /dev/sd0a 60479 26992 30464 47% /mnt # ls -la /mnt/sbin total 8960 drwxr-xr-x 2 root bin 1024 Oct 27 06:20 . drwxr-xr-x 11 root wheel 512 Oct 27 06:22 .. -r-xr-xr-x 1 root bin 57344 Apr 13 2002 atactl -r-xr-xr-x 2 root bin 163840 Apr 13 2002 chown -r-xr-xr-x 1 root bin 221184 Apr 13 2002 dhclient -r-xr-xr-x 1 root bin 5869 Apr 13 2002 dhclient-script -r-xr-xr-x 1 root bin 106496 Apr 13 2002 dmesg -r-xr-xr-x 1 root bin 69632 Apr 13 2002 fsck -r-xr-xr-x 1 root bin 196608 Apr 13 2002 fsck_ffs -r-xr-xr-x 2 root bin 147456 Apr 13 2002 halt -r-xr-xr-x 1 root bin 180224 Apr 13 2002 ifconfig -r-x------ 1 root bin 212992 Apr 13 2002 init -r-xr-xr-x 1 root bin 159744 Apr 13 2002 ipsecadm -r-xr-xr-x 1 root bin 958464 Apr 13 2002 isakmpd -r-xr-xr-x 1 root bin 65536 Apr 13 2002 ldconfig -r-xr-xr-x 1 root bin 94208 Apr 13 2002 mount -r-xr-xr-x 1 root bin 49152 Apr 13 2002 mount_ffs -r-xr-xr-x 2 root bin 151552 Apr 13 2002 mount_mfs -r-xr-xr-x 2 root bin 151552 Apr 13 2002 newfs -r-xr-xr-x 1 root bin 188416 Apr 13 2002 pfctl -r-xr-xr-x 1 root bin 233472 Apr 13 2002 pflogd -r-sr-xr-x 1 root bin 163840 Apr 13 2002 ping -r-xr-xr-x 2 root bin 147456 Apr 13 2002 reboot -r-xr-xr-x 1 root bin 176128 Apr 13 2002 route -r-xr-xr-x 1 root bin 61440 Apr 13 2002 scan_ffs -r-xr-xr-x 1 root bin 135168 Apr 13 2002 sysctl -r-xr-xr-x 1 root bin 12288 Apr 13 2002 tbrconfig -r-xr-xr-x 1 root bin 53248 Apr 13 2002 ttyflags -r-xr-xr-x 1 root bin 159744 Apr 13 2002 umount -r-xr-xr-x 1 root bin 86016 Apr 13 2002 wicontrol # ls -la /mnt/stand total 21236 drwxr-xr-x 2 root wheel 512 Oct 27 06:20 . drwxr-xr-x 11 root wheel 512 Oct 27 06:22 .. -r-xr-xr-x 1 root bin 110592 Sep 22 12:47 gunzip -rw-r--r-- 1 root wheel 10733232 Oct 26 06:40 mfs.tgz # ------------------------------ -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmc...@pn... mobile: 913-636-5590 |