[Git-commits] [grml/grml-debootstrap] 811c29: Move try_umount above cleanup()

Michael Prokop noreply at github.com
Fri Feb 2 15:53:53 CET 2024


  Branch: refs/heads/master
  Home:   https://github.com/grml/grml-debootstrap
  Commit: 811c294079691675c4815808fe780e472bf84233
      https://github.com/grml/grml-debootstrap/commit/811c294079691675c4815808fe780e472bf84233
  Author: Darshaka Pathirana <dpat at syn-net.org>
  Date:   2024-02-02 (Fri, 02 Feb 2024)

  Changed paths:
    M grml-debootstrap

  Log Message:
  -----------
  Move try_umount above cleanup()

try_umount() replaced all umount calls in PR #264.

Unfortunately, the function is defined too late for a few of functions,
especially for cleanup(), which fails with:

   -> Failed (rc=1)
  /sbin/grml-debootstrap: line 260: try_umount: command not found
  Unexpected non-zero exit code 127 in /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap /sbin/grml-debootstrap at line 260 329 1107 1179 0 detected!
  last bash command: try_umount 3 "${MNTPOINT}"/boot/efi
   -> Failed (rc=1)
  /sbin/grml-debootstrap: line 260: try_umount: command not found

Moved the try_umount above cleanup().

Closes: #271


  Commit: 7dc77a076ff96e9b528493f2aab8f1d2b7af56ea
      https://github.com/grml/grml-debootstrap/commit/7dc77a076ff96e9b528493f2aab8f1d2b7af56ea
  Author: Michael Prokop <mika at grml.org>
  Date:   2024-02-02 (Fri, 02 Feb 2024)

  Changed paths:
    M grml-debootstrap

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/pr/272'


Compare: https://github.com/grml/grml-debootstrap/compare/df9c1ae20866...7dc77a076ff9


More information about the Git-commits mailing list