• Successful_Try543@feddit.org
    link
    fedilink
    arrow-up
    4
    ·
    edit-2
    16 hours ago

    Yes, in this command one liner, the system should not power off when the update took too long.

    Or is yes somehow supposed to take care of this?

    No, yes is simply answering all questions asked during the update procedure (start upgrade, replace config files, restart services) with “yes”.

    • somerandomperson@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      15 hours ago

      There’s no timeout for sudo. When permitted, a process runs as root and then closes.

      Also, the system will still shutdown when update fails because pipes do not care if previous commands exit with a nonzero code, unless pipefail is set.

      Edit: i’m blind.