Bug 463161 - initscripts + NM cause "spontaneous" reboot when netbd not available
Summary: initscripts + NM cause "spontaneous" reboot when netbd not available
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bill Nottingham
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-22 13:00 UTC by Hans de Goede
Modified: 2014-03-17 03:15 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2008-09-23 18:29:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Hans de Goede 2008-09-22 13:00:19 UTC
Best explained by giving reproducing instructions:
1) Do a rawhide install with /home or /srv on an iscsi target
2) Reboot into the fresh installation
3) iscsi service runs before NM, fails to attach to target
   (this is another bug, but even without this this bug will still happen)
4) netfs runs from upstart, does nothing as no network yet.
5) NetworkManager runs
6) NetworkManager is done bringing up the network and runs netfs, note that
   netfs no is run from NetworkManager not from upstart and thus has no 
   console/tty
7) netfs tries to fsck network attached block devices such as iscsi, but those
   are not present due to 3 (if this error was not there, the following could
   still happen in case of fs damage)
8) netfs detects a fatal fsck errors and tries to start a root shell
9) starting the rootshell fails as no stdin to read the password from
10) netfs reboots the machine
11) machine starts rebooting while it had already continued booting way past
    NM (I actually briefly get a login screen) as NM was doing its stuff async.

So it looks like we need some magic in netfs to not try to run the rootshell but instead log an error and exit when running from NM. netfs *must* exit when this happens and not continue as we do not want to mount the network block devices with fsck errors to avoid further damage.


Note You need to log in before you can comment on or make changes to this bug.