View Full Version : Build 32-bit livecd on a 64-bit System
tomgibbons
8th April 2009, 09:42 PM
I currently have Fedora 10 32-bit installed on my desktop. I've been building livecds for a while from a custom kickstart file to use personally. I'm considering installing the 64 bit version of Fedora on my desktop and wondered if I'd still be able to build 32 bit livecds. Is it possible to choose in the kickstart file which architecture I want to build for?
Thanks
Dangermouse
8th April 2009, 09:45 PM
Basically yes, cos i do !
tomgibbons
8th April 2009, 09:47 PM
That's very good news. How would I specify this?
Thanks
Dangermouse
8th April 2009, 10:03 PM
I just use a localrepo i made with just i386 rpm's, in it, and only use that repo, thats it, i just use livecdtools from terminal, not revisor which i suspect you are, and i dont really have any experience with revisor
sideways
8th April 2009, 10:21 PM
In the kickstart file, where the repo is specified, replace $basearch by i386, eg here's a minimal text boot livecd with development tools:
lang en_US.UTF-8
keyboard uk
timezone GB
auth --useshadow --enablemd5
selinux --disabled
firewall --disabled
part / --size 4096
# root account
rootpw pass
repo --name=f10 --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-10&arch=i386
%packages
@core
bash
kernel
passwd
chkconfig
authconfig
rootfiles
memtest86+
nano
gcc
binutils
make
patch
libgomp
glibc-devel
glibc-headers
kernel-headers
kernel-devel
man
bc
system-config-firewall-tui
%post --nochroot
# copy any required files to the Live Image
# mkdir $INSTALL_ROOT/project
# cp /mnt/data/project/*.c $INSTALL_ROOT/project/
%end
save as livecd-fedora-minimal_test.ks and then create the livecd with (as root)
livecd-creator --cache=yumcache/ -c livecd-fedora-minimal_test.ks -f MYLIVECD
(I usually use a local yum cache so further builds won't require a redownload of the rpms)
and test with qemu (or qemu-kvm if available),
sudo qemu-kvm -m 512 -cdrom MYLIVECD.iso &
(root password on the livecd is "pass")
nirik
8th April 2009, 10:42 PM
Or you can just add a 'setarch i686 ' to the front of your livecd-creator command.
Then no need to edit the kickstart file at all. ;)
tomgibbons
8th April 2009, 11:32 PM
Thanks guys. I will try these suggestions once I've switched over to x86_64.
@DangerMouse: I'm not using revistor, I'm using the livecd-creator command and passing in my kickstart file with the '--config' option
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.