diff --git a/pkg/init/etc/inittab b/pkg/init/etc/inittab index 1c4e4bfb4..5957ee059 100644 --- a/pkg/init/etc/inittab +++ b/pkg/init/etc/inittab @@ -6,4 +6,9 @@ ::ctrlaltdel:/bin/rc.shutdown reboot # Stuff to do on shutdown -::shutdown:/bin/rc.shutdown poweroff +# +# Use 'noop' so that rc.shutdown does not attempt to invoke its own shutdown +# actions. Instead, it will return after it invokes sync/umount. This lets +# init decide which shutdown action to run. (So that it's possible to correctly +# handle halt, reboot, or poweroff) +::shutdown:/bin/rc.shutdown noop