generator.c revision 6db615c17ee7a434f9e0c40d67a1f833d8f3cc9d
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
This file is part of systemd.
Copyright 2014 Lennart Poettering
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
systemd is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
#include <unistd.h>
#include "util.h"
#include "special.h"
#include "mkdir.h"
#include "unit-name.h"
#include "generator.h"
FILE *f,
const char *dest,
const char *what,
const char *where,
const char *fstype) {
assert(f);
if (!is_device_path(what)) {
return 0;
}
const char *checker;
int r;
if (r < 0) {
/* treat missing check as essentially OK */
}
}
char *lnk;
return -errno;
}
} else {
if (!fsck)
return log_oom();
fprintf(f,
"RequiresOverridable=%s\n"
"After=%s\n",
fsck,
fsck);
}
return 0;
}