Release new version 1:20210208+grml.5
[live-boot-grml.git] / components / 0030-verify-checksums
index 3249b34..4453558 100755 (executable)
@@ -51,7 +51,7 @@ Verify_checksums ()
                                        echo "Checking ${_CHECKSUM}..." > "${_TTY}"
 
                                        # Verify checksums
-                                       /bin/${_DIGEST}sum -c "${_CHECKSUM}" < "${_TTY}" > "${_TTY}"
+                                       grep -v '^#' "${_CHECKSUM}" | /bin/${_DIGEST}sum -c > "${_TTY}"
                                        _RETURN="${?}"
 
                                        # Stop after first verification
@@ -72,7 +72,7 @@ Verify_checksums ()
 
                        # Unmount live-media
                        cd /
-                       umount -f ${_MOUNTPOINT} > /dev/null 2>&1
+                       umount -f "${_MOUNTPOINT}" > /dev/null 2>&1
                        sync
 
                        # Attempt to remount all mounted filesystems read-only