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
fix debootstrap error handler We were using the old-style "RC" error checking. Now that has all been moved to a global error handler, so we need to move log parsing there as well. Fixes: 9706bd9 (improved error handling, removed RC=$? noops, 2023-12-22) Closes: #268
consistently use same code path for umounting fixes https://github.com/grml/grml-debootstrap/issues/263
remove noops "eend $RC"
improved error handling, removed RC=$? noops
Merge remote-tracking branch 'origin/pr/259'
coding style: use '[' instead of 'test'
consistently use ESP label for the EFI system partition change from EFI to ESP for arm64 builds
fix error handling for unmounting on the arm64 architecture
style fix: always use "${MNTPOINT}"/boot/efi instead of sometimes mixed with "${MNTPOINT}/boot/efi"
ignore non-zero exist codes of `modprobe loop` and `modprobe dm-mod` to work around an issue by github actions drop `-q` from modprobe for better debug output
the first `rmdir "$MNTPOINT"` needs `|| true` because it will not always work will not work in cases where /dev etc is still mounted inside the chroot
ignore exit codes of umount during cleanup function because the cleanup function gets run by the error handler and should not be nested
syntax check before parsing config files
adjust use of `dialog` for new error handling method
adjust options parsing for new error handling method
trigger error handler as soon as possible https://github.com/grml/grml-debootstrap/issues/224#issuecomment-1779673194
adjust stages executing for new error handling method
adjust use of `dialog` for new error handling method
fix use of `eend` in `cleanup` function