# vim: set ft=sh:
run_hook() {
    if [ "${root}" = "tarball" ]; then
        # set mount handler
        mount_handler="tarball_mount_handler"
    fi
}

tarball_mount_handler() {
    mount -t tmpfs root "$1"
    wget -O- ${tarball} | tar -Jx -C "$1"
}

# vim: set ft=sh ts=4 sw=4 et:
