(update according to latest spin-kickstarts; say that this is for F-14 and update when F-14 is stable) |
(Make use of FedoraVersion template so we don't need to keep changing the page) |
||
Line 14: | Line 14: | ||
</li> | </li> | ||
<li>Download | <li>Download the kickstart script used by {{FedoraVersion|long|next}} by using the <code>F-{{FedoraVersion|number|next}}</code> git branch: | ||
<pre> | <!-- don't ask why this works, just read http://www.gossamer-threads.com/lists/wiki/mediawiki/118688#118688 --> | ||
git clone 'git://git.fedorahosted.org/spin-kickstarts.git' -b F- | <pre<noinclude></noinclude>>git clone 'git://git.fedorahosted.org/spin-kickstarts.git' -b F-{{FedoraVersion|number|next}}</pre<noinclude></noinclude>> | ||
</pre> | |||
or if you have done it in the past, just update it: | or if you have done it in the past, just update it: | ||
<pre> | <!-- don't ask why this works, just read http://www.gossamer-threads.com/lists/wiki/mediawiki/118688#118688 --> | ||
cd spin-kickstarts; git checkout F- | <pre<noinclude></noinclude>>cd spin-kickstarts; git checkout F-{{FedoraVersion|number|next}}; git pull; cd ..</pre<noinclude></noinclude>> | ||
</pre> | |||
</li> | </li> | ||
<li>OPTIONAL: Create your custom kickstart file ''my-test-day.ks'', if you need some changes from the default configuration: | <li>OPTIONAL: Create your custom kickstart file ''my-test-day.ks'', if you need some changes from the default configuration: | ||
<pre> | <!-- don't ask why this works, just read http://www.gossamer-threads.com/lists/wiki/mediawiki/118688#118688 --> | ||
<pre<noinclude></noinclude>> | |||
%include spin-kickstarts/custom/qa-test-day.ks | %include spin-kickstarts/custom/qa-test-day.ks | ||
#redefine repos as you need (e.g. point it to local mirror with --baseurl, etc) | #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/ | #repo --name=fedora --baseurl=file:/mnt/globalsync/fedora/linux/development/{{FedoraVersion|number|next}}/$basearch/os/ | ||
#repo --name=updates --baseurl=file:/mnt/globalsync/fedora/linux/updates/ | #repo --name=updates --baseurl=file:/mnt/globalsync/fedora/linux/updates/{{FedoraVersion|number|next}}/$basearch/ | ||
%packages | %packages | ||
Line 43: | Line 42: | ||
#put any shell commands here | #put any shell commands here | ||
%end | %end | ||
</pre> | </pre<noinclude></noinclude>> | ||
</li> | </li> | ||
Line 55: | Line 54: | ||
</li> | </li> | ||
</ol> | </ol> | ||
= Solving problems = | = Solving problems = |
Revision as of 12:52, 14 October 2010
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 Fedora 42 by using the
F-42
git branch: <pre<noinclude></noinclude>>git clone 'git://git.fedorahosted.org/spin-kickstarts.git' -b F-42</pre<noinclude></noinclude>> or if you have done it in the past, just update it: <pre<noinclude></noinclude>>cd spin-kickstarts; git checkout F-42; git pull; cd ..</pre<noinclude></noinclude>> - 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
- 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/42/$basearch/os/
- repo --name=updates --baseurl=file:/mnt/globalsync/fedora/linux/updates/42/$basearch/
- provide list of packages to be added or removed - dependencies are handled
- packageYouWant
- wildcardedPackagesYouWant*
- @GroupYouWant
- -packageYouDontWant
- 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 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.