-
Notifications
You must be signed in to change notification settings - Fork 93
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
blockdev: use 'kpartx' for reading/clearing partition table of dm-devices #211
Conversation
Related: #91 We generally try to minimize dependencies on external programs, so coreos-installer intentionally doesn't do this. The current situation could use improvement though. I guess we could avoid the external dependency by parsing the partition table and issuing the ioctls ourselves, but that seems a bit painful. |
9a2f8e0
to
2213158
Compare
I realized I was thinking of
Which makes sense, because we're still looking for the partitions in the usual place:
So we should probably only run the
|
0e4f5e5
to
7c5f8a3
Compare
7c5f8a3
to
aa76794
Compare
aa76794
to
92ad9cd
Compare
Btw, i guess this PR could help closing #91 |
92ad9cd
to
258f016
Compare
258f016
to
797a155
Compare
797a155
to
dfb1b08
Compare
…ices When installing CoreOS on DM device, such as '/dev/mapper/mpatha' or '/dev/dm-0', regular 'ioctl(fd, BLKRRPART)' call always fails with EINVAL. This also means, that our check for device being mounted, which on regular devices fails with EBUSY, is not valid anymore, that's why now /proc/mounts is used. Signed-off-by: Nikita Dubrovskii <[email protected]>
dfb1b08
to
1b4730e
Compare
Alternative implementation in #285. |
When installing CoreOS on DM device, such as '/dev/mapper/mpatha' or '/dev/dm-0',
regular 'ioctl(fd, BLKRRPART)' call always fails with EINVAL. This also means,
that our check for device being mounted, which on regular devices fails with EBUSY,
is not valid anymore, that's why now /proc/mounts is used.
Signed-off-by: Nikita Dubrovskii [email protected]