From: Antonio Alvarez Feijoo Date: Thu, 19 Jan 2023 09:42:14 +0000 (+0100) Subject: refactor(virtiofs): remove exit after die X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e971c788f0a4a494eedf291b988d698849c36c22;p=thirdparty%2Fdracut.git refactor(virtiofs): remove exit after die The `die` function already ends with `exit 1`. --- diff --git a/modules.d/95virtiofs/mount-virtiofs.sh b/modules.d/95virtiofs/mount-virtiofs.sh index e6b9d4160..3d7388456 100755 --- a/modules.d/95virtiofs/mount-virtiofs.sh +++ b/modules.d/95virtiofs/mount-virtiofs.sh @@ -10,7 +10,6 @@ if [ "${fstype}" = "virtiofs" -o "${root%%:*}" = "virtiofs" ]; then mount -t virtiofs -o "$rflags" "${root#virtiofs:}" "$NEWROOT" 2>&1 | vinfo if ! ismounted "$NEWROOT"; then die "virtiofs: failed to mount root fs" - exit 1 fi info "virtiofs: root fs mounted (options: '${rflags}')"