   def check_requirements("mksquashfs") do
     case System.find_executable("mksquashfs") do
       nil ->
-        Mix.raise("""
-        Squash FS Tools are required to be installed on your system.
-        Please see https://hexdocs.pm/nerves/installation.html#host-specific-tools
-        for installation instructions
-        """)
+        Mix.raise(missing_package_message("squashfs"))
 
       _ ->
         :ok

  def check_host_requirements(:darwin) do
    case System.find_executable("gstat") do
      nil ->
        Mix.raise("""
        gstat is required to create and burn firmware.
        Please see https://hexdocs.pm/nerves/installation.html#host-specific-tools
        for installation instructions
        """)

      _ ->
        :ok

  def check_requirements("fwup") do
    case System.find_executable("fwup") do
      nil ->
        Mix.raise(missing_package_message("fwup"))

      _ ->
        with {vsn, 0} <- System.cmd("fwup", ["--version"]),
