The following steps outline how to create a Fedora live image for use during test days.

+

The following steps outline how to create a Fedora live image based on current [[Releases/Branched|Fedora Branched]] packages for use during [[QA/Test_Days|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 [http://alt.fedoraproject.org/pub/alt/nightly-composes/ nightly compose] image, but special Test Day images bring additional benefits - a welcome screen with an easy access to test day channels (web, chat), smaller size and customizability.

+

+

How to build a Test Day Live image:

+

<ol>

+

<li>Install {{package|livecd-tools}} from the same or higher release that you intend to build the image for. If you want to build a {{FedoraVersion|long|next}} live image, you need to install the <code>.fc{{FedoraVersion|number|next}}</code> package or later. Usually you can install it and run it on an older release ({{FedoraVersion|long|current}}) just fine. If that doesn't work, you will need to install {{FedoraVersion|long|next}} first:

+

{{#tag:pre|

+

yum install livecd-tools --releasever={{FedoraVersion|number|next}}

+

}}

+

</li>

+

+

<li>Download the kickstart script used by {{FedoraVersion|long|next}} by using the <code>f{{FedoraVersion|number|next}}</code> git branch:

The Test Day kickstart is located at {{filename|spin-kickstarts/custom/qa-test-day.ks}}.

+

</li>

+

+

<li>OPTIONAL: If you need some changes related to your Test Day (some packages pre-installed or some default configuration adjusted), either modify {{filename|qa-test-day.ks}} (it is well documented) or create a new kickstart file, include {{filename|qa-test-day.ks}} and put in your changes. This is an example of ''my-test-day.ks'':

(of course replace ''spin-kickstarts/custom/qa-test-day.ks'' with ''my-test-day.ks'' if you have created your custom kickstart file)

+

+

{{Admon/tip|Different architecture|You can use <code>setarch</code> command to create a x86 Live image on a x86_64 system. Example: <code>setarch i686 livecd-creator <...></code>}}

+

</li>

+

</ol>

+

+

= Further tips =

+

+

== Using unreleased or custom packages ==

+

It happens quite often that you need to include some bleeding-edge packages that have already been built in [[Koji]], but they haven't been pushed to any of the repositories (''fedora'', ''updates'' or ''updates-testing'') yet, or they haven't hit your mirror yet.

+

+

* '''If the packages are already available on the [http://dl.fedoraproject.org/pub/fedora/linux/ master mirror], but not yet on your local mirror''', you can overwrite the <code>repo</code> definitions to force using the master mirror:

Please use this only when necessary. Don't stress our master mirror needlessly.

+

+

* '''If your package builds are not available even on the master mirror, just in Koji''', you need to download them, create a custom repository and use it in your kickstart file. Example:

+

<ol>

+

<li>Download the packages:

+

<pre>koji download-build NVR</pre></li>

+

<li>Create a repository from the contents of the current directory:

+

<pre>createrepo -v .</pre></li>

+

<li>Share the repository over HTTP, FTP or NFS. One of the easiest way is:

+

<pre>python -m SimpleHTTPServer</pre>

+

Now your repository is available at http://localhost:8000.</li>

+

<li>Include the repository in your kickstart:

+

<pre>repo --name=test-day --baseurl=http://server/path</pre>

+

<li>If the packages are included by default, their new versions will be picked up automatically. Otherwise you need to list them:

+

<pre>%packages

+

package1

+

package2

+

%end</pre></li>

+

</ol>

+

+

== Using a non-debug kernel ==

+

In [[Rawhide]] and in {{FedoraVersion|long|next}} before Beta the debug kernels are used by default. That lowers the system performance considerably. If you need performance rather than kernel debug information, you can manually add a production (non-debug) kernel to the Live image.

+

+

The information how to distinguish a production and a debug kernel is outlined in [[KernelDebugStrategy]]. The easiest way is to search [[Koji]] for a list of kernels built for your Fedora release and pick the latest one that contains ''kernel-debug'' RPM (the presence of this RPM indicates this is a production kernel, i.e. the debug information are separated). If this kernel is available in one of the repositories, you can simple put kernel NVR into the <code>%packages</code> section, like this:

+

{{#tag:pre|

+

%packages

+

kernel-3.9.0-0.rc7.git3.1.fc{{FedoraVersion|number|next}}

+

%end

+

}}

+

+

Very often, however, a production kernel will not be a part of any repository and you'll need to download it manually from Koji and put it into a [[#Using unreleased or custom packages|custom repository]] first.

−

# Install required packages:

+

== Changing the URL opened from the welcome screen ==

−

#: <pre>yum install spin-kickstarts livecd-tools</pre>

+

We use a wiki redirect to display the currently active test day: [[Test_Day:Current]]. If you build your Live image in advance, some other (older) test day will display when you click on the welcome screen button. Don't worry, this will be adjusted later. Shortly before your test day should begin, just edit the redirect: [https://fedoraproject.org/wiki/Test_Day:Current?redirect=no Test_Day:Current?redirect=no]. No need to rebuild your images.

Revision as of 14:31, 6 May 2013

Contents

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 - a welcome screen with an easy access to test day channels (web, chat), smaller size and customizability.

How to build a Test Day Live image:

Install livecd-tools from the same or higher release that you intend to build the image for. If you want to build a Fedora 28 live image, you need to install the .fc28 package or later. Usually you can install it and run it on an older release (Fedora 27) just fine. If that doesn't work, you will need to install Fedora 28 first:

yum install livecd-tools --releasever=28

Download the kickstart script used by Fedora 28 by using the f28 git branch:

The Test Day kickstart is located at spin-kickstarts/custom/qa-test-day.ks.

OPTIONAL: If you need some changes related to your Test Day (some packages pre-installed or some default configuration adjusted), either modify qa-test-day.ks (it is well documented) or create a new kickstart file, include qa-test-day.ks and put in your changes. This is an example of my-test-day.ks:

(of course replace spin-kickstarts/custom/qa-test-day.ks with my-test-day.ks if you have created your custom kickstart file)

Different architectureYou can use setarch command to create a x86 Live image on a x86_64 system. Example: setarch i686 livecd-creator <...>

Further tips

Using unreleased or custom packages

It happens quite often that you need to include some bleeding-edge packages that have already been built in Koji, but they haven't been pushed to any of the repositories (fedora, updates or updates-testing) yet, or they haven't hit your mirror yet.

If the packages are already available on the master mirror, but not yet on your local mirror, you can overwrite the repo definitions to force using the master mirror:

If the packages are included by default, their new versions will be picked up automatically. Otherwise you need to list them:

%packages
package1
package2
%end

Using a non-debug kernel

In Rawhide and in Fedora 28 before Beta the debug kernels are used by default. That lowers the system performance considerably. If you need performance rather than kernel debug information, you can manually add a production (non-debug) kernel to the Live image.

The information how to distinguish a production and a debug kernel is outlined in KernelDebugStrategy. The easiest way is to search Koji for a list of kernels built for your Fedora release and pick the latest one that contains kernel-debug RPM (the presence of this RPM indicates this is a production kernel, i.e. the debug information are separated). If this kernel is available in one of the repositories, you can simple put kernel NVR into the %packages section, like this:

%packages
kernel-3.9.0-0.rc7.git3.1.fc28
%end

Very often, however, a production kernel will not be a part of any repository and you'll need to download it manually from Koji and put it into a custom repository first.

Changing the URL opened from the welcome screen

We use a wiki redirect to display the currently active test day: Test_Day:Current. If you build your Live image in advance, some other (older) test day will display when you click on the welcome screen button. Don't worry, this will be adjusted later. Shortly before your test day should begin, just edit the redirect: Test_Day:Current?redirect=no. No need to rebuild your images.