Bug 1212223

Summary: BCI container architecture decision unclear
Product: [Non-product-specific documentation] Documentation Reporter: Dennis Knorr <dennis.knorr>
Component: ContainerAssignee: Dmitri Popov <dmitri.popov>
Status: RESOLVED FIXED QA Contact: Tanja Roth <taroth>
Severity: Normal    
Priority: P5 - None CC: dcermak
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard: https://jira.suse.com/browse/DOCTEAM-1021
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Dennis Knorr 2023-06-12 08:55:24 UTC
In https://documentation.suse.com/smart/container/html/concept-bci-get-started/index.html there's something strange which i do not understand.

For obtaining the architecture of the container for SLE BCI we have the following command:

"""
arch="$(uname -p|sed 's/x86_64/amd64/')"
"""

But this would also replace every intel architecture with an AMD architecture. I am not sure if this is a bug.

Perhaps we just compile everything for x86_64/amd64 compatible so we can do that, but i do not really understand the reasoning, or if it is indeed a bug.
Comment 1 Tanja Roth 2023-06-23 13:29:24 UTC
Thank you for the bug report, Dennis! It being tracked and processed as part of our queue.
Comment 2 Dan Čermák 2023-07-07 13:07:15 UTC
(In reply to Dennis Knorr from comment #0)
> In
> https://documentation.suse.com/smart/container/html/concept-bci-get-started/
> index.html there's something strange which i do not understand.
> 
> For obtaining the architecture of the container for SLE BCI we have the
> following command:
> 
> """
> arch="$(uname -p|sed 's/x86_64/amd64/')"
> """
> 
> But this would also replace every intel architecture with an AMD
> architecture. I am not sure if this is a bug.
> 
> Perhaps we just compile everything for x86_64/amd64 compatible so we can do
> that, but i do not really understand the reasoning, or if it is indeed a bug.

To be honest, I don't recall why I added the sed call into the documentation. I guess it was to match the output of dpkg --print-architecture exactly. But you're right, it doesn't really make sense
Comment 3 Dan Čermák 2023-07-07 13:11:40 UTC
https://github.com/SUSE/doc-modular/pull/173