QA/Test Days/Live Image

From FedoraProject

< QA | Test Days(Difference between revisions)
Jump to: navigation, search
m (Fix bash)
(recreate the guide to use rawhide packages)
Line 3: Line 3:
 
= Creating a Test Day Live Image =
 
= Creating a Test Day Live Image =
  
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 Rawhide packages for use during test days.
  
# Install required packages:  
+
1. Install required packages:
#: <pre>yum install spin-kickstarts livecd-tools</pre>
+
<pre>
# Create a kickstart template, for example:  
+
yum install spin-kickstarts livecd-tools
#:<pre>
+
</pre>
#: cat <<EOK> fedora-livecd-testday.ks
+
 
#: %include /usr/share/spin-kickstarts/fedora-livecd-desktop.ks
+
2. Save most recent [http://git.fedorahosted.org/git/spin-kickstarts.git?p=spin-kickstarts.git;a=blob_plain;f=fedora-live-base.ks;hb=HEAD fedora-live-base.ks] and [http://git.fedorahosted.org/git/spin-kickstarts.git?p=spin-kickstarts.git;a=blob_plain;f=fedora-livecd-desktop.ks;hb=HEAD fedora-livecd-desktop.ks] kickstart templates to a custom directory:
#:
+
<pre>
#: repo --name jlaska --baseurl http://jlaska.fedorapeople.org/repos/testday
+
wget 'http://git.fedorahosted.org/git/spin-kickstarts.git?p=spin-kickstarts.git;a=blob_plain;f=fedora-live-base.ks;hb=HEAD' -O fedora-live-base.ks
#: repo --name awilliam --baseurl http://adamwill.fedorapeople.org/nouveau
+
wget 'http://git.fedorahosted.org/git/spin-kickstarts.git?p=spin-kickstarts.git;a=blob_plain;f=fedora-livecd-desktop.ks;hb=HEAD' -O fedora-livecd-desktop.ks
#:
+
</pre>
#: %packages
+
 
#: gdb
+
3. Create a new testday kickstart template ''fedora-livecd-testday.ks'' in the same directory, with this content:  
#: strace
+
<pre>
#: ltrace
+
%include fedora-livecd-desktop.ks
#: rendercheck
+
 
#: libdrm
+
repo --name jlaska --baseurl http://jlaska.fedorapeople.org/repos/testday
#: -olpc-logos
+
repo --name awilliam --baseurl http://adamwill.fedorapeople.org/nouveau
#: %end  
+
 
#:
+
%packages
#: %post
+
gdb
#: # Set Test_Day:Current as default browser homepage
+
strace
#: cat << EOF > /usr/lib*/firefox*/browserconfig.properties
+
ltrace
#: browser.startup.homepage=https://fedoraproject.org/wiki/Test_Day:Current
+
rendercheck
#: EOF
+
libdrm
#:
+
-olpc-logos
#: # Create a .desktop link for Test Day
+
 
#: mkdir -p /etc/skel/Desktop
+
# rebrand test spins
#: cat << EOF > /etc/skel/Desktop/testday.desktop
+
fedora-logos
#: [Desktop Entry]
+
-generic-logos
#: Encoding=UTF-8
+
%end  
#: Name=Participate in a Test Day
+
 
#: Type=Link
+
%post
#: URL=https://fedoraproject.org/wiki/Test_Day:Current
+
# Set Test_Day:Current as default browser homepage
#: Icon=gnome-fs-bookmark
+
cat << EOF > /usr/lib*/firefox*/browserconfig.properties
#: EOF
+
browser.startup.homepage=https://fedoraproject.org/wiki/Test_Day:Current
#:
+
EOF
#: %end
+
 
#: EOK </pre>
+
# Create a .desktop link for Test Day
# Create the live image:
+
mkdir -p /etc/skel/Desktop
#: <pre>livecd-creator -c fedora-livecd-testday.ks</pre>
+
cat << EOF > /etc/skel/Desktop/testday.desktop
 +
[Desktop Entry]
 +
Encoding=UTF-8
 +
Name=Participate in a Test Day
 +
Type=Link
 +
URL=https://fedoraproject.org/wiki/Test_Day:Current
 +
Icon=gnome-fs-bookmark
 +
EOF
 +
%end
 +
</pre>
 +
 
 +
3. Create the live image:
 +
<pre>
 +
livecd-creator -c fedora-livecd-testday.ks -f "testday-`date +%Y%m%d`"
 +
</pre>
 +
 
 +
{{admon/tip|In case rawhide repository is broken|If current rawhide repository is broken and the livecd can't be built, and you have access to some mirror with older rawhide snapshot, you may edit ''fedora-livecd-testday.ks'' and redefine the rawhide repository after the <code>%include</code> line, for example looking like this:<br/>
 +
<pre>repo --name=rawhide --baseurl=protocol:/path-to-older-rawhide-repository/$basearch/os/</pre>}}
  
 
= Using the Live Image =
 
= Using the Live Image =

Revision as of 11:09, 28 July 2009

QA.png


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.

1. Install required packages:

yum install spin-kickstarts livecd-tools

2. Save most recent fedora-live-base.ks and fedora-livecd-desktop.ks kickstart templates to a custom directory:

wget 'http://git.fedorahosted.org/git/spin-kickstarts.git?p=spin-kickstarts.git;a=blob_plain;f=fedora-live-base.ks;hb=HEAD' -O fedora-live-base.ks
wget 'http://git.fedorahosted.org/git/spin-kickstarts.git?p=spin-kickstarts.git;a=blob_plain;f=fedora-livecd-desktop.ks;hb=HEAD' -O fedora-livecd-desktop.ks

3. Create a new testday kickstart template fedora-livecd-testday.ks in the same directory, with this content:

%include fedora-livecd-desktop.ks

repo --name jlaska --baseurl http://jlaska.fedorapeople.org/repos/testday
repo --name awilliam --baseurl http://adamwill.fedorapeople.org/nouveau

%packages
gdb
strace
ltrace
rendercheck
libdrm
-olpc-logos

# rebrand test spins
fedora-logos
-generic-logos
%end 

%post
# Set Test_Day:Current as default browser homepage
cat << EOF > /usr/lib*/firefox*/browserconfig.properties
browser.startup.homepage=https://fedoraproject.org/wiki/Test_Day:Current
EOF

# Create a .desktop link for Test Day
mkdir -p /etc/skel/Desktop
cat << EOF > /etc/skel/Desktop/testday.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Participate in a Test Day
Type=Link
URL=https://fedoraproject.org/wiki/Test_Day:Current
Icon=gnome-fs-bookmark
EOF
%end

3. Create the live image:

livecd-creator -c fedora-livecd-testday.ks -f "testday-`date +%Y%m%d`"
Idea.png
In case rawhide repository is broken
If current rawhide repository is broken and the livecd can't be built, and you have access to some mirror with older rawhide snapshot, you may edit fedora-livecd-testday.ks and redefine the rawhide repository after the %include line, for example looking like this:
repo --name=rawhide --baseurl=protocol:/path-to-older-rawhide-repository/$basearch/os/

Using the Live Image

Ideas For Improvement

  1. Create a .desktop file with a Test Day URL on the Desktop
  2. Make browser default homepage http://fedoraproject.org/wiki/Test_Day:Current (suggested by User:sgallagh)
  3. Setup a test day .repo for the running live image (suggested by User:sgallagh)