. $config
askyes "outer-extract" "Extract the outer knoppix iso"
# create a directory tree containing the files of the knoppix image

[ -f $knoppixiso ] || {
    echo "$knoppixiso not found"
    exit 99
}

mkdir $knxmnt || true
mount -r -o loop $knoppixiso $knxmnt
mkdir -p $newisodir
tar --exclude KNOPPIX/KNOPPIX -C $knxmnt -cf - KNOPPIX | tar -C $newisodir -xvf -
extract_compressed_fs $knxmnt/KNOPPIX/KNOPPIX > $tmpiso
umount $knxmnt
rmdir $knxmnt
