-
Notifications
You must be signed in to change notification settings - Fork 187
cmdlib: Use kola qemuexec, delete qemu-kvm code #1289
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,7 @@ run as part of 'coreos-assembler build'. | |
| EOC | ||
| } | ||
|
|
||
| disk= | ||
| rootfs_size="0" | ||
| boot_verity=0 | ||
| rootfs_type="xfs" | ||
|
|
@@ -78,7 +79,25 @@ udevtrig() { | |
|
|
||
| export PATH=$PATH:/sbin:/usr/sbin | ||
| arch="$(uname -m)" | ||
| disk="${disk:?--disk must be defined}" | ||
|
|
||
| if [ -z "${disk:-}" ]; then | ||
| # hex 0x2a = 42 in decimal; this is set in cmd-buildextend-metal. | ||
| # We use the WWN as an unambiguous way to identify our target disk, | ||
| # independent of other devices attached to the VM (caches, etc.) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ahh right...hmm, yes, I think if I just steal these bits from your osmet PR we could switch to
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK I fought this in cgwalters@75aeaba and couldn't get it to work; I think somehow the target drive is ending up as
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replied in coreos/ignition#905 (comment). But yeah, let's just always enable udev to make all this cleaner.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK so...I tried to use this for the root device but that's in the supermin code which has its own custom init that only handles The flip side of this is...using WWNs is also natural for people doing installs to real devices (e.g. with
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think my vote hence is to land this, since it's tested and an improvement, we we can do something else as followup.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup, sure. WFM!
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Follow-up to this in #1398! |
||
| wwn=000000000000002a | ||
| for dev in /sys/block/*; do | ||
| if grep -F -e "${wwn}" "${dev}/device/wwid" 2>/dev/null; then | ||
| disk="/dev/$(basename ${dev})" | ||
| break | ||
| fi | ||
| done | ||
| if [ -z "${disk:-}" ]; then | ||
| echo "failed to find disk with wwn ${wwn}" 1>&2 | ||
| bash | ||
| exit 1 | ||
| fi | ||
| fi | ||
|
|
||
| buildid="${buildid:?--buildid must be defined}" | ||
| imgid="${imgid:?--imgid must be defined}" | ||
| ostree="${ostree:?--ostree-repo must be defined}" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.