continue instead of terminating
This commit is contained in:
parent
129ad17b36
commit
2d26ea0377
10
init
10
init
@ -73,13 +73,13 @@ parse_cmdline()
|
|||||||
|
|
||||||
for line in $cmdline; do case "$line" in
|
for line in $cmdline; do case "$line" in
|
||||||
debug | debug=1) set -x ;;
|
debug | debug=1) set -x ;;
|
||||||
rootfstype=*) root_type="${line##*=}" ;;
|
rootfstype=*) root_type="${line##*=}" ;;
|
||||||
rootflags=*) root_opts="${line##*=}" ;;
|
rootflags=*) root_opts="${line##*=}" ;;
|
||||||
ro | rw) rorw="-o $line" ;;
|
ro | rw) rorw="-o $line" ;;
|
||||||
--) init_args="${cmdline##*--}"; break ;;
|
--) init_args="${cmdline##*--}"; break ;;
|
||||||
*=*) command export "$line" ;;
|
*=*) command export "$line" ;;
|
||||||
*) command export "${line}=1" ;;
|
*) command export "${line}=1" ;;
|
||||||
esac; done 2> /dev/null || :
|
esac 2> /dev/null || continue; done
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_devmgr()
|
setup_devmgr()
|
||||||
@ -158,9 +158,7 @@ trigger_lvm()
|
|||||||
lvm lvchange $@ "$lvm_tag"
|
lvm lvchange $@ "$lvm_tag"
|
||||||
else
|
else
|
||||||
lvm vgchange $@
|
lvm vgchange $@
|
||||||
fi
|
fi || panic "failed to trigger LVM"
|
||||||
|
|
||||||
[ "$?" = 0 ] || panic "failed to trigger LVM"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mount_root()
|
mount_root()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user