Skip syslog for dirinstall

This also moves the imageInstall and dirInstall flag setting to before
logging is imported since the syslog handling depends on them.

(cherry picked from commit 39851fcb78e67ec8704b875ee9a3d1f393310f94)
Ignore safe_dbus errors in keyboard setup

When running inside a mock environment there is no dbus connection
available. When using --image or --dirinstall don't raise an error, log
it but return sane defaults so that the installation doesn't crash.

(cherry picked from commit 8e4e32474181a1fd7dd63a7c9c5dc965c825f0fa)
Skip networkInitialize for image and dir installations

Assume that the network has been setup by the host system which could be
a desktop, a minimal system or a mock chroot.

(cherry picked from commit a74cf0288d76fe2bdc0736b75a370db284b8fe9a)
Modify nm to return defaults when no dbus is available

When running inside a mock there is no dbus connection. When using
--image or --dirinstall don't raise an error, log it but return sane
defaults so that the installation doesn't crash.

(cherry picked from commit e632be2809474e462675fbc95afa2676aca0f4b4)