#!/bin/bash RASP=raspberrypi-opensuse-20121230 [ -r $RASP.img ] || exit 1 mkdir -p $RASP.mnt losetup -o $((157696*512)) /dev/loop1 $RASP.img mount /dev/loop1 $RASP.mnt ./startrootfs $RASP.mnt umount $RASP.mnt losetup -d /dev/loop1