FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 06-02-2010, 03:06 PM
David Cantrell
 
Default Only kill init for reboot/halt and then exit linuxrc.s390

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack, will apply.

On Tue, 1 Jun 2010, Steffen Maier wrote:


Like init.c, linuxrc.s390 should exit immediately after having
sent the corresponding signal to the init process when called
as reboot or halt (or poweroff in the future).
While it might often not be noticed, if linuxrc continues after
sending the signal since the system shuts down anyway,
there are practical cases where the signalling does not work
and linuxrc would otherwise startup yet another instance of the
installer. Even though, linuxrc detects that it does not run
with PID==1, we should not bet on its "test" mode
for the cases where it serves as replacement for reboot/halt.

Related: rhbz#571370
---
loader/linuxrc.s390 | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/loader/linuxrc.s390 b/loader/linuxrc.s390
index 99e5192..614f7ff 100644
--- a/loader/linuxrc.s390
+++ b/loader/linuxrc.s390
@@ -43,8 +43,10 @@

if [ "${0##*/}" = "reboot" ]; then
kill -USR2 1
+ exit
elif [ "${0##*/}" = "halt" ]; then
kill -USR1 1
+ exit
fi

VERSION=1.2



- --
David Cantrell <dcantrell@redhat.com>

Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAkwGc5IACgkQ5hsjjIy1VkmBYQCgxmI9UgnrBa 44p6pEzLPqOXlK
+5oAoIuR4/enzB8XcBd67SH8yizkJV/h
=v6CY
-----END PGP SIGNATURE-----

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:19 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org