Ken Moffat wrote: > On Sun, Apr 20, 2014 at 09:27:55PM -0500, Bruce Dubbs wrote: >> Ken Moffat wrote: >>> I'm just looking in more detail at the set-systemd and set-sysv >>> scripts in section 7.1. >>> >>> Two questions: >>> >>> 1. set-systemd ends with >>> echo "Now reboot with /sbin/reboot-sysv" >>> and set-sysv ends with >>> echo "Now reboot with /sbin/reboot-systemd" >> >>> Are these swapped, i.e. set-systemd should instruct >>> people to run "reboot-systemd" ? >> >> When you change the symlinks, you need to reboot with the program for >> the existing system, not the new one. After the symlinks are changed, >> the reboot program points to the wrong version. >> >> If you booted into a sysv init, reboot normally calls that init. You >> need to use the sysv reboot. >> >>> 2. does a plain reboot not do whatever is necessary to change from >>> sysv to systemd, or vice-versa ? >> >> No. After a symlink change, a plain reboot would use the wrong version. >> >> -- Bruce > > OK, I take your point that a previous-style reboot is recommended > after changing between the init systems. > > For those of us who enable MagicSysRQ in our kernel builds > (Alt-PrintScreen-letter) I imagine that Alt-PrintScreen-{S,U,B} > (sync, umount, boot) will do the job, and that if we have to go back > to the old init version this will be no worse than any other unclean > shutdown ?
I'm not aware of the MagicSysRQ function but note that the only time the standard reboot is not appropriate is immediately after running the script to change init methods. For those rare times, what's wrong with just using the version specific reboot from the command line. I did consider embedding appropriate reboot line in the script, but thought it was better for the user to see the verbose output of the commands. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page