-
Notifications
You must be signed in to change notification settings - Fork 400
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
Improve lsinitrd to ease debugging for developers and end users. #2552
base: master
Are you sure you want to change the base?
Conversation
This is helpful for debugging some kdump mkdumprd that prefer dracut-squash. To not break when unsquashfs upstream would change the default path prefix, explicitly specify the prefix as argument so users always find files from squash-root.img by using the same hardcoded prefix, both in the file listing and when extracting files. Regarding extract_files (without --unpack): Unsquashfs cannot seem to extract to stdout, so take a detour via a temp file. Regarding --unpack: Even though cpio for comparison would not overwrite files on extracing, pass the force flag to unsquashfs on extracing individual files. Otherwise, unsquashfs complains about its relative top-level directory "squashfs-root" which already exists after the first file was extracted. With the force flag, the user can specify multiple files to extract from squash-root.img, or can invoke lsinitrd multiple times in the same directory to extract multiple files from squash-root.img. Signed-off-by: Steffen Maier <[email protected]>
It's more convenient for debugging than extracting or unpacking the corresponding files. Signed-off-by: Steffen Maier <[email protected]>
I'm not sure how this code change in lsinitrd could affect the few failing integration tests dealing with dracut core and modules. Example fails:
Some run into an initqueue timeout waiting for the root-fs dependencies. Some test seems to get I/O errors after the boot and root-fs mount were already successful:
|
Those failures are unrelated to your change - see #2506 |
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. |
I think this is still interesting, so commenting to keep it open after the stale bot added the stale label. |
Changes to lsinitrd
enable unpacking files from squash-root.img
This is helpful for debugging some kdump mkdumprd that prefer dracut-squash.
print stored dracut cmdline
It's more convenient for debugging than extracting or unpacking the corresponding files.
Checklist
Factored out from another PR (#2534 (comment)).