From bd47246031803c4814275949a47e1e1b4517d3c7 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Wed, 10 Jun 2009 12:24:47 -0400 Subject: [PATCH] undo: remove update dir even if gone from kernel Signed-off-by: Greg Price --- ksplice-undo.in | 1 + 1 file changed, 1 insertion(+) diff --git a/ksplice-undo.in b/ksplice-undo.in index 47fd308..e671637 100644 --- a/ksplice-undo.in +++ b/ksplice-undo.in @@ -43,6 +43,7 @@ chdir("/sys/module"); if (!update_loaded($kid) && !-e $update && !defined(glob("${update}_*_{old,new}"))) { print "Ksplice id $kid is not present in the kernel\n"; + rmtree("/var/run/ksplice/updates/$kid") if (-e "/var/run/ksplice/updates/$kid"); exit(1); } my $have_sysfs = update_loaded($kid); -- 2.11.4.GIT