rpms/initscripts/OLPC-3 olpc-runlevel.patch, NONE, 1.1 olpc-setolpckeys.patch, NONE, 1.1 olpc-xstartup.patch, NONE, 1.1 initscripts-8.76.2-prettyboot.patch, 1.2, 1.3 initscripts.spec, 1.180, 1.181
C. Scott Ananian (cscott)
fedora-extras-commits at redhat.com
Thu Jul 24 16:59:57 UTC 2008
Author: cscott
Update of /cvs/pkgs/rpms/initscripts/OLPC-3
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7826
Modified Files:
initscripts-8.76.2-prettyboot.patch initscripts.spec
Added Files:
olpc-runlevel.patch olpc-setolpckeys.patch olpc-xstartup.patch
Log Message:
* Unfreeze DCON after failed X start, and fail more quickly when there
are problems.
* Change default runlevel to 5 (replacing an uglier patch to do this
in our image creation tool).
* Remove a redundant udev console initialization which causes the
screen to flash during prettyboot (dlo trac #3569). This replaces
an uglier patch to do this in our image creation tool.
* Set up keymap when hal sees an OLPC keyboard. This replaces an
uglier patch in our image creation tool.
olpc-runlevel.patch:
--- NEW FILE olpc-runlevel.patch ---
--- initscripts-8.76.2/inittab.upstart.orig 2008-07-23 13:47:33.000000000 -0400
+++ initscripts-8.76.2/inittab.upstart 2008-07-23 13:47:51.000000000 -0400
@@ -23,4 +23,4 @@
# 5 - X11
# 6 - reboot (Do NOT set initdefault to this)
#
-id:3:initdefault:
+id:5:initdefault:
olpc-setolpckeys.patch:
--- NEW FILE olpc-setolpckeys.patch ---
diff -ruHpN initscripts-8.76.2.orig/udev/rules.d/96-olpc-keyboard.rules initscripts-8.76.2/udev/rules.d/96-olpc-keyboard.rules
--- initscripts-8.76.2.orig/udev/rules.d/96-olpc-keyboard.rules 1969-12-31 19:00:00.000000000 -0500
+++ initscripts-8.76.2/udev/rules.d/96-olpc-keyboard.rules 2008-07-24 12:44:36.000000000 -0400
@@ -0,0 +1 @@
+ACTION=="add", SYSFS{name}=="AT Translated Set 2 keyboard", KERNEL=="event*", RUN+="/usr/sbin/setolpckeys /dev/input/%k"
olpc-xstartup.patch:
--- NEW FILE olpc-xstartup.patch ---
--- initscripts-8.76.2/event.d/prefdm.orig 2008-07-23 19:34:18.000000000 -0400
+++ initscripts-8.76.2/event.d/prefdm 2008-07-23 19:35:13.000000000 -0400
@@ -8,5 +8,10 @@
console output
respawn
-respawn limit 10 120
+respawn limit 3 120
exec /usr/sbin/olpc-dm
+
+# make sure dcon is unfrozen if something goes wrong.
+post-stop script
+ echo 0 > /sys/devices/platform/dcon/freeze
+end script
initscripts-8.76.2-prettyboot.patch:
Index: initscripts-8.76.2-prettyboot.patch
===================================================================
RCS file: /cvs/pkgs/rpms/initscripts/OLPC-3/initscripts-8.76.2-prettyboot.patch,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- initscripts-8.76.2-prettyboot.patch 27 Jun 2008 21:29:32 -0000 1.2
+++ initscripts-8.76.2-prettyboot.patch 24 Jul 2008 16:59:03 -0000 1.3
@@ -50,3 +50,19 @@
# Load other user-defined modules
for file in /etc/sysconfig/modules/*.modules ; do
+diff -ruHp initscripts-8.76.2.orig/udev/rules.d/10-console.rules initscripts-8.76.2/udev/rules.d/10-console.rules
+--- initscripts-8.76.2.orig/udev/rules.d/10-console.rules 2008-07-24 12:26:56.000000000 -0400
++++ initscripts-8.76.2/udev/rules.d/10-console.rules 2008-07-24 12:29:15.000000000 -0400
+@@ -1,5 +1,11 @@
+ # Console initialization - keyboard, font, etc.
+-KERNEL=="tty0", RUN+="/lib/udev/console_init %k"
++# OLPC: commented out to remove tty0 udev initialization, which takes
++# place during pretty boot and makes the screen flash (dlo trac #3569).
++# We set up the console ourselves, both in
++# 96-olpc-keyboard.rules as well as in olpc-configure, and we
++# set the appropriate font in /etc/init.d/z-boot-anim-stop -- so
++# this is completely unnecessary.
++#KERNEL=="tty0", RUN+="/lib/udev/console_init %k"
+
+ # Check and set up serial and serial-like consoles if necessary
+ KERNEL=="console", RUN+="/lib/udev/console_check %k"
Index: initscripts.spec
===================================================================
RCS file: /cvs/pkgs/rpms/initscripts/OLPC-3/initscripts.spec,v
retrieving revision 1.180
retrieving revision 1.181
diff -u -r1.180 -r1.181
--- initscripts.spec 29 Jun 2008 16:05:13 -0000 1.180
+++ initscripts.spec 24 Jul 2008 16:59:03 -0000 1.181
@@ -6,12 +6,15 @@
# ppp-watch is GPLv2+, everything else is GPLv2
License: GPLv2 and GPLv2+
Group: System Environment/Base
-Release: 1%{?dist}.6
+Release: 1%{?dist}.7
Source: initscripts-%{version}.tar.bz2
Patch0: olpc-initscripts.patch
Patch1: olpc-autologin.patch
Patch2: initscripts-8.76.2-readonly.patch
Patch3: initscripts-8.76.2-prettyboot.patch
+Patch4: olpc-xstartup.patch
+Patch5: olpc-runlevel.patch
+Patch6: olpc-setolpckeys.patch
BuildRoot: /%{_tmppath}/%{name}-%{version}-%{release}-root
Requires: mingetty, /bin/awk, /bin/sed, mktemp, e2fsprogs >= 1.15
Requires: /sbin/sysctl, syslog
@@ -57,6 +60,13 @@
%patch1 -p1
%patch2 -p1 -b .readonly
%patch3 -p1 -b .prettyboot
+%patch4 -p1 -b .xstartup
+%patch5 -p1 -b .runlevel
+%patch6 -p1 -b .setolpckeys
+# clean up patch backup files which would otherwise get copied into the
+# RPM.
+rm -f udev/rules.d/*.prettyboot udev/rules.d/*.setolpckeys
+rm -f event.d/*.xstartup
%build
make
@@ -246,6 +256,17 @@
%ghost %attr(0664,root,utmp) /var/run/utmp
%changelog
+* Wed Jul 23 2008 C. Scott Ananian <cscott at laptop.org> - 8.76.2-1.7
+- Unfreeze DCON after failed X start, and fail more quickly when there
+ are problems.
+- Change default runlevel to 5 (replacing an uglier patch to do this
+ in our image creation tool).
+- Remove a redundant udev console initialization which causes the
+ screen to flash during prettyboot (dlo trac #3569). This replaces
+ an uglier patch to do this in our image creation tool.
+- Set up keymap when hal sees an OLPC keyboard. This replaces an
+ uglier patch in our image creation tool.
+
* Sat Jun 28 2008 C. Scott Ananian <cscott at laptop.org> - 8.76.2-1.6
- Turn on graphical boot by default to generate proper rhgb messages for
pretty boot.
More information about the fedora-extras-commits
mailing list