fstab-generator: don't process root= if it happens to be "gpt-auto" (#3452)

As that's handled by "gpt-auto-generator".

Fixes: #3404
This commit is contained in:
Lennart Poettering 2016-06-07 10:23:20 +02:00 committed by Daniel Mack
parent 646b997c11
commit 138f4c6906
1 changed files with 6 additions and 0 deletions

View File

@ -496,6 +496,12 @@ static int add_sysroot_mount(void) {
return 0;
}
if (streq(arg_root_what, "gpt-auto")) {
/* This is handled by the gpt-auto generator */
log_debug("Skipping root directory handling, as gpt-auto was requested.");
return 0;
}
what = fstab_node_to_udev_node(arg_root_what);
if (!what)
return log_oom();