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 Fedora Branched packages for use during Test Days. This is mainly intended for Fedora QA team and teams that host a Test Day. Of course these teams can also use a nightly compose image, but special Test Day images bring additional benefits - easy access to test day channels (web, chat), smaller size and customizability.
The following procedure should always be performed on the same Fedora release that you want to build the Live image for. For example if you want to build a Live image for Fedora 24, you should build it on Fedora 24. You can try to build it on Fedora 23, but it might not work.
How to build a Test Day Live image:
- Install required packages:
yum install livecd-tools git
- Download the kickstart script used by Fedora 24 by using the
git clone 'git://git.fedorahosted.org/spin-kickstarts.git' -b f24
or if you have done it in the past, just update it:
cd spin-kickstarts; git checkout f24; 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 #redefine repos as you need (e.g. point it to local mirror with --baseurl, etc) #repo --name=fedora --baseurl=file:/mnt/globalsync/fedora/linux/development/24/$basearch/os/ #repo --name=updates --baseurl=file:/mnt/globalsync/fedora/linux/updates/24/$basearch/ %packages #provide list of packages to be added or removed - dependencies are handled #packageYouWant #wildcardedPackagesYouWant* #@GroupYouWant #-packageYouDontWant %end %post #put any shell commands here %end
- Create the live image:
livecd-creator -c spin-kickstarts/custom/qa-test-day.ks --releasever 24 --cache /var/cache/live -f testday-YYYY-MM-DD
(of course replace spin-kickstarts/custom/qa-test-day.ks with my-test-day.ks if you have created your custom kickstart file)
Anaconda dependencies broken
Sometimes the image can't be built because of broken package dependencies. You may solve the problem by removing
anaconda package. Anaconda requires a lot of dependencies and it may very often be the culprit. To remove anaconda you just put
-anaconda line in the
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:
If that doesn't help, you may also modify your my-test-day.ks kickstart file and after
%include line add a directive
(Note: Due to RHBZ #547152 you may also need to add
Now the build should run fine.