OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Jeff Ross (jross_at_openvistas.net)
Date: Thu Jan 09 2003 - 19:10:14 CST

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    On Wed, 18 Dec 2002, Miod Vallat wrote:

    > [snip partial make release output]
    > > dd: /mnt/bsd: No space left on device
    >
    > When building the floppy images, as part of the release process, a vnd
    > image is created and populated. What happened here is that the compiled
    > kernel is too big to fit into the small diskette image.
    >
    > There can be two reasons behind this:
    > - you may have specific changes in your tree, or in your compilation
    > options (/etc/mk.conf) that make the kernel image grow in size. In
    > this case, you'll have to fix this yourself...
    > - or, as happens from time to time, one of the recent commits to
    > -current had the same effect, and the various RAMDISK kernels needs
    > trimming (for example, by removing rarely used drivers, or sprinkling
    > a few wise #ifdef SMALL_KERNEL in the recent changes. In this case,
    > this will be fixed in å few hours.
    >
    > > So what am I missing? Apply cluestick generously if necessary ;-)
    >
    > You have just updated your sources at an inappropriate timeframe. Wait
    > until the issue is fixed...
    >
    > Miod
    >

    Several weeks later, I am still getting this exact same error while trying
    to build a release.

    Since I posted my original problem, I've had to completely replace my
    /usr/src tree due to a hard drive crash. I can still build (and
    run) -current without a problem, though.

    I use a small script (based on the steps listed in man release) to make a
    release. This script is run as as the third step in my make current
    process. Step 1 is a script that updates the source and builds the new
    (generic) kernel. That script finishes by setting a flag in /etc/ and
    rebooting.

    Step 2 runs out of rc.local if its flag file is found. It is responsible
    for building the rest of the world, including several programs that I run
    that are not part of the OpenBSD default installation. It also sets a
    flag file in /etc and then reboots.

    The make_release script below runs out of rc.local if its flag file is
    found.

    Here is the script:

    #!/bin/sh
    # Make release program
    # 'cuz I'm sick of typing in all of those commands!
    # 2/5/2002 Jeff Ross
    #get rid of the flag file

    rm -f /etc/makerelease

    export DESTDIR=/destdir RELEASEDIR=/releasedir
    cd /usr/src/distrib/crunch
    make clean && make && make install
    #DESTDIR is on its own partition
    # so newfs it to clean it out for sure

    umount /dev/wd0g
    newfs wd0g
    mount /dev/wd0g

    cd /usr/src/etc && nice make release
    if [ $? != 0 ]; then
            echo Make release failed > /home/jross/fail
            exit
    fi
    cd /usr/src/distrib/sets && sh checkflist
    #add my customized package in place of game
    cd /
    gnutar -czvf /releasedir/game32.tgz --files-from=/root/newfiles
    cp /releasedir/bsd.rd /

    #####end of script

    Here, for completeness, is last output I get from this script:

    copying root image...
    ...copied 1797120 bytes
    cp bsd.rd bsd.strip
    strip bsd.strip
    gzip -c9 bsd.strip > bsd.gz
    dd if=/dev/zero of=/var/tmp/image.16241 bs=10k count=144
    144+0 records in
    144+0 records out
    1474560 bytes transferred in 0.581 secs (2534575 bytes/sec)
    vnconfig -v -c svnd0 /var/tmp/image.16241
    svnd0: 1474560 bytes on /var/tmp/image.16241
    disklabel -w -r svnd0 floppy3
    newfs -m 0 -o space -i 524288 -c 80 /dev/rsvnd0a
    /dev/rsvnd0a: 2880 sectors in 80 cylinders of 2 tracks, 18 sectors
            1.4MB in 1 cyl groups (80 c/g, 1.41MB/g, 32 i/g)
    super-block backups (for fsck -b #) at:
     32,
    mount /dev/svnd0a /mnt
    cp /destdir/usr/mdec/boot /usr/src/distrib/i386/ramdiskB/obj/boot
    strip /usr/src/distrib/i386/ramdiskB/obj/boot
    dd if=/usr/src/distrib/i386/ramdiskB/obj/boot of=/mnt/boot bs=512
    104+0 records in
    104+0 records out
    53248 bytes transferred in 0.045 secs (1180744 bytes/sec)
    dd if=bsd.gz of=/mnt/bsd bs=512
    dd: /mnt/bsd: No space left on device
    2681+0 records in
    2680+0 records out
    1372160 bytes transferred in 1.318 secs (1041078 bytes/sec)
    *** Error code 1

    Stop in /usr/src/distrib/i386/ramdiskB (line 32 of
    /usr/src/distrib/i386/ramdiskB/../common/Makefile.inc).
    *** Error code 1

    Stop in /usr/src/distrib/i386.
    *** Error code 1

    Stop in /usr/src/distrib.
    *** Error code 1

    Stop in /usr/src/etc (line 357 of Makefile).

    Am I the only one having this problem?

    Thanks in advance,

    Jeff

    -- 
    Jeff Ross
    Open Vistas Networking, Inc.
    http://www.openvistas.net