generator: run various generators only run on the host, not in initrd
These 5 generators only make sense on the host,not in the initrd, hence if they end up in the initrd anyway, make them exit quickly.
This commit is contained in:
@@ -18,9 +18,9 @@
|
||||
|
||||
static int run(const char *dest, const char *dest_early, const char *dest_late) {
|
||||
|
||||
if (in_initrd() > 0) {
|
||||
if (in_initrd()) {
|
||||
log_debug("Skipping generator, running in the initrd.");
|
||||
return 0;
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
if (detect_container() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user