QA/Test Days/Live Image

= Creating a Test Day Live Image =

The following steps outline how to create a Fedora live image based on current Rawhide packages for use during Test Days.

 Install required packages: yum install livecd-tools git 

Download the kickstart script used by by using the   git branch:

git clone 'git://git.fedorahosted.org/spin-kickstarts.git' -b f or if you have done it in the past, just update it:

cd spin-kickstarts; git checkout f; git pull; cd .. 

OPTIONAL: Create your custom kickstart file my-test-day.ks, if you need some changes from the default configuration:

 %include spin-kickstarts/custom/qa-test-day.ks


 * 1) redefine repos as you need (e.g. point it to local mirror with --baseurl, etc)
 * 2) repo --name=fedora --baseurl=file:/mnt/globalsync/fedora/linux/development//$basearch/os/
 * 3) repo --name=updates --baseurl=file:/mnt/globalsync/fedora/linux/updates//$basearch/

%packages %end
 * 1) provide list of packages to be added or removed - dependencies are handled
 * 2) packageYouWant
 * 3) wildcardedPackagesYouWant*
 * 4) @GroupYouWant
 * 5) -packageYouDontWant

%post %end  
 * 1) put any shell commands here

Create the live image: livecd-creator -c spin-kickstarts/custom/qa-test-day.ks --cache /var/cache/live -f "testday-`date +%Y%m%d`" (of course replace spin-kickstarts/custom/qa-test-day.ks with my-test-day.ks if you have created your custom kickstart file)

 

= Solving problems =

Anaconda dependencies broken
Sometimes the image can't be built because of broken package dependencies. You may solve the problem by removing  package. Anaconda requires a lot of dependencies and it may very often be the culprit. To remove anaconda you just put  line in the   section.

SELinux complaints
For building Test Days LiveCD you must have SELinux installed and enabled. Ideally it should be in the enforcing mode and everything should run fine. In case you have problems with that, you may switch the mode temporarily into permissive mode with this command run as root: setenforce 0

If that doesn't help, you may also modify your my-test-day.ks kickstart file and after  line add a directive selinux --permissive

(Note: Due to you may also need to add   inside  .)

Now the build should run fine.

= Further references =
 * QA Test Day Spin
 * How to create and use a Live CD
 * How to write the live image to a USB stick.
 * How to write the live image to a CD or DVD media.
 * How to load the live image in KVM or qemu.