From 90315c815fa88a7be8a126bce8b4a72035dab1cf Mon Sep 17 00:00:00 2001 From: Greg Price Date: Tue, 9 Jun 2009 20:39:51 -0400 Subject: [PATCH] undo: handle sysfs gone in error_die() Signed-off-by: Greg Price --- ksplice-undo.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ksplice-undo.in b/ksplice-undo.in index 8fd3a06..803a139 100644 --- a/ksplice-undo.in +++ b/ksplice-undo.in @@ -85,6 +85,10 @@ rmtree("/var/run/ksplice/updates/$kid"); exit(0); sub error_die { + if (!update_loaded($kid)) { + print STDERR "Error undoing Ksplice update $kid\n"; + die; + } my $debugfile = get_debug_output($kid, $debug); print STDERR "Error undoing Ksplice update $kid:\n"; my $abort_cause = get_abort_cause($kid); -- 2.11.4.GIT