r = mount_find_pri(me, &pri);
if (r < 0) {
log_error("Failed to parse priority");
r = mount_find_pri(me, &pri);
if (r < 0) {
log_error("Failed to parse priority");
if (passno != 0) {
r = generator_write_fsck_deps(f, arg_dest, what, where, fstype);
if (passno != 0) {
r = generator_write_fsck_deps(f, arg_dest, what, where, fstype);
- if (!noauto) {
- if (post) {
- lnk = strjoin(arg_dest, "/", post, nofail || automount ? ".wants/" : ".requires/", name, NULL);
- if (!lnk)
- return log_oom();
-
- mkdir_parents_label(lnk, 0755);
- if (symlink(unit, lnk) < 0) {
- log_error("Failed to create symlink %s: %m", lnk);
- return -errno;
- }
+ if (!noauto && post) {
+ lnk = strjoin(arg_dest, "/", post, nofail || automount ? ".wants/" : ".requires/", name, NULL);
+ if (!lnk)
+ return log_oom();
+
+ mkdir_parents_label(lnk, 0755);
+ if (symlink(unit, lnk) < 0) {
+ log_error("Failed to create symlink %s: %m", lnk);
+ return -errno;
static int add_root_mount(void) {
_cleanup_free_ char *o = NULL, *what = NULL;
static int add_root_mount(void) {
_cleanup_free_ char *o = NULL, *what = NULL;