From 2d26ea037760069ffee9583686abe1478375d1a8 Mon Sep 17 00:00:00 2001 From: illiliti Date: Thu, 28 May 2020 12:17:49 +0300 Subject: [PATCH] continue instead of terminating --- init | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/init b/init index 0e1fc78..9597718 100755 --- a/init +++ b/init @@ -73,13 +73,13 @@ parse_cmdline() for line in $cmdline; do case "$line" in debug | debug=1) set -x ;; - rootfstype=*) root_type="${line##*=}" ;; - rootflags=*) root_opts="${line##*=}" ;; + rootfstype=*) root_type="${line##*=}" ;; + rootflags=*) root_opts="${line##*=}" ;; ro | rw) rorw="-o $line" ;; --) init_args="${cmdline##*--}"; break ;; *=*) command export "$line" ;; *) command export "${line}=1" ;; - esac; done 2> /dev/null || : + esac 2> /dev/null || continue; done } setup_devmgr() @@ -158,9 +158,7 @@ trigger_lvm() lvm lvchange $@ "$lvm_tag" else lvm vgchange $@ - fi - - [ "$?" = 0 ] || panic "failed to trigger LVM" + fi || panic "failed to trigger LVM" } mount_root()