Bug 445387

Summary: Allow specifying basearch on the command line
Product: [Fedora] Fedora Reporter: Owen Taylor <otaylor>
Component: livecd-toolsAssignee: Jeremy Katz <katzj>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: rawhideCC: davidz, katzj
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-05-06 17:12:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch adding --basearch command line argument none

Description Owen Taylor 2008-05-06 16:54:02 UTC
I wanted to be able to build livecd images for both i386 and x86_64 on an x86_64
machine, and couldn't figure out an easy way to do it (without running
livecd-tools from a chroot), so I came up with the following patch that allows
specifying --basearch=i386 on the command line, overriding the detected value.

Comment 1 Owen Taylor 2008-05-06 16:54:02 UTC
Created attachment 304658 [details]
Patch adding --basearch command line argument

Comment 2 Jeremy Katz 2008-05-06 17:12:56 UTC
Just use setarch(8)
  setarch i386 livecd-creator ....



Comment 3 Owen Taylor 2008-05-06 18:30:47 UTC
Ah. I RTFS'ed and saw it first checking /etc/rpm/platform, but I didn't
realize that /etc/rpm/platform doesn't actually exist on x86_64.