userify/shim

Amazon|Fedora Linux: shim doesn't always start on reboot

Closed this issue · 3 comments

The shim.sh on Amazon Linux doesn't always start on reboot.

Additional details:

  • cannot find modifications of rc.local or any start script.
  • no shim.py, shim.sh, and/or sleep shows in ps ax
  • /var/log/userify_shim.log shows log messages from prior to reboot only

Ok, it is modifying /etc/rc.d/rc.local and not /etc/rc.local, per Fedora, but that script never gets executed.. an annoying distro bug from upstream. Possible solution: fix the distro bug.

This also appears to be an issue on RHEL6 and Cent6, but not 7. and on all of these (fedora, rhel6, cent6, amazon) there is a distribution bug that causes no scripts in /etc/rc.local or /etc/rc.d/rc.local to be executed.

This bug that was fixed in RHEL7 but not in current versions of Amazon Linux. These distributions are in widespread use (obviously) so the fix might be to check /etc/redhat-release or similar and install an init.d script.

(We've tried to avoid that, since every distribution and even most versions of distributions prefers them to have unique macros/metadata/etc, and it'll quickly turn into an unwieldy mess.)

Ideas on a clean and elegant fix?

This is resolved in our testing. Please re-open if you find it to still occur.