aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Iurt')
-rw-r--r--lib/Iurt/DKMS.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Iurt/DKMS.pm b/lib/Iurt/DKMS.pm
index 521d61c..f50ff9c 100644
--- a/lib/Iurt/DKMS.pm
+++ b/lib/Iurt/DKMS.pm
@@ -218,6 +218,11 @@ sub dkms_compile {
next;
}
}
+
+ # make sure dkms commands are not run in rpm post scripts
+ my $dkms_conf = $chroot_tmp . "/etc/dkms/framework.conf";
+ system("sudo sh -c 'mkdir -p `dirname $dkms_conf`; echo exit 0 > $dkms_conf'");
+
foreach my $pkg ("kernel-$source", "dkms", "kernel-$kernel", $file) {
my $pkgname = basename($pkg);
if ($run->{chrooted_urpmi} && -f $pkg) {
@@ -235,6 +240,7 @@ sub dkms_compile {
}
# recreate the appropriate kernel source link
}
+ system("sudo rm -f $dkms_conf");
$ok or next;
plog('DEBUG', "symlink from /lib/modules/$modulesdir/build to /usr/src/$sourcedir");