[Bug 809812] New: plymouth breaks initrd emergency shell
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c0 Summary: plymouth breaks initrd emergency shell Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: werner@suse.com QAContact: qa-bugs@suse.de CC: mmarek@suse.com Found By: Development Blocker: --- After update from 11.4 ro 12.3 the wrong kernel 2.36.6 was used which had crashed due missing modules. The initrd shell script had tried to provide an emergency shell whichwas not usable due plymouth. Plymouth had locked the console down and also poped up several times as I've tried to type some shell commands to the bash prompt. Plymouth must be disabled *before* any emergency shell -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c1 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |aj@suse.com, | |meissner@suse.com, | |tittiatcoke@gmail.com --- Comment #1 from Dr. Werner Fink <werner@suse.com> 2013-03-17 00:44:28 UTC --- Compare with https://bugzilla.novell.com/show_bug.cgi?id=809806#c9 ... it seems that plymouth is broken by design as it block the consoles. How is valid for the decision to use plymouth instead of splash? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c FeiXiang Zhang <fxzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fxzhang@suse.com AssignedTo|bnc-team-screening@forge.pr |meissner@suse.com |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c2 Marcus Meissner <meissner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|meissner@suse.com |tittiatcoke@gmail.com --- Comment #2 from Marcus Meissner <meissner@suse.com> 2013-03-18 07:24:58 UTC --- -> Raymond (I also took the liberty to make you bugowner of plymouth) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c3 --- Comment #3 from Dr. Werner Fink <werner@suse.com> 2013-03-18 10:31:39 UTC --- I'm thinking on a simply shell function for the initrd script defined the lines below the shell function die() ... emergency (){ local plymouth sulogin if plymouth=$(type -p plymouth 2> /dev/null) ; then $plymouth quit $plymouth --wait fi cd / echo -n "${1+$@} -- " if sulogin=$(type -p sulogin 2> /dev/null); then echo "exiting to $sulogin" $sulogin else echo "exiting to /bin/sh" PATH=$PATH PS1='$ ' /bin/sh -i fi } and then replace all occurrences of echo ... cd / PATH=$PATH PS1='$ ' /bin/sh -i with this shell function should solve the trouble ... beside this with the sulogin from sysvinit-tools or the new linux-utils it would be possible to do the emergency on all system consoles in parallel. Only the root lines from /etc/passwd and /etc/shadow together with /sbin/sulogin are required. This would require to add /sbin/sulogin to the `#%programs:' line of boot-start.sh and a view lines in setup-start.sh
$tmp_mnt/etc/passwd $tmp_mnt/etc/shadow chmod 0644 $tmp_mnt/etc/passwd chmod 0600 $tmp_mnt/etc/shadow grep ^root /etc/passwd >> $tmp_mnt/etc/passwd grep ^root /etc/shadow >> $tmp_mnt/etc/shadow
-- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version|Other |openSUSE 12.3 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c4 --- Comment #4 from Dr. Werner Fink <werner@suse.com> 2013-04-10 11:08:43 UTC --- Created an attachment (id=534543) --> (http://bugzilla.novell.com/attachment.cgi?id=534543) mkinitrd-2.7.2-sulogin.patch Switch plymouth and/or splash off before escaping to emergency shell As well as use sulogin to have a emergency shell on all consoles and to enable a password check. For this check the initrd should be set to be readable only by root to avoid that users can to spy on the confidential data stored within the initrd. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c5 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |mmarek@suse.com --- Comment #5 from Dr. Werner Fink <werner@suse.com> 2013-04-10 11:11:01 UTC --- @Michal: What do you think about? Clearly the emergency shell in boot-nfs.sh has to also replaced by the emergency shell function. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c7 --- Comment #7 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-05-07 02:00:08 CEST --- This is an autogenerated message for OBS integration: This bug (809812) was mentioned in https://build.opensuse.org/request/show/174657 Factory / mkinitrd -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c8 --- Comment #8 from Frederic Crozat <fcrozat@suse.com> 2013-05-30 16:29:13 UTC --- I've been hit by a similar bug (when / couldn't be mounted due to some btrfs issue) and I couldn't type anything due to plymouth not being properly shut down before dropping to shell. Could we, please, push this to 12.3 update ? I've tested the patch and it works fine.. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c9 --- Comment #9 from Marcus Meissner <meissner@suse.com> 2013-05-31 11:29:41 UTC --- Question for Michal Marek, right? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c10 --- Comment #10 from Frederic Crozat <fcrozat@suse.com> 2013-05-31 12:56:29 UTC --- to whoever maintains mkinitrd :) But openSUSE maintenance team approval would be great too ;) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c11 --- Comment #11 from Marcus Meissner <meissner@suse.com> 2013-05-31 13:13:13 UTC --- speaking for maintenance it is a good idea to have it, looks safe and testable too. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c12 --- Comment #12 from Frederic Crozat <fcrozat@suse.com> 2013-05-31 13:35:46 UTC --- if you want to test a breakage fixed by this bug, here is an howto: - install 12.3 on a VM, with btrfs as FS (make sure to install a system with a desktop environment) - once install is done, add "crashme" to the options for / in /etc/fstab - run mkinitrd - reboot - startup will not complete, splash won't quit - pressing quit will hide splash but you won't be able to type anything in the debug shell -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c13 Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jnelson-suse@jamponi.net --- Comment #13 from Frederic Crozat <fcrozat@suse.com> 2013-06-03 02:43:23 UTC --- *** Bug 818821 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=818821 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c14 --- Comment #14 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-07-25 16:00:21 CEST --- This is an autogenerated message for OBS integration: This bug (809812) was mentioned in https://build.opensuse.org/request/show/184330 Factory / open-fcoe -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c15 --- Comment #15 from Swamp Workflow Management <swamp@suse.de> 2013-09-09 12:07:51 UTC --- openSUSE-RU-2013:1416-1: An update that has 10 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 755642,775268,784613,787075,801984,804398,805059,809742,809812,814540 CVE References: Sources used: openSUSE 12.3 (src): mkinitrd-2.7.2-3.5.1 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c16 --- Comment #16 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-10-10 14:00:35 CEST --- This is an autogenerated message for OBS integration: This bug (809812) was mentioned in https://build.opensuse.org/request/show/202786 Factory / open-fcoe -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c17 --- Comment #17 from Bernhard Wiedemann <bwiedemann@suse.com> 2013-10-10 16:00:46 CEST --- This is an autogenerated message for OBS integration: This bug (809812) was mentioned in https://build.opensuse.org/request/show/202801 Factory / open-fcoe -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c18 Raymond Wooninck <tittiatcoke@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |CLOSED InfoProvider|mmarek@suse.com | Resolution| |NORESPONSE --- Comment #18 from Raymond Wooninck <tittiatcoke@gmail.com> 2014-02-04 22:34:18 UTC --- Closing due to inactivity -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c19 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|NORESPONSE | --- Comment #19 from Dr. Werner Fink <werner@suse.com> 2014-02-05 07:59:46 UTC --- Sorry but this is a major feature. Plymouth should not break any shell nor any getty not (su)login due e.g. locking the terminal line. @ Michal : PLEASE would give an answer to comment #5 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c20 Raymond Wooninck <tittiatcoke@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEEDINFO CC| |kigurame@opensuse.org InfoProvider| |werner@suse.com --- Comment #20 from Raymond Wooninck <tittiatcoke@gmail.com> 2014-02-05 08:08:20 UTC --- @Werner, As far as I can see in comment #15 an maintenance update was done for mkinitrd. So are you sure that this is bug still relevant or has it been resolved ? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c21 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sfalken@opensuse.org InfoProvider|werner@suse.com |sfalken@opensuse.org --- Comment #21 from Dr. Werner Fink <werner@suse.com> 2014-02-05 08:33:47 UTC --- Indeed I've submitted this. Nevertheless AFAIK dracut as successor does not have this sulogin nor the root password feature. And the original problem was/is that plymouth does lock the devices below /dev/console which fools e.g. sulogin as well as the following shell. The question is: How we can make sure that plymouth is really stopped before an emergency shell or and sulogin followed by an emergency shell? For mkinitrd I've used +emergency() { + local plymouth sulogin + if plymouth=$(type -p plymouth 2> /dev/null) ; then + $plymouth quit + $plymouth --wait + fi + if test -w /proc/splash ; then + echo verbose >| /proc/splash + fi + cd / + echo -n "${1+$@} -- " + if sulogin=$(type -p sulogin 2> /dev/null); then + echo "exiting to $sulogin" + PATH=$PATH PS1='$ ' $sulogin /dev/console + else + echo "exiting to /bin/sh" + PATH=$PATH PS1='$ ' /bin/sh -i + fi +} as replacement for all /bin/bash emergency shells. The question is if dracut does the same? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=809812 https://bugzilla.novell.com/show_bug.cgi?id=809812#c Raymond Wooninck <tittiatcoke@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|tittiatcoke@gmail.com |kigurame@opensuse.org -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com