diff --git a/bin/flatcar-install b/bin/flatcar-install index 4512fe9..4ef76b8 100755 --- a/bin/flatcar-install +++ b/bin/flatcar-install @@ -597,6 +597,10 @@ function write_to_disk() { done [ -z "$try" ] || exit 1 udevadm settle + # We explicitly 'return' to be caught by the trap + # defined at the beginning of the function. + # Otherwise, the trap is simply ignored. + return } function install_from_file() {