#include "mount-setup.h"
#include "log.h"
+#include "macro.h"
+#include "util.h"
enum {
MOUNT_WHAT,
/* The access mode here doesn't really matter too much, since
* the mounted file system will take precedence anyway. */
- mkdir(t[MOUNT_WHERE], 0755);
+ mkdir_p(t[MOUNT_WHERE], 0755);
log_debug("Mounting %s to %s of type %s with options %s.",
t[MOUNT_WHAT],
t[MOUNT_WHERE],
t[MOUNT_TYPE],
- t[MOUNT_OPTIONS]);
+ strna(t[MOUNT_OPTIONS]));
if (mount(t[MOUNT_WHAT],
t[MOUNT_WHERE],