-
Notifications
You must be signed in to change notification settings - Fork 168
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
*build*: Make ppc64le build anacondaless #816
Conversation
For the record tested on ppc64le and x86_64 on Fri. There has been changes to the master over weekend that required rebase, in process to retest the rebase. |
@@ -63,7 +63,7 @@ if [ $# -ne 0 ]; then | |||
fi | |||
|
|||
case "$basearch" in | |||
"x86_64"|"aarch64"|"s390x") use_anaconda=;; | |||
"x86_64"|"aarch64"|"s390x"|"ppc64le") use_anaconda=;; |
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.
This is all the arches, we can drop the case
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.
I would still argue there are other arches(riscv,arm32,...) and would leave it as is until anaconda gets dropped completely.
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.
Right, but we should aim to just implement those anaconda-less off the bat.
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.
100% agree, after this PR we should just remove all of the Anaconda-related code.
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.
I don't disagree, but I think that drop of anaconda is out of the scope for this PR.
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.
Yep, agreed - this PR as is is fine.
;; | ||
ppc64le) | ||
# to populate PReP Boot, i.e. support pseries | ||
grub2-install --target=powerpc-ieee1275 --boot-directory rootfs/boot --no-nvram "${disk}${PREPPN}" |
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.
What's the plan wrt petitboot?
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.
For petitboot, recent bare metal ppcs(PowerNV), just the grub.cfg on /boot/grub2 should be good enough(no need for PReP Boot partition, etc.) as it searches for know configs on its own.
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.
Fantastic. Do we have a way to test this? Shouldn't block this PR, but it would be good to verify that works.
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.
I do plan to and will keep you updated.
69687df
to
ea197bb
Compare
I'm now getting this on ppc64le:
Could this be related to rpm-ostree-2019.6 hitting stable/mirrors? @jlebon |
Up-mentioned issue seems to be one tracked in coreos/fedora-coreos-tracker#290 |
ppc64le(pseries,PowerNV) anacondaless build. Allow partition layout to differ per arch, i.e. to include and omit certain partitions. Use generic Linux FS uuid for root partition as discussed in the coreos#795 Fix: coreos#795
ea197bb
to
a679a61
Compare
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, 💯
-U 00000000-0000-4000-a000-000000000001 \ | ||
-n 2:0:+4M -c 2:PowerPC-PReP-boot -t 2:9E1A2D38-C612-4316-AA26-8B49521E5A8B \ | ||
-n ${BOOTPN}:0:+384M -c ${BOOTPN}:boot \ | ||
-n ${ROOTPN}:0:0 -c ${ROOTPN}:root -t ${ROOTPN}:0FC63DAF-8483-4772-8E79-3D69D8477DE4 |
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.
Did you mean to leave off the partition type uuid here? Based off of:
# ppc64le doesn't use special uuid for root partition
Or are you just saying that it doesn't help, but it doesn't hurt either?
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.
No, this is in the context of #795 , If it is too confusing I can drop that.
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.
OK gotcha, thanks for the context.
I think we can make this decision more explicit, but let's leave that as a follow-up!
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! 🎉
Will let @cgwalters or @ajeddeloh do the final merge!
-U 00000000-0000-4000-a000-000000000001 \ | ||
-n 2:0:+4M -c 2:PowerPC-PReP-boot -t 2:9E1A2D38-C612-4316-AA26-8B49521E5A8B \ | ||
-n ${BOOTPN}:0:+384M -c ${BOOTPN}:boot \ | ||
-n ${ROOTPN}:0:0 -c ${ROOTPN}:root -t ${ROOTPN}:0FC63DAF-8483-4772-8E79-3D69D8477DE4 |
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.
OK gotcha, thanks for the context.
I think we can make this decision more explicit, but let's leave that as a follow-up!
ppc64le(pseries,PowerNV) anacondaless build.
Allow partition layout to differ per arch, i.e. to include and omit certain partitions.
Use generic Linux FS uuid for root partition as discussed in the #795
Fix: #795