run_hook () { # Format and run immediately cow_device if [[ "${format}" == "y" ]]; then sfdisk -l [[ -z "${formatdevice}" ]] && formatdevice=/dev/sda [[ -z "${formatpartition}" ]] && formatpartition=3 fdisk ${formatdevice} <