After a power failure, my apu2 booted, but its sdmmc controller didn't
attach properly. A few days later I was wondering why I didn't get the
usual dump output from the backup of the root filesystem in my daily
It turns out that daily(8) fails silently if it can't find the backup
volume. Since this happens due to a failure of some kind or because of
misconfiguration, I suggest that we print an error message, so this can
be easily spotted in the mail.
RCS file: /var/cvs/src/etc/daily,v
retrieving revision 1.90
diff -u -p -r1.90 daily
--- etc/daily 10 Jul 2017 11:18:48 -0000 1.90
+++ etc/daily 4 Feb 2018 22:28:12 -0000
@@ -90,7 +90,10 @@ while [ "X$ROOTBACKUP" = X1 ]; do
- sysctl -n hw.disknames | grep -Fqw $bakdisk || break
+ if ! sysctl -n hw.disknames | grep -Fqw $bakdisk; then
+ echo "Backup disk '$bakdisk' not available in hw.disknames."