[ previous ] [ next ] [ threads ]
 From:  Marc-Henri Boisis-delavaud <marc dash henri dot boisis dash delavaud at univ dash lr dot fr>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  modify m0n0 image
 Date:  Wed, 22 Jun 2005 12:12:22 +0200

before I used script from http://www.xs4all.nl/~fredmol/m0n0/

because  I need to modify m0n0wall code, but with generic- 
pc-1.2b9.img the script fail to make a new img:

disklabel: /tmp/m0n0install354/imageCopy/boot/boot1: No such file or  
newfs: ioctl (GDINFO): Invalid argument
newfs: /dev/vn0c: can't read disk label; disk type must be specified
mount: /dev/vn0c on /tmp/m0n0install354/mnt: incorrect super block
umount: /tmp/m0n0install354/mnt: not currently mounted

this is an extract of the scipt
# Create the file system.
         system "dd if=/dev/zero of=$imageBin bs=1k count= 
         system "vnconfig -s labels -c vn0 $imageBin";
         system "disklabel -BR -b $imageCopy/boot/boot1 -s $imageCopy/ 
vn0 $label";
         system "newfs -b 8192 -f 1024 /dev/vn0c";
         system "mount /dev/vn0c $mnt";
         system "cd $imageCopy; find . -print | cpio -pdmu --quiet  
         system "gzip -c -9 $imageBin > $tgtIso";

Can anyone can help me to rewrite the script ? at first sight it is  
just the path to boot1 wich has changed...