add lspartmap().
move comment to proper place.
add tmpdir_path().
cleanup code.
make sure to define "function".
copy_mbr tmpdir_path().
add sync_ptab().
add checkroot().
fix copy_mbr arguments.
add setup_bootloader().
dst_filename -> dst_filepath
fix fstype pattern match.
enable to set destination filepath.
make sure to use "if" statement.
fix disk label order.
add mkdisk().
add pipefail option.
cleanup code layout.
copy_mbr -> cpmbr
sync_ptab -> cpptab