dd if=/dev/zero of=./rootfs.img \
bs=1M count=$IMGSIZE
fi
+ else
+ echo "creating rootfs.img"
+ dd if=/dev/zero of=./rootfs.img \
+ bs=1M count=$IMGSIZE
fi
# make fs and mount
umount_if_mounted rootfs.mnt
mkfs.${ROOTFS} $FORCEFS -L rootfs ./rootfs.img
rm -rf rootfs.mnt
mkdir rootfs.mnt
+ modprobe loop
mount -o loop ./rootfs.img ./rootfs.mnt
# debootstrap first part
debootstrap --verbose --arch $ARCH --variant=minbase \
# profile
echo -en "\nalias l='ls -al --color'\n\n" >> /etc/profile
# post install hooks
- for file in 'ls /post_routines'; do
+ for file in `ls /post_routines`; do
. /post_routines/$file
done
}