#! /bin/bash # build the linux-root filesystem # build the flash dd if=/dev/zero of=flash.img bs=1k count=1 genromfs -a 512 -f romfs.img -d flash/ cat romfs.img >> flash.img rm -f romfs.img losetup /dev/loop0 -o 1024 flash.img mount -t romfs -o ro /dev/loop0 /mnt silo -C /mnt/etc/silo.conf -J flash.img -i /mnt/boot/ieee32.b \ -b /mnt/boot/second.b umount /mnt losetup -d /dev/loop0