]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
refactor(virtiofs): remove exit after die
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Thu, 19 Jan 2023 09:42:14 +0000 (10:42 +0100)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 27 Jan 2023 08:01:50 +0000 (08:01 +0000)
The `die` function already ends with `exit 1`.

modules.d/95virtiofs/mount-virtiofs.sh

index e6b9d41606044c35b179d7fafc87541cd2f23ddb..3d7388456a1cef8a0c527f12659cfdcb040f4de9 100755 (executable)
@@ -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}')"