#!/bin/bash

mkdir liveshell &&
mkdir isomount &&
mount -o loop $* isomount &&
rsync --exclude=/live/filesystem.squashfs -a isomount/ liveshell &&
unsquashfs isomount/live/filesystem.squashfs &&
mv squashfs-root debian_livecd &&
umount isomount &&
rm -r isomount &&
echo "Update grub.cfg with kernel name please"
