9990-misc-helpers.sh: ensure to appened to boot.log file
authorMichael Prokop <mika@grml.org>
Fri, 10 Jul 2020 07:05:19 +0000 (09:05 +0200)
committerMichael Prokop <mika@grml.org>
Fri, 10 Jul 2020 07:06:49 +0000 (09:06 +0200)
boot.log might exist already, don't overwrite it but instead append output

components/9990-misc-helpers.sh

index c7a82fb..6f84ead 100755 (executable)
@@ -761,7 +761,7 @@ try_mount ()
                        fstype=$(get_fstype "${dev}")
                fi
                mount -t "${fstype}" -o "${opts}" "${dev}" "${mountp}" || \
-               ( echo "SKIPPING: Cannot mount ${dev} on ${mountp}, fstype=${fstype}, options=${opts}" > boot.log && return 0 )
+               ( echo "SKIPPING: Cannot mount ${dev} on ${mountp}, fstype=${fstype}, options=${opts}" >> boot.log && return 0 )
        fi
 }