View previous topic :: View next topic |
Author |
Message |
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Wed Mar 13, 2019 10:41 pm Post subject: Why changes to inittab, call telinit u during halt/reboot? |
|
|
Code: | $ diff /etc/inittab /etc/._cfg0000_inittab
23c23,24
< l0:0:wait:/sbin/openrc shutdown
---
> l0u:0:wait:/sbin/telinit u
> l0:0:wait:/sbin/openrc shutdown
29a31
> l6u:6:wait:/sbin/telinit u | man telinit wrote: | U or u tell init to re-execute itself (preserving the state). No re-examining of /etc/inittab file happens. Runlevel should be one of
Ss0123456 otherwise request would be silently ignored. | It doesn't appear that upstream provides a default inittab, and the statement of the obvious (call telinit u when halting or rebooting) isn't helpful with the important part, why the change was made.
So, does anyone have an idea why this might have been done? It kind of seems kludgy. _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Thu Mar 14, 2019 9:22 pm Post subject: |
|
|
If you're unmounting filesystems, /sbin/init will usually be the last open filehandle after killall5's done its work. Possibly this is an attempt to release that FH so a full unmount can be done (on brittle filesystems like ext2, which don't like being mounted when the system goes down). Also, it's been a while since I touched this stuff, but I think initramfs/pivot_root has similar weird implications. |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
Posted: Fri Mar 15, 2019 3:05 am Post subject: |
|
|
Thanks, that sounds plausible.
It had the feel of "adjusting" a tube TV by whacking it :) _________________ Quis separabit? Quo animo? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|