mirror of
https://github.com/systemd/systemd.git
synced 2024-10-30 06:25:37 +03:00
fstab-generator: also skip other network filesystems and live image
This commit is contained in:
parent
77b8e92de8
commit
155e1bb4e7
@ -769,6 +769,21 @@ static int add_sysroot_mount(void) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (startswith(arg_root_what, "cifs://")) {
|
||||
log_debug("Skipping root directory handling, as root on CIFS was requested.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (startswith(arg_root_what, "iscsi:")) {
|
||||
log_debug("Skipping root directory handling, as root on iSCSI was requested.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (startswith(arg_root_what, "live:")) {
|
||||
log_debug("Skipping root directory handling, as root on live image was requested.");
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (streq(arg_root_what, "tmpfs")) {
|
||||
/* If root=tmpfs is specified, then take this as shortcut for a writable tmpfs mount as root */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user