#!/bin/sh

debootstrap --arch=amd64 stable ./rootfs https://deb.debian.org/debian
truncate -s 5G debian.img
mkfs.ext4 debian.img
mkdir mnt
mount debian.img mnt
cp -ar rootfs/* mnt
umount mnt
rm -rf mnt rootfs
chmod 666 debian.img
