Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dmsquash-live: do not check ISO md5 if image filesystem
The ISO checksum code was executed independently of the provided `$livedev`. Often, this is a loop device pointing to an ISO image, but in other cases `dmsquash-live-root` receives the path to a filesystem image. In this case, we can't use `udevadm` to extract information because it is not a device, and trying to do that leads to `udevadm` error messages (but not blocking). Therefore, the ISO checksum check must be performed only if the provided `$livedev` is **not** a regular file. Signed-off-by: Federico Vaga <[email protected]>
- Loading branch information