diff --git a/sysvinit-2.88+dsf-run.diff b/sysvinit-2.88+dsf-run.diff new file mode 100644 index 0000000..3dc4df8 --- /dev/null +++ b/sysvinit-2.88+dsf-run.diff @@ -0,0 +1,23 @@ +use /run/utmp +Index: src/paths.h +=================================================================== +--- src/paths.h.orig ++++ src/paths.h +@@ -48,3 +48,5 @@ + #define REBOOTSCRIPT2 "/etc/rc.d/rc.6" /* Ditto. */ + #endif + ++#undef UTMP_FILE ++#define UTMP_FILE "/run/utmp" +Index: src/init.c +=================================================================== +--- src/init.c.orig ++++ src/init.c +@@ -2634,6 +2634,7 @@ void init_main(void) + */ + if ((fd = open(UTMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0644)) >= 0) + close(fd); ++ utmpname(UTMP_FILE); + + /* + * Say hello to the world diff --git a/sysvinit.changes b/sysvinit.changes index 1c90c74..4e8945f 100644 --- a/sysvinit.changes +++ b/sysvinit.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jun 1 12:57:08 UTC 2011 - lnussel@suse.de + +- use /run for utmp as that's already mounted by the initrd + ------------------------------------------------------------------ Thu May 19 12:53:51 CEST 2011 - werner@suse.de diff --git a/sysvinit.spec b/sysvinit.spec index cd5118d..08f797b 100644 --- a/sysvinit.spec +++ b/sysvinit.spec @@ -50,6 +50,7 @@ Patch2: sysvinit-2.88dsf-suse.patch Patch3: sysvinit-2.88dsf-no-kill.patch Patch4: notify-pam-dead.patch Patch5: sysvinit-2.88dsf-multiple-sulogin.patch +Patch6: sysvinit-2.88+dsf-run.diff Patch20: powerd-2.0.2.dif Patch21: powerd-2.0.2-getaddrinfo.patch Patch30: killproc-2.19.dif @@ -91,6 +92,7 @@ sysvinit package. %patch3 -p0 -b .no-kill %patch4 -p0 -b .pam %patch5 -p0 -b .sulogin +%patch6 -p0 -b .run %patch pushd ../powerd-%{PDVER} %patch20