diff --git a/kernel/drivers/module-nvidia-current/comar/package.py b/kernel/drivers/module-nvidia-current/comar/package.py
new file mode 100644
index 0000000000..299bbe6f89
--- /dev/null
+++ b/kernel/drivers/module-nvidia-current/comar/package.py
@@ -0,0 +1,32 @@
+#!/usr/bin/python
+
+import os
+
+def postInstall(fromVersion, fromRelease, toVersion, toRelease):
+ if os.path.exists("/etc/default/grub"):
+ fileContent = open("/etc/default/grub").readlines()
+ new = []
+ for line in fileContent:
+ line = line.strip()
+ if line.startswith("#GRUB_CMDLINE_LINUX="): line = line[1:]
+ if line.startswith("GRUB_CMDLINE_LINUX="):
+ if not "rd.driver.blacklist=nouveau" in line:
+ if not line[-2] == '"': line = "%s \"" % line[:-1]
+ line = "%srd.driver.blacklist=nouveau\"" % line[:-1]
+ new.append(line)
+ with open("/etc/default/grub", "w") as f: f.write("\n".join(new))
+ os.system("grub2-mkconfig -o /boot/grub2/grub.cfg")
+
+def postRemove():
+ if os.path.exists("/etc/default/grub"):
+ fileContent = open("/etc/default/grub").readlines()
+ new = []
+ for line in fileContent:
+ line = line.strip()
+ if line.startswith("GRUB_CMDLINE_LINUX="):
+ if not "rd.driver.blacklist=nouveau" in line: return
+ line = "%s\"" % line[:-1-len("rd.driver.blacklist=nouveau")]
+ if line[-2] == " ": line = "%s\"" % line[:-2]
+ new.append(line)
+ with open("/etc/default/grub", "w") as f: f.write("\n".join(new))
+ os.system("grub2-mkconfig -o /boot/grub2/grub.cfg")
diff --git a/kernel/drivers/module-nvidia-current/files/nvidia.tmp b/kernel/drivers/module-nvidia-current/files/nvidia.tmp
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/kernel/drivers/module-nvidia-current/pspec.xml b/kernel/drivers/module-nvidia-current/pspec.xml
index b8ce42d72c..481ab21888 100644
--- a/kernel/drivers/module-nvidia-current/pspec.xml
+++ b/kernel/drivers/module-nvidia-current/pspec.xml
@@ -125,6 +125,9 @@
/usr/share/glvnd/egl_vendor.d/10_nvidia.json
/etc/vulkan/icd.d
+
+ System.Package
+
noDelta
@@ -182,7 +185,58 @@
+
+ nvidia
+ driver
+ Meata package for nvidia-current drivers
+
+ module-nvidia-current
+ xorg-video-nvidia-current
+
+
+ /var/tmp/nvidia
+
+
+ noDelta
+
+
+ nvidia-dkms
+
+
+ nvidia.tmp
+
+
+
+
+ nvidia-dkms
+ driver
+ Meata package for nvidia-current dkms drivers
+
+ nvidia-current-dkms
+ xorg-video-nvidia-current
+
+
+ /var/tmp/nvidia-dkms
+
+
+ noDelta
+
+
+ nvidia
+
+
+ nvidia.tmp
+
+
+
+
+ 2020-07-05
+ 440.82
+ Add comar script and meta packages
+ Marcin Bojara
+ marcin.bojara@gmail.com
+
2020-06-01
440.82