[spin-kickstarts/f19] Add changes for firefox pointing to test day page. Fixes bug 967558
by Kevin Fenzi
commit fec04ee71c00b2468c666a8ef81739c4fb7a6877
Author: Kevin Fenzi <kevin(a)scrye.com>
Date: Tue May 28 07:49:21 2013 -0600
Add changes for firefox pointing to test day page. Fixes bug 967558
custom/qa-test-day.ks | 25 ++++++++++++++++---------
1 files changed, 16 insertions(+), 9 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index 455ea35..f02791d 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -110,7 +110,9 @@ firefox
# the installed system. This image is not intended for installation, but you
# never know what your users might do.
-cat >> /etc/rc.d/init.d/livesys << EOF
+# "EOF" is quoted so that variables are not expanded. Search for "here-document"
+# in man bash.
+cat >> /etc/rc.d/init.d/livesys << "EOF"
# Create Test Day welcome screen
# Note that shebang must be written this way, else it is considered as comment
@@ -135,22 +137,27 @@ ln -s /usr/share/applications/test-day-welcome.desktop /etc/xdg/autostart/
rm -f /home/liveuser/.config/autostart/fedora-welcome.desktop
# Change Firefox start page to open Test Day wiki and IRC chat
-mkdir -p /tmp/chrome/en-US/locale/branding
-cat << FOE > /tmp/chrome/en-US/locale/branding/browserconfig.properties
+# (and a few more properties)
+mkdir /tmp/firefox
+unzip /usr/lib*/firefox/browser/omni.ja -d /tmp/firefox
+
+cat << FOE > /tmp/firefox/chrome/en-US/locale/branding/browserconfig.properties
browser.startup.homepage=https://fedoraproject.org/wiki/Test_Day:Current | http://webchat.freenode.net/?channels=fedora-test-day
FOE
-# Set up a few more properties
-unzip /usr/lib*/firefox/omni.ja defaults/preferences/firefox-branding.js -d /tmp
-cat << FOE >> /tmp/defaults/preferences/firefox-branding.js
+cat << FOE >> /tmp/firefox/defaults/preferences/firefox-branding.js
pref("startup.homepage_welcome_url","");
pref("startup.homepage_override_url","");
pref("browser.rights.3.shown", true);
FOE
-(cd /tmp; zip /usr/lib*/firefox/omni.ja chrome/en-US/locale/branding/browserconfig.properties \
- defaults/preferences/firefox-branding.js)
-rm -rf /tmp/chrome /tmp/defaults
+# We need to re-zip the whole archive (instead of just updating files), because
+# the original archive is "Firefox optimized" and updating doesn't work
+# https://bugzilla.mozilla.org/show_bug.cgi?id=605524
+OMNIJA=`ls /usr/lib*/firefox/browser/omni.ja`
+rm -f $OMNIJA
+(cd /tmp/firefox; zip -r -0 $OMNIJA *)
+rm -rf /tmp/firefox
# Adjust launchers in dash using a vendor override. (Adding a profile would
# be another way to do this.)
10 years, 10 months
[spin-kickstarts] Add changes for firefox pointing to test day page. Fixes bug 967558
by Kevin Fenzi
commit ee0c9038eb64f8073f540654406089459bd399b6
Author: Kevin Fenzi <kevin(a)scrye.com>
Date: Tue May 28 07:49:21 2013 -0600
Add changes for firefox pointing to test day page. Fixes bug 967558
custom/qa-test-day.ks | 25 ++++++++++++++++---------
1 files changed, 16 insertions(+), 9 deletions(-)
---
diff --git a/custom/qa-test-day.ks b/custom/qa-test-day.ks
index 455ea35..f02791d 100644
--- a/custom/qa-test-day.ks
+++ b/custom/qa-test-day.ks
@@ -110,7 +110,9 @@ firefox
# the installed system. This image is not intended for installation, but you
# never know what your users might do.
-cat >> /etc/rc.d/init.d/livesys << EOF
+# "EOF" is quoted so that variables are not expanded. Search for "here-document"
+# in man bash.
+cat >> /etc/rc.d/init.d/livesys << "EOF"
# Create Test Day welcome screen
# Note that shebang must be written this way, else it is considered as comment
@@ -135,22 +137,27 @@ ln -s /usr/share/applications/test-day-welcome.desktop /etc/xdg/autostart/
rm -f /home/liveuser/.config/autostart/fedora-welcome.desktop
# Change Firefox start page to open Test Day wiki and IRC chat
-mkdir -p /tmp/chrome/en-US/locale/branding
-cat << FOE > /tmp/chrome/en-US/locale/branding/browserconfig.properties
+# (and a few more properties)
+mkdir /tmp/firefox
+unzip /usr/lib*/firefox/browser/omni.ja -d /tmp/firefox
+
+cat << FOE > /tmp/firefox/chrome/en-US/locale/branding/browserconfig.properties
browser.startup.homepage=https://fedoraproject.org/wiki/Test_Day:Current | http://webchat.freenode.net/?channels=fedora-test-day
FOE
-# Set up a few more properties
-unzip /usr/lib*/firefox/omni.ja defaults/preferences/firefox-branding.js -d /tmp
-cat << FOE >> /tmp/defaults/preferences/firefox-branding.js
+cat << FOE >> /tmp/firefox/defaults/preferences/firefox-branding.js
pref("startup.homepage_welcome_url","");
pref("startup.homepage_override_url","");
pref("browser.rights.3.shown", true);
FOE
-(cd /tmp; zip /usr/lib*/firefox/omni.ja chrome/en-US/locale/branding/browserconfig.properties \
- defaults/preferences/firefox-branding.js)
-rm -rf /tmp/chrome /tmp/defaults
+# We need to re-zip the whole archive (instead of just updating files), because
+# the original archive is "Firefox optimized" and updating doesn't work
+# https://bugzilla.mozilla.org/show_bug.cgi?id=605524
+OMNIJA=`ls /usr/lib*/firefox/browser/omni.ja`
+rm -f $OMNIJA
+(cd /tmp/firefox; zip -r -0 $OMNIJA *)
+rm -rf /tmp/firefox
# Adjust launchers in dash using a vendor override. (Adding a profile would
# be another way to do this.)
10 years, 10 months
[spin-kickstarts] add arm kickstarts
by Dennis Gilmore
commit 8c2c5c5e19f94e1b5861962b91bb75aff21966bf
Author: Dennis Gilmore <dennis(a)ausil.us>
Date: Tue May 28 01:44:45 2013 -0500
add arm kickstarts
TODO: add other desktop spins
fedora-arm-base.ks | 42 ++++++++++++++++++++++++++++++++++++++++++
fedora-arm-lxde.ks | 10 ++++++++++
fedora-arm-minimal.ks | 17 +++++++++++++++++
fedora-arm-xbase.ks | 7 +++++++
fedora-arm-xfce.ks | 10 ++++++++++
5 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/fedora-arm-base.ks b/fedora-arm-base.ks
new file mode 100644
index 0000000..86cea49
--- /dev/null
+++ b/fedora-arm-base.ks
@@ -0,0 +1,42 @@
+lang en_US.UTF-8
+#keyboard us
+auth --useshadow --enablemd5
+selinux --enforcing
+firewall --enabled --service=mdns,ssh
+
+bootloader --location=none
+part /boot --size=512 --fstype ext3
+part swap --size=512 --fstype swap
+part / --grow --size=6500 --fstype ext4
+services --enabled=ssh,NetworkManager,avahi-daemon,rsyslog,chronyd --disabled=network
+
+#repo --name=rawhide --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch
+repo --name=fedora --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
+repo --name=updates --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
+#repo --name=updates-testing --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f$releasever&arch=$basearch
+
+%packages
+@core
+@standard
+@hardware-support
+@dial-up
+
+kernel
+kernel-lpae
+kernel-tegra
+
+chrony
+arm-boot-config
+initial-setup
+%end
+
+%post
+
+# Because memory is scarce resource in most arm systems we are differing from the Fedora
+# default of having /tmp on tmpfs.
+echo "Disabling tmpfs for /tmp."
+systemctl mask tmp.mount
+
+/usr/sbin/a-b-c
+%end
+
diff --git a/fedora-arm-lxde.ks b/fedora-arm-lxde.ks
new file mode 100644
index 0000000..28a4a74
--- /dev/null
+++ b/fedora-arm-lxde.ks
@@ -0,0 +1,10 @@
+%include fedora-arm-base.ks
+%include fedora-arm-xbase.ks
+%include fedora-lxde-packages.ks
+
+%post
+echo -n "Enabling initial-setup gui mode on startup"
+ln -s /usr/lib/systemd/system/initial-setup-graphical.service /etc/systemd/system/graphical.target.wants/initial-setup-graphical.service
+echo .
+
+%end
diff --git a/fedora-arm-minimal.ks b/fedora-arm-minimal.ks
new file mode 100644
index 0000000..8cf8b87
--- /dev/null
+++ b/fedora-arm-minimal.ks
@@ -0,0 +1,17 @@
+@include fedora-arm-base.ks
+
+
+%post
+
+# setup systemd to boot to the right runlevel
+echo -n "Setting default runlevel to multiuser text mode"
+rm -f /etc/systemd/system/default.target
+ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
+echo .
+
+echo -n "Enabling initial-setup text mode on startup"
+ln -s /usr/lib/systemd/system/initial-setup-text.service /etc/systemd/system/multi-user.target.wants/initial-setup-text.service
+echo .
+
+%end
+
diff --git a/fedora-arm-xbase.ks b/fedora-arm-xbase.ks
new file mode 100644
index 0000000..2c4b513
--- /dev/null
+++ b/fedora-arm-xbase.ks
@@ -0,0 +1,7 @@
+%packages
+@base-x
+@fonts
+@input-methods
+@multimedia
+@printing
+%end
diff --git a/fedora-arm-xfce.ks b/fedora-arm-xfce.ks
new file mode 100644
index 0000000..5923c6b
--- /dev/null
+++ b/fedora-arm-xfce.ks
@@ -0,0 +1,10 @@
+%include fedora-arm-base.ks
+%include fedora-arm-xbase.ks
+%include fedora-xfce-packages.ks
+
+%post
+echo -n "Enabling initial-setup gui mode on startup"
+ln -s /usr/lib/systemd/system/initial-setup-graphical.service /etc/systemd/system/graphical.target.wants/initial-setup-graphical.service
+echo .
+
+%end
10 years, 10 months
[spin-kickstarts] kernel-tegra is gone in rawhide
by Dennis Gilmore
commit 3f5cc8a236e9583061c7dc8e384daa7c0792aa09
Author: Dennis Gilmore <dennis(a)ausil.us>
Date: Tue May 28 02:38:15 2013 -0500
kernel-tegra is gone in rawhide
fedora-arm-base.ks | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/fedora-arm-base.ks b/fedora-arm-base.ks
index 86cea49..a508943 100644
--- a/fedora-arm-base.ks
+++ b/fedora-arm-base.ks
@@ -23,7 +23,6 @@ repo --name=updates --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?rep
kernel
kernel-lpae
-kernel-tegra
chrony
arm-boot-config
10 years, 11 months
[spin-kickstarts] fix up typo % not @ for include
by Dennis Gilmore
commit e29192c353fac83c427bd5e33375d9f210928bb1
Author: Dennis Gilmore <dennis(a)ausil.us>
Date: Tue May 28 01:59:42 2013 -0500
fix up typo % not @ for include
fedora-arm-minimal.ks | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/fedora-arm-minimal.ks b/fedora-arm-minimal.ks
index 8cf8b87..588ee40 100644
--- a/fedora-arm-minimal.ks
+++ b/fedora-arm-minimal.ks
@@ -1,4 +1,4 @@
-@include fedora-arm-base.ks
+%include fedora-arm-base.ks
%post
10 years, 11 months
[spin-kickstarts/f19] fix up typo % not @ for include
by Dennis Gilmore
commit a925f950f500d13a0ee3a96e59cb08fbd0b821ad
Author: Dennis Gilmore <dennis(a)ausil.us>
Date: Tue May 28 01:59:42 2013 -0500
fix up typo % not @ for include
fedora-arm-minimal.ks | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/fedora-arm-minimal.ks b/fedora-arm-minimal.ks
index 8cf8b87..588ee40 100644
--- a/fedora-arm-minimal.ks
+++ b/fedora-arm-minimal.ks
@@ -1,4 +1,4 @@
-@include fedora-arm-base.ks
+%include fedora-arm-base.ks
%post
10 years, 11 months
[spin-kickstarts/f19] add arm kickstarts
by Dennis Gilmore
commit 1358b1f7d75b7733f44bbcbbc39406246e593227
Author: Dennis Gilmore <dennis(a)ausil.us>
Date: Tue May 28 01:44:45 2013 -0500
add arm kickstarts
TODO: add other desktop spins
fedora-arm-base.ks | 42 ++++++++++++++++++++++++++++++++++++++++++
fedora-arm-lxde.ks | 10 ++++++++++
fedora-arm-minimal.ks | 17 +++++++++++++++++
fedora-arm-xbase.ks | 7 +++++++
fedora-arm-xfce.ks | 10 ++++++++++
5 files changed, 86 insertions(+), 0 deletions(-)
---
diff --git a/fedora-arm-base.ks b/fedora-arm-base.ks
new file mode 100644
index 0000000..86cea49
--- /dev/null
+++ b/fedora-arm-base.ks
@@ -0,0 +1,42 @@
+lang en_US.UTF-8
+#keyboard us
+auth --useshadow --enablemd5
+selinux --enforcing
+firewall --enabled --service=mdns,ssh
+
+bootloader --location=none
+part /boot --size=512 --fstype ext3
+part swap --size=512 --fstype swap
+part / --grow --size=6500 --fstype ext4
+services --enabled=ssh,NetworkManager,avahi-daemon,rsyslog,chronyd --disabled=network
+
+#repo --name=rawhide --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch
+repo --name=fedora --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
+repo --name=updates --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch
+#repo --name=updates-testing --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=updates-testing-f$releasever&arch=$basearch
+
+%packages
+@core
+@standard
+@hardware-support
+@dial-up
+
+kernel
+kernel-lpae
+kernel-tegra
+
+chrony
+arm-boot-config
+initial-setup
+%end
+
+%post
+
+# Because memory is scarce resource in most arm systems we are differing from the Fedora
+# default of having /tmp on tmpfs.
+echo "Disabling tmpfs for /tmp."
+systemctl mask tmp.mount
+
+/usr/sbin/a-b-c
+%end
+
diff --git a/fedora-arm-lxde.ks b/fedora-arm-lxde.ks
new file mode 100644
index 0000000..28a4a74
--- /dev/null
+++ b/fedora-arm-lxde.ks
@@ -0,0 +1,10 @@
+%include fedora-arm-base.ks
+%include fedora-arm-xbase.ks
+%include fedora-lxde-packages.ks
+
+%post
+echo -n "Enabling initial-setup gui mode on startup"
+ln -s /usr/lib/systemd/system/initial-setup-graphical.service /etc/systemd/system/graphical.target.wants/initial-setup-graphical.service
+echo .
+
+%end
diff --git a/fedora-arm-minimal.ks b/fedora-arm-minimal.ks
new file mode 100644
index 0000000..8cf8b87
--- /dev/null
+++ b/fedora-arm-minimal.ks
@@ -0,0 +1,17 @@
+@include fedora-arm-base.ks
+
+
+%post
+
+# setup systemd to boot to the right runlevel
+echo -n "Setting default runlevel to multiuser text mode"
+rm -f /etc/systemd/system/default.target
+ln -s /lib/systemd/system/multi-user.target /etc/systemd/system/default.target
+echo .
+
+echo -n "Enabling initial-setup text mode on startup"
+ln -s /usr/lib/systemd/system/initial-setup-text.service /etc/systemd/system/multi-user.target.wants/initial-setup-text.service
+echo .
+
+%end
+
diff --git a/fedora-arm-xbase.ks b/fedora-arm-xbase.ks
new file mode 100644
index 0000000..2c4b513
--- /dev/null
+++ b/fedora-arm-xbase.ks
@@ -0,0 +1,7 @@
+%packages
+@base-x
+@fonts
+@input-methods
+@multimedia
+@printing
+%end
diff --git a/fedora-arm-xfce.ks b/fedora-arm-xfce.ks
new file mode 100644
index 0000000..5923c6b
--- /dev/null
+++ b/fedora-arm-xfce.ks
@@ -0,0 +1,10 @@
+%include fedora-arm-base.ks
+%include fedora-arm-xbase.ks
+%include fedora-xfce-packages.ks
+
+%post
+echo -n "Enabling initial-setup gui mode on startup"
+ln -s /usr/lib/systemd/system/initial-setup-graphical.service /etc/systemd/system/graphical.target.wants/initial-setup-graphical.service
+echo .
+
+%end
10 years, 11 months
[spin-kickstarts/f19] Remove root password
by Adam Williamson
commit 94d8808a138085238b7e9053aec194bbabc6aa43
Author: Adam Williamson <awilliam(a)redhat.com>
Date: Mon May 27 12:02:58 2013 -0700
Remove root password
From Brian Lane: needed with livecd-tools >= 19.3, see RHBZ #964299
fedora-live-base.ks | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/fedora-live-base.ks b/fedora-live-base.ks
index 3ec104e..f87373a 100644
--- a/fedora-live-base.ks
+++ b/fedora-live-base.ks
@@ -179,6 +179,9 @@ action "Adding live user" useradd \$USERADDARGS -c "Live System User" liveuser
passwd -d liveuser > /dev/null
usermod -aG wheel liveuser > /dev/null
+# Remove root password lock
+passwd -d root > /dev/null
+
# don't use prelink on a running live image
sed -i 's/PRELINKING=yes/PRELINKING=no/' /etc/sysconfig/prelink &>/dev/null || :
10 years, 11 months
[spin-kickstarts] Remove root password
by Adam Williamson
commit 282c3621ba001d0c863040573a9522e95663a202
Author: Adam Williamson <awilliam(a)redhat.com>
Date: Mon May 27 15:40:28 2013 -0700
Remove root password
From Brian Lane: needed with livecd-tools >= 19.3, see RHBZ #964299
fedora-live-base.ks | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/fedora-live-base.ks b/fedora-live-base.ks
index 6e56ee6..f8f1eea 100644
--- a/fedora-live-base.ks
+++ b/fedora-live-base.ks
@@ -179,6 +179,9 @@ action "Adding live user" useradd \$USERADDARGS -c "Live System User" liveuser
passwd -d liveuser > /dev/null
usermod -aG wheel liveuser > /dev/null
+# Remove root password lock
+passwd -d root > /dev/null
+
# turn off firstboot for livecd boots
systemctl --no-reload disable firstboot-text.service 2> /dev/null || :
systemctl --no-reload disable firstboot-graphical.service 2> /dev/null || :
10 years, 11 months
[spin-kickstarts/f19] live-desktop.ks: restore homedir permissions same way the other spins do it
by Adam Williamson
commit 9016e4caeadc3a370be29799237583fbb4f77c58
Author: Adam Williamson <awilliam(a)redhat.com>
Date: Mon May 27 12:08:08 2013 -0700
live-desktop.ks: restore homedir permissions same way the other spins do it
fedora-live-desktop.ks | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/fedora-live-desktop.ks b/fedora-live-desktop.ks
index d9d5cff..3eaa1d8 100644
--- a/fedora-live-desktop.ks
+++ b/fedora-live-desktop.ks
@@ -37,7 +37,6 @@ FOE
# don't run gnome-initial-setup
mkdir ~liveuser/.config
touch ~liveuser/.config/gnome-initial-setup-done
-chown -R liveuser:liveuser ~liveuser/.config
# make the installer show up
if [ -f /usr/share/applications/liveinst.desktop ]; then
@@ -56,7 +55,6 @@ FOE
mkdir -p ~liveuser/.config/autostart
cp /usr/share/anaconda/gnome/fedora-welcome.desktop /usr/share/applications/
cp /usr/share/anaconda/gnome/fedora-welcome.desktop ~liveuser/.config/autostart/
- chown -R liveuser:liveuser /home/liveuser/.config/
fi
fi
@@ -75,6 +73,10 @@ if [ -f /etc/PackageKit/CommandNotFound.conf ]; then
sed -i -e 's/^SoftwareSourceSearch=true/SoftwareSourceSearch=false/' /etc/PackageKit/CommandNotFound.conf
fi
+# make sure to set the right permissions and selinux contexts
+chown -R liveuser:liveuser /home/liveuser/
+restorecon -R /home/liveuser/
+
EOF
%end
10 years, 11 months