diff --git a/kernel/drivers/module-nvidia340/comar/package.py b/kernel/drivers/module-nvidia340/comar/package.py
new file mode 100644
index 0000000000..299bbe6f89
--- /dev/null
+++ b/kernel/drivers/module-nvidia340/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-nvidia340/files/nvidia.tmp b/kernel/drivers/module-nvidia340/files/nvidia.tmp
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/kernel/drivers/module-nvidia340/pspec.xml b/kernel/drivers/module-nvidia340/pspec.xml
index 188fbdd925..a65faf6fe2 100644
--- a/kernel/drivers/module-nvidia340/pspec.xml
+++ b/kernel/drivers/module-nvidia340/pspec.xml
@@ -72,6 +72,9 @@
noDelta
+
+ System.Package
+
@@ -108,6 +111,7 @@
NVIDIA driver sources for linux
dkms
+ xorg-video-nvidia340
/etc/modprobe.d/nvidia340-dkms.conf
@@ -125,10 +129,40 @@
nvidia-current-dkms
nvidia430-dkms
nvidia390-dkms
+ nvidia340
+
+ nvidia340
+ driver
+ Meata package for nvidia340 drivers
+
+ module-nvidia340
+ xorg-video-nvidia340
+
+
+ /var/tmp/nvidia
+
+
+ noDelta
+
+
+ nvidia340-dkms
+
+
+ nvidia.tmp
+
+
+
+
+ 2020-07-05
+ 340.108
+ Add comar script and meta package
+ Marcin Bojara
+ marcin.bojara@gmail.com
+
2020-06-01
340.108
diff --git a/kernel/drivers/module-nvidia390/comar/package.py b/kernel/drivers/module-nvidia390/comar/package.py
new file mode 100644
index 0000000000..299bbe6f89
--- /dev/null
+++ b/kernel/drivers/module-nvidia390/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-nvidia390/files/nvidia.tmp b/kernel/drivers/module-nvidia390/files/nvidia.tmp
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/kernel/drivers/module-nvidia390/pspec.xml b/kernel/drivers/module-nvidia390/pspec.xml
index f3cf0680d7..d20d5292c0 100644
--- a/kernel/drivers/module-nvidia390/pspec.xml
+++ b/kernel/drivers/module-nvidia390/pspec.xml
@@ -101,6 +101,9 @@
noDelta
+
+ System.Package
+
@@ -148,6 +151,7 @@
NVIDIA driver sources for linux
dkms
+ xorg-video-nvidia390
/etc/modprobe.d/nvidia390-dkms.conf
@@ -165,10 +169,40 @@
nvidia340-dkms
nvidia430-dkms
nvidia-current-dkms
+ nvidia390
+
+ nvidia390
+ driver
+ Meata package for nvidia390 drivers
+
+ module-nvidia390
+ xorg-video-nvidia390
+
+
+ /var/tmp/nvidia
+
+
+ noDelta
+
+
+ nvidia390-dkms
+
+
+ nvidia.tmp
+
+
+
+
+ 2020-07-05
+ 390.132
+ Add comar script and meta package
+ Marcin Bojara
+ marcin.bojara@gmail.com
+
2020-06-01
390.132
diff --git a/kernel/drivers/module-nvidia430/comar/package.py b/kernel/drivers/module-nvidia430/comar/package.py
new file mode 100644
index 0000000000..299bbe6f89
--- /dev/null
+++ b/kernel/drivers/module-nvidia430/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-nvidia430/files/nvidia.tmp b/kernel/drivers/module-nvidia430/files/nvidia.tmp
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/kernel/drivers/module-nvidia430/pspec.xml b/kernel/drivers/module-nvidia430/pspec.xml
index bce62886d4..b9008b63ef 100644
--- a/kernel/drivers/module-nvidia430/pspec.xml
+++ b/kernel/drivers/module-nvidia430/pspec.xml
@@ -134,6 +134,9 @@
noDelta
+
+ System.Package
+
@@ -176,6 +179,7 @@
NVIDIA driver sources for linux
dkms
+ xorg-video-nvidia430
/etc/modprobe.d/nvidia430-dkms.conf
@@ -193,10 +197,40 @@
nvidia-current-dkms
nvidia390-dkms
nvidia340-dkms
+ nvidia430
+
+ nvidia430
+ driver
+ Meata package for nvidia430 drivers
+
+ module-nvidia430
+ xorg-video-nvidia430
+
+
+ /var/tmp/nvidia
+
+
+ noDelta
+
+
+ nvidia390-dkms
+
+
+ nvidia.tmp
+
+
+
+
+ 2020-07-05
+ 430.64
+ Add comar script and meta package
+ Marcin Bojara
+ marcin.bojara@gmail.com
+
2020-06-01
430.64