-
-
Save samueldr/74c669b44a507c5b65dc95563365d281 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/boot/init/tasks/switch_root.rb b/boot/init/tasks/switch_root.rb | |
index fdff62f75c81..afd61f902d9e 100644 | |
--- a/boot/init/tasks/switch_root.rb | |
+++ b/boot/init/tasks/switch_root.rb | |
@@ -191,7 +191,12 @@ class Tasks::SwitchRoot < SingletonTask | |
if will_kexec? | |
if Tasks.constants.include?(:SetupGadgetMode) | |
Progress.exec_with_message("Tearing down USB Gadget mode") do | |
- Tasks::SetupGadgetMode.instance.teardown() | |
+ begin | |
+ Tasks::SetupGadgetMode.instance.teardown() | |
+ rescue => e | |
+ $logger.fatal("Caught an error during teardown for kexec...") | |
+ $logger.fatal(e.inspect) | |
+ end | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It did boot though!