From f8c546cb290916b4f120513987722e4fa4ce64d3 Mon Sep 17 00:00:00 2001 From: Karsten Hopp Date: Thu, 5 Jul 2001 16:24:19 +0000 Subject: S390-only changes --- initscripts-s390.patch | 101 +++++++++++++++++++++++++++++++++++++++++++++++++ initscripts.spec | 11 +++++- 2 files changed, 111 insertions(+), 1 deletion(-) create mode 100644 initscripts-s390.patch diff --git a/initscripts-s390.patch b/initscripts-s390.patch new file mode 100644 index 00000000..f85fd973 --- /dev/null +++ b/initscripts-s390.patch @@ -0,0 +1,101 @@ +--- initscripts-5.97/rc.d/init.d/halt.s390init Thu Jul 5 17:55:32 2001 ++++ initscripts-5.97/rc.d/init.d/halt Thu Jul 5 17:54:42 2001 +@@ -110,7 +110,9 @@ + ;; + esac + +-runcmd $"Syncing hardware clock to system time" /sbin/hwclock $CLOCKFLAGS ++if [ -x /sbin/hwclock ] ; then ++ runcmd $"Syncing hardware clock to system time" /sbin/hwclock $CLOCKFLAGS ++fi + + # Turn off swap, then unmount file systems. + SWAPS=`awk '! /^Filename/ { print $1 }' /proc/swaps` +--- initscripts-5.97/rc.d/rc.sysinit.s390init Thu Jun 21 19:06:53 2001 ++++ initscripts-5.97/rc.d/rc.sysinit Thu Jul 5 17:55:07 2001 +@@ -105,9 +105,13 @@ + ;; + esac + +-/sbin/hwclock $CLOCKFLAGS +- +-action $"Setting clock $CLOCKDEF: `date`" date ++if [ -x /sbin/hwclock ] ; then ++ /sbin/hwclock $CLOCKFLAGS ++ action $"Setting clock $CLOCKDEF: `date`" date ++else ++ # System date on S390 is always set correctly ++ action $"System date: `date` " date ++fi + + if [ "`/sbin/consoletype`" == "vt" ]; then + # Load keymap +@@ -269,6 +273,9 @@ + else + action $"Skipping ISA PNP configuration at users request: " /bin/true + fi ++else ++ # No /sbin/isapnp => no PNP ++ PNP= + fi + + # Remount the root filesystem read-write. +@@ -276,6 +283,24 @@ + [ "$state" != "rw" ] && \ + action $"Remounting root filesystem in read-write mode: " mount -n -o remount,rw / + ++# Fix up kernel versioning on binary-only modules ++if [ -x /sbin/oco-setkver ]; then ++ kver=`= 1.15 Requires: procps >= 2.0.7-7, sysklogd >= 1.3.31 @@ -28,6 +29,9 @@ deactivate most network interfaces. %prep %setup -q +%ifarch s390 s390x +%patch0 -p1 -b .s390init +%endif %build make @@ -222,6 +226,11 @@ rm -rf $RPM_BUILD_ROOT %ghost %attr(0664,root,utmp) /var/run/utmp %changelog +* Thu Jul 05 2001 Karsten Hopp +- disable hwclock on S390 (no such executable) +- Fix up kernel versioning on binary-only modules (S390) +- don't use newt scripts on S390 console + * Sat Jul 01 2001 Trond Eivind Glomsrød - reenable pump, but make sure dhcpcd is the default. This way, upgrades of systems without dhcpcd has a better chance at -- cgit v1.2.1