From Fedora Project Wiki

< QA‎ | Test Days

(warn that livecd-creator requires to run on the same release you want to build for)
m (improve pre syntax)
Line 16: Line 16:


<li>Download the kickstart script used by {{FedoraVersion|long|next}} by using the <code>f{{FedoraVersion|number|next}}</code> git branch:
<li>Download the kickstart script used by {{FedoraVersion|long|next}} by using the <code>f{{FedoraVersion|number|next}}</code> git branch:
<!-- don't ask why this works, just read http://www.gossamer-threads.com/lists/wiki/mediawiki/118688#118688 -->
{{#tag:pre|git clone 'git://git.fedorahosted.org/spin-kickstarts.git' -b f{{FedoraVersion|number|next}}}}
<pre&lt;noinclude&gt;&lt;/noinclude&gt;>git clone 'git://git.fedorahosted.org/spin-kickstarts.git' -b f{{FedoraVersion|number|next}}</pre&lt;noinclude&gt;&lt;/noinclude&gt;>
or if you have done it in the past, just update it:
or if you have done it in the past, just update it:
<!-- don't ask why this works, just read http://www.gossamer-threads.com/lists/wiki/mediawiki/118688#118688 -->
{{#tag:pre|cd spin-kickstarts; git checkout f{{FedoraVersion|number|next}}; git pull; cd ..}}
<pre&lt;noinclude&gt;&lt;/noinclude&gt;>cd spin-kickstarts; git checkout f{{FedoraVersion|number|next}}; git pull; cd ..</pre&lt;noinclude&gt;&lt;/noinclude&gt;>
</li>
</li>


Line 47: Line 45:


<li>Create the live image:
<li>Create the live image:
<pre&lt;noinclude&gt;&lt;/noinclude&gt;>
{{#tag:pre|livecd-creator -c spin-kickstarts/custom/qa-test-day.ks --releasever {{FedoraVersion|number|next}} --cache /var/cache/live -f testday-YYYY-MM-DD}}
livecd-creator -c spin-kickstarts/custom/qa-test-day.ks --releasever {{FedoraVersion|number|next}} --cache /var/cache/live -f testday-YYYY-MM-DD
</pre&lt;noinclude&gt;&lt;/noinclude&gt;>
(of course replace ''spin-kickstarts/custom/qa-test-day.ks'' with ''my-test-day.ks'' if you have created your custom kickstart file)
(of course replace ''spin-kickstarts/custom/qa-test-day.ks'' with ''my-test-day.ks'' if you have created your custom kickstart file)



Revision as of 13:13, 18 March 2013

QA.png


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 40, you should build it on Fedora 40. You can try to build it on Fedora 39, but it might not work.

How to build a Test Day Live image:

  1. Install required packages:
    yum install livecd-tools git
    
  2. Download the kickstart script used by Fedora 40 by using the f40 git branch:
    git clone 'git://git.fedorahosted.org/spin-kickstarts.git' -b f40

    or if you have done it in the past, just update it:

    cd spin-kickstarts; git checkout f40; git pull; cd ..
  3. OPTIONAL: Create your custom kickstart file my-test-day.ks, if you need some changes from the default configuration: <pre<noinclude></noinclude>> %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/40/$basearch/os/
    3. repo --name=updates --baseurl=file:/mnt/globalsync/fedora/linux/updates/40/$basearch/
    %packages
    1. provide list of packages to be added or removed - dependencies are handled
    2. packageYouWant
    3. wildcardedPackagesYouWant*
    4. @GroupYouWant
    5. -packageYouDontWant
    %end %post
    1. put any shell commands here
    %end </pre<noinclude></noinclude>>
  4. Create the live image:
    livecd-creator -c spin-kickstarts/custom/qa-test-day.ks --releasever 40 --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)

    Idea.png
    Different architecture
    You can use setarch command to create a x86 Live CD/DVD on a x86_64 system. Example: setarch i686 livecd-creator <...>. (Or you can hardcode the architecture inside the kickstart by replacing $basearch variable.)

Solving problems

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 %packages 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 %include line add a directive

selinux --permissive

(Note: Due to RHBZ #547152 you may also need to add /usr/sbin/lokkit inside %packages.)

Now the build should run fine.

Further references