X Tutup
Skip to content

Commit 155e1bb

Browse files
committed
fstab-generator: also skip other network filesystems and live image
1 parent 77b8e92 commit 155e1bb

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/fstab-generator/fstab-generator.c

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,21 @@ static int add_sysroot_mount(void) {
769769
return 0;
770770
}
771771

772+
if (startswith(arg_root_what, "cifs://")) {
773+
log_debug("Skipping root directory handling, as root on CIFS was requested.");
774+
return 0;
775+
}
776+
777+
if (startswith(arg_root_what, "iscsi:")) {
778+
log_debug("Skipping root directory handling, as root on iSCSI was requested.");
779+
return 0;
780+
}
781+
782+
if (startswith(arg_root_what, "live:")) {
783+
log_debug("Skipping root directory handling, as root on live image was requested.");
784+
return 0;
785+
}
786+
772787
if (streq(arg_root_what, "tmpfs")) {
773788
/* If root=tmpfs is specified, then take this as shortcut for a writable tmpfs mount as root */
774789

0 commit comments

Comments
 (0)
X Tutup