aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Iurt/DKMS.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Iurt/DKMS.pm b/lib/Iurt/DKMS.pm
index 9827990..5a03560 100644
--- a/lib/Iurt/DKMS.pm
+++ b/lib/Iurt/DKMS.pm
@@ -240,6 +240,8 @@ sub dkms_compile {
system($command);
}
+ $cache->{dkms}{"$realname-kernel-$modulesdir-$realversion"} = 1;
+
if ($kerver ne $modulesdir && -d "$chroot_tmp/var/lib/dkms/$realname/$realversion/$kerver/") {
# some of the dkms modules do not handle correclty the -k option
# and use uname -r to find kernel modules dir
@@ -254,7 +256,7 @@ sub dkms_compile {
"Iurt the rebuild bot <$config->{admin}>", 0);
next;
}
- $cache->{dkms}{"$realname-kernel-$modulesdir-$realversion"} = 1;
+
if (system("sudo chroot $chroot_tmp /usr/sbin/dkms mkrpm -m $realname -v $realversion --rpm_safe_upgrade -k $modulesdir")) {
plog('FAIL', "build failed ($!)");
next;