-
Notifications
You must be signed in to change notification settings - Fork 402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove False Positive Errors When Using 'livenet' And Squashfs #2595
Conversation
@FedericoVaga Thanks. 1./ Can you please change the title of both commit messages from to 2./ Also can you please rebase on top of latest master so that "Pull Request Labeler" is green ? |
Looking for directories in `/sys/fs` is not exhaustive. Not all available filesystems are listed there. A library function has been already developed for such a use case. It is `load_fstype``. This patch replaces custom code with a call to `load_fstype` Signed-off-by: Federico Vaga <federico.vaga@cern.ch>
3e64129
to
dbaf3d3
Compare
@LaszloGombos |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Found some small issues with the comment.
CC @FGrose
systemctl start checkisomd5@"${p}".service | ||
else | ||
checkisomd5 --verbose "$check_dev" | ||
# Check ISO checksum only If we have a path to a block device (or just its name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If --> if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
checkisomd5 --verbose "$check_dev" | ||
# Check ISO checksum only If we have a path to a block device (or just its name | ||
# without '/dev'). In other words, in this context, we perform the check only | ||
# if the give $livedev is not a filesystem file image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
give --> given
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
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 <federico.vaga@cern.ch>
dbaf3d3
to
c8f1708
Compare
This issue is being marked as stale because it has not had any recent activity. It will be closed if no further activity occurs. If this is still an issue in the latest release of Dracut and you would like to keep it open please comment on this issue within the next 7 days. Thank you for your contributions. |
Hi all, is there something I should do to make this pull-request move forward? |
This pull request changes...
Changes
Remove the following false positive error messages when using a squashfs image using the livenet module
modprobe
can'tsquashfs
driver when actually it is built-in in the kerneldmsquash-live-root
trying to verify the ISO checksum for a squashfs filesystem file imageChecklist
Fixes #