The hook scripts are now only passed a single argument on the command line - the name of the mount point. The hostname is now accessible via the environment.
Migrated most of the commands to setup the new host into external hooks.