chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove src/activate
[elogind.git]
/
src
/
fstab-generator
/
fstab-generator.c
diff --git
a/src/fstab-generator/fstab-generator.c
b/src/fstab-generator/fstab-generator.c
index 2ece12f79202d24bee85944c0fce862ff0dd57b3..cd1478e54dcaa70e48fe88c3220c68952bf81d0c 100644
(file)
--- a/
src/fstab-generator/fstab-generator.c
+++ b/
src/fstab-generator/fstab-generator.c
@@
-403,10
+403,8
@@
static int add_root_mount(void) {
}
what = fstab_node_to_udev_node(arg_root_what);
}
what = fstab_node_to_udev_node(arg_root_what);
- if (!path_is_absolute(what)) {
- log_debug("Skipping entry what=%s where=/sysroot type=%s", what, strna(arg_root_fstype));
- return 0;
- }
+ if (!what)
+ log_oom();
if (!arg_root_options)
opts = arg_root_rw > 0 ? "rw" : "ro";
if (!arg_root_options)
opts = arg_root_rw > 0 ? "rw" : "ro";
@@
-421,7
+419,7
@@
static int add_root_mount(void) {
"/sysroot",
arg_root_fstype,
opts,
"/sysroot",
arg_root_fstype,
opts,
-
1
,
+
is_device_path(what) ? 1 : 0
,
false,
false,
false,
false,
false,
false,