Would be nice if this would work on loopback devices
fallocate -l 950M /tmp/image.dd
sfdisk ...
losetup -o $(( 2048*512 )) /dev/loop0 /tmp/image.dd
losetup -o $(( 1003520*512 )) /dev/loop1 /tmp/image.dd
mkfs.vfat /dev/loop0
mkfs.ext4 -L persistence /dev/loop1
grml2usb ... /dev/loop0
I don't see why is couldn't, but currently it fails upon installing the MBR, because it cannot find de device of /dev/loop0, which is the disk image /tmp/image.dd