[ previous ] [ next ] [ threads ]
 From:  Paul Taylor <PaulTaylor at winn dash dixie dot com>
 To:  telenieko at telenieko dot com, Jonathan De Graeve <Jonathan dot De dot Graeve at imelda dot be>
 Cc:  m0n0wall dash dev at lists dot m0n0 dot ch
 Subject:  RE: [m0n0wall-dev] Beta build system
 Date:  Tue, 7 Feb 2006 15:38:47 -0500
Here's a slightly modified version of our gen shell script for a generic PC
image, along with the disk.label file.  It shouldn't be very difficult to
use something along these lines to generate a batch of images each day:


set VERSION="1.21r50"
set BOOTDIR = /bootdir
echo $VERSION > $MWROOT/etc/version
echo "generic-pc" > $MWROOT/etc/platform
date > $MWROOT/etc/version.buildtime
cd /images/generic
rm mfsroot.gz
dd if=/dev/zero of=mfsroot bs=1k count=15360
vnconfig -s labels -c vn0 mfsroot
disklabel -rw vn0 auto
newfs -b 8192 -f 1024 -o space -m 0 /dev/vn0c
mount /dev/vn0c /mnt
cd /mnt
tar -cf - -C $MWROOT ./ | tar -xvpf -
cd /images/generic
umount /mnt
vnconfig -u vn0
gzip -9 mfsroot
dd if=/dev/zero of=image.bin bs=1k count=8192
vnconfig -s labels -c vn0 image.bin
disklabel -Brw -b $BOOTDIR/boot1 -s $BOOTDIR/boot2 vn0 auto
disklabel -BR vn0 disk.label
newfs -b 8192 -f 1024 -o space -m 0 /dev/vn0a
mount /dev/vn0a /mnt
cp /sys/compile/M0N0WALL_GENERIC/kernel.gz /mnt
cp mfsroot.gz /mnt
mkdir /mnt/boot
cp $BOOTDIR/{loader,loader.rc} /mnt/boot
mkdir /mnt/conf
cp $MWROOT/conf.default/config.xml /mnt/conf
umount /mnt
vnconfig -u vn0
gzip -9 image.bin
mv image.bin.gz generic-pc-$VERSION.img

# /dev/vn0c:
type: unknown
disk: amnesiac
bytes/sector: 512
sectors/track: 32
tracks/cylinder: 64
sectors/cylinder: 2048
cylinders: 8
sectors/unit: 16384
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:    16384        0    4.2BSD        0     0         # (Cyl.    0 - 7)
  c:    16384        0    unused        0     0         # (Cyl.    0 -

-----Original Message-----
From: Marc Fargas [mailto:telenieko at gmail dot com] 
Sent: Tuesday, February 07, 2006 12:07 PM
To: Jonathan De Graeve
Cc: m0n0wall dash dev at lists dot m0n0 dot ch
Subject: Re: [m0n0wall-dev] Beta build system

Uhmm like a daily snapshot image for every platform ? sure Manuel can
set it up, or somebody with a FreeBSD box! (I don't have one ;((()

On 2/7/06, Jonathan De Graeve <Jonathan dot De dot Graeve at imelda dot be> wrote:
> Now that we have a SVN, it would be nice to have an automatic build
> system to make beta (or even stable release) images.
> Anyone having an idea on how to do this?
> J.