fstab-generator: don't continue on OOM

This commit is contained in:
Lennart Poettering 2015-04-08 20:27:11 +02:00
parent 481b3f9e99
commit 171181bcd6

View file

@ -404,7 +404,7 @@ 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 (!what) if (!what)
log_oom(); return log_oom();
if (!arg_root_options) if (!arg_root_options)
opts = arg_root_rw > 0 ? "rw" : "ro"; opts = arg_root_rw > 0 ? "rw" : "ro";