-
Notifications
You must be signed in to change notification settings - Fork 909
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
Use partprobe
to re-read partition table
#856
Conversation
I just sigend the CLA. |
Seems, you should do the last step from hacking:
|
Done |
@nicolasbock , thanks for this submission! The overall idea is a good one, but unfortunately |
The `blkdev` command is fragile re-reading partition tables if a partition is mounted. This change replaces it with the `partprobe` command. Closes-Bug: https://bugs.launchpad.net/cloud-init/+bug/1920939 Signed-off-by: Nicolas Bock <nicolas.bock@canonical.com>
Thanks @TheRealFalcon for the review! I have updated the PR to include |
Hello! Thank you for this proposed change to cloud-init. This pull request is now marked as stale as it has not seen any activity in 14 days. If no activity occurs within the next 7 days, this pull request will automatically close. If you are waiting for code review and you are seeing this message, apologies! Please reply, tagging mitechie, and he will ensure that someone takes a look soon. (If the pull request is closed and you would like to continue working on it, please do tag mitechie to reopen it.) |
Hi @mitechie ! Could you have a look at this PR? Thanks! |
Thanks for the ping. Let me check in with @TheRealFalcon about getting another look. |
Thanks! |
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.
@nicolasbock My apologies! I saw your comment earlier but I misread it as you were going to make the change, not that you had already made the change.
This looks good to me now. Thanks!
Thanks again for the review @TheRealFalcon ! |
In canonical#856 we added the ability to use partprobe instead of blockdev for reading partitions. Test that partprobe succeeds where blockdev fails. Also add a mechanism to our integration tests to allow a callable to be called between `lxc init` and `lxc start`
In canonical#856 we added the ability to use partprobe instead of blockdev for reading partitions. Test that partprobe succeeds where blockdev fails. Also add a mechanism to our integration tests to allow a callable to be called between `lxc init` and `lxc start`
In canonical#856 we added the ability to use partprobe instead of blockdev for reading partitions. Test that partprobe succeeds where blockdev fails. Also add a mechanism to our integration tests to allow a callable to be called between `lxc init` and `lxc start`
In #856 we added the ability to use partprobe instead of blockdev for reading partitions. Test that partprobe succeeds where blockdev fails. Also add a mechanism to our integration tests to allow a callable to be called between `lxc init` and `lxc start`
The
blkdev
command is fragile re-reading partition tables if apartition is mounted. This change replaces it with the
partprobe
command.
Closes-Bug: https://bugs.launchpad.net/cloud-init/+bug/1920939
Signed-off-by: Nicolas Bock nicolas.bock@canonical.com