Skip to content

Instantly share code, notes, and snippets.

@cam8001
Last active September 19, 2020 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cam8001/cf1bb25fdff3a2f29497ff2f0b94ad0d to your computer and use it in GitHub Desktop.
Save cam8001/cf1bb25fdff3a2f29497ff2f0b94ad0d to your computer and use it in GitHub Desktop.
/sbin/init: unrecognized option '--version'

If you get an error in some script or whatever like:

/sbin/init: unrecognized option '--version'

This is probably because:

  • /sbin/init is a symlink to /lib/systemd/systemd
  • systemd supports the --version flag, but not if it is called via a symlink ??

So, if possible, replace calls to /sbin/init with calls to systemd instead. Or something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment