[Bug 7550] New: busybox init: Bad order of shutdown instructions

bugzilla at busybox.net bugzilla at busybox.net
Sat Oct 18 22:18:57 UTC 2014


           Summary: busybox init: Bad order of shutdown instructions
           Product: Busybox
           Version: 1.22.x
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: minor
          Priority: P5
         Component: Other
        AssignedTo: unassigned at busybox.net
        ReportedBy: public at hut.pm
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0

Currently the order of shutdown instructions in the
run_shutdown_and_kill_processes function in init/init.c [1] is broken:

1. the inittab actions for the action type "shutdown" are run
2. all the programs are killed

One of the default inittab instructions for shutting down is "umount -a -r". 
However, since it's executed before the programs are killed, it can not
properly unmount some of the file systems because there may be programs still
accessing them.  This leaves those file systems in an unclean state after
shutting down.

I don't know if simply changing the order would be a sensible way to deal with
this issue though, as they may be scripts depending on this order.


Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the busybox-cvs mailing list