[Bug 413474] New: systemException does not provide prompt
https://bugzilla.novell.com/show_bug.cgi?id=413474 Summary: systemException does not provide prompt Product: openSUSE.org Version: unspecified Platform: PowerPC OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: System Imaging AssignedTo: ms@novell.com ReportedBy: olh@novell.com QAContact: adrian@novell.com Found By: --- systemException fails to run setctsid due to a -EPERM. As a result, no debug shell will start. No idea why that happens. I modified the Setupboot* functions to force systemException -- 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=413474 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c1 --- Comment #1 from Olaf Hering <olh@novell.com> 2008-07-31 00:05:49 MDT --- this happens even if a bash is started very early. /init (none):/> setctsid /dev/console /bin/bash setsid: Operation not permitted (none):/> exec setctsid /dev/console /bin/bash setsid: Operation not permitted Kernel panic - not syncing: Attempted to kill init! Rebooting in 9 seconds.. -- 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=413474 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c2 --- Comment #2 from Marcus Schaefer <ms@novell.com> 2008-07-31 09:09:35 MDT --- does the following patch solve the problem ? -- 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=413474 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c3 --- Comment #3 from Marcus Schaefer <ms@novell.com> 2008-07-31 09:10:23 MDT --- Created an attachment (id=231093) --> (https://bugzilla.novell.com/attachment.cgi?id=231093) kiwi.dif -- 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=413474 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |olh@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=413474 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|systemException does not provide prompt |kiwi: systemException does not provide prompt -- 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=413474 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c4 Olaf Hering <olh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|olh@novell.com | --- Comment #4 from Olaf Hering <olh@novell.com> 2008-08-01 02:28:58 MDT --- This breaks other things. The reason why it does not work is that a script needs to be called instead of plain bash. I tried it this way and got a shell: echo 'exec /bin/bash' >> /dbg.sh setctsid /dev/console /bin/bash /dbg.sh Another thing, 'setctsid /dev/console /bin/bash -i' works as well, I guess bash does odd things when not in interactive mode. with the current svn, this command line does not print the set -x output anymore. quiet panic=3 sysrq=1 kiwistderr=/dev/console kiwidebug=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=413474 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c5 --- Comment #5 from Marcus Schaefer <ms@novell.com> 2008-08-01 03:10:28 MDT --- the attached patch should fix this, could you check it ? Thanks -- 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=413474 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c6 --- Comment #6 from Marcus Schaefer <ms@novell.com> 2008-08-01 03:11:12 MDT --- Created an attachment (id=231239) --> (https://bugzilla.novell.com/attachment.cgi?id=231239) kiwi.dif -- 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=413474 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |olh@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=413474 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c7 Olaf Hering <olh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW Info Provider|olh@novell.com | --- Comment #7 from Olaf Hering <olh@novell.com> 2008-08-04 06:30:51 MDT --- Created an attachment (id=231542) --> (https://bugzilla.novell.com/attachment.cgi?id=231542) kiwi-debug.txt as you can see from the patch and console log, ELOG_EXCEPTION is still tty1 for some reason. -- 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=413474 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c8 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO Info Provider| |olh@novell.com --- Comment #8 from Marcus Schaefer <ms@novell.com> 2008-08-11 02:32:08 MDT --- Hmm, the debug log showed: + eval kiwistderr=/dev/console .. + '[' '!' -z /dev/console ']' + export ELOG_CONSOLE=/dev/console + ELOG_CONSOLE=/dev/console + export ELOG_EXCEPTION=/dev/console + ELOG_EXCEPTION=/dev/console that's ok imho The kernel logging with the command "klogconsole" is set back to tty1 when the system boots, that's also ok I think ? I can't see ELOG_EXCEPTION to be at tty1 except for its initial state which is set after the first call of includeKernelParameters() maybe the kernel console setup with klogconsole is the problem ? You only can pass a tty number to the program so I don't see a possibility to set that on /dev/console -- 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=413474 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c9 --- Comment #9 from Marcus Schaefer <ms@novell.com> 2008-08-11 07:42:06 MDT --- There is also the following in the log: + echo '-----> shellException: providing shell...' + OPTIND=1 + setctsid /dev/console /bin/bash -i does this lead to a shell or not ? thanks -- 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=413474 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P2 - High -- 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=413474 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P2 - High |P5 - None -- 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=413474 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c10 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED Info Provider|olh@novell.com | Resolution| |NORESPONSE --- Comment #10 from Marcus Schaefer <ms@novell.com> 2008-09-25 09:15:41 MDT --- no response -- 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=413474 User olh@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c11 Olaf Hering <olh@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|NORESPONSE | --- Comment #11 from Olaf Hering <olh@novell.com> 2008-09-26 00:37:00 MDT --- I disagree. There is currently no time for stuff like that. And you could probably debug it yourself with a serial console or whatever. -- 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=413474 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c12 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |ASSIGNED --- Comment #12 from Marcus Schaefer <ms@novell.com> 2008-09-26 03:50:48 MDT --- no time would have been a good answer on needinfo :) but I got none. Unfortunately I also don't have time to dig depper into that. I thought you have that setup already running and could test changes easily. At the moment I even don't have a serial cable in my office in Isny so this one needs to wait some time -- 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=413474 User ms@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=413474#c13 Marcus Schaefer <ms@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #13 from Marcus Schaefer <ms@novell.com> 2008-10-24 09:31:33 MDT --- finally fixed this one * bash is started on /dev/console * log file /var/log/boot.kiwi contains set -x informatio --> tested in qemu with kiwistderr=/dev/console kiwidebug=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.
participants (1)
-
bugzilla_noreply@novell.com