|
||||||||
Hello 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 directory 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= $newImageSize"; system "vnconfig -s labels -c vn0 $imageBin"; system "disklabel -BR -b $imageCopy/boot/boot1 -s $imageCopy/ boot/boot2 vn0 $label"; system "newfs -b 8192 -f 1024 /dev/vn0c"; system "mount /dev/vn0c $mnt"; system "cd $imageCopy; find . -print | cpio -pdmu --quiet $mnt"; unmount(); 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... Marc |