2017-11-18 17:09:20 +01:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1+ */
|
2014-03-05 22:26:10 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
2017-12-09 19:23:26 +01:00
|
|
|
int generator_open_unit_file(
|
|
|
|
const char *dest,
|
|
|
|
const char *source,
|
|
|
|
const char *name,
|
|
|
|
FILE **file);
|
|
|
|
|
2017-07-10 05:31:47 +02:00
|
|
|
int generator_add_symlink(const char *root, const char *dst, const char *dep_type, const char *src);
|
|
|
|
|
2015-05-02 19:01:29 +02:00
|
|
|
int generator_write_fsck_deps(
|
|
|
|
FILE *f,
|
|
|
|
const char *dir,
|
|
|
|
const char *what,
|
|
|
|
const char *where,
|
|
|
|
const char *type);
|
|
|
|
|
|
|
|
int generator_write_timeouts(
|
|
|
|
const char *dir,
|
|
|
|
const char *what,
|
|
|
|
const char *where,
|
|
|
|
const char *opts,
|
|
|
|
char **filtered);
|
2016-05-12 18:42:39 +02:00
|
|
|
|
2017-01-24 17:04:32 +01:00
|
|
|
int generator_write_device_deps(
|
2017-11-21 23:18:05 +01:00
|
|
|
const char *dir,
|
|
|
|
const char *what,
|
|
|
|
const char *where,
|
|
|
|
const char *opts);
|
2017-01-24 17:04:32 +01:00
|
|
|
|
2016-05-12 18:42:39 +02:00
|
|
|
int generator_write_initrd_root_device_deps(
|
|
|
|
const char *dir,
|
|
|
|
const char *what);
|
2017-11-21 23:18:05 +01:00
|
|
|
|
|
|
|
int generator_hook_up_mkswap(
|
|
|
|
const char *dir,
|
|
|
|
const char *what);
|
|
|
|
int generator_hook_up_mkfs(
|
|
|
|
const char *dir,
|
|
|
|
const char *what,
|
|
|
|
const char *where,
|
|
|
|
const char *type);
|
2017-11-29 20:02:11 +01:00
|
|
|
int generator_hook_up_growfs(
|
|
|
|
const char *dir,
|
|
|
|
const char *where,
|
|
|
|
const char *target);
|
2018-11-19 21:32:11 +01:00
|
|
|
|
|
|
|
void log_setup_generator(void);
|