Logging a warning when an expected image file is missing.
authorTails developers <tails@boum.org>
Tue, 16 Dec 2014 13:09:55 +0000 (14:09 +0100)
committerDaniel Baumann <mail@daniel-baumann.ch>
Wed, 29 Apr 2015 04:37:40 +0000 (06:37 +0200)
components/9990-overlay.sh

index 9282276..a64c78b 100755 (executable)
@@ -117,6 +117,8 @@ setup_unionfs ()
                                log_begin_msg "Mounting \"${image}\" on \"${mpoint}\" via \"${backdev}\""
                                mount -t "${fstype}" -o ro,noatime "${backdev}" "${mpoint}" || panic "Can not mount ${backdev} (${image}) on ${mpoint}"
                                log_end_msg
+                       else
+                               log_warning_msg "Could not find image '${image}'. Most likely it is listed in a .module file, perhaps by mistake."
                        fi
                done
        else