[Bug 1207961] New: nvidia G05 rpm fails to install kernel drivers ("popd not found" and invalid /lib/modules)
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 Bug ID: 1207961 Summary: nvidia G05 rpm fails to install kernel drivers ("popd not found" and invalid /lib/modules) Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.4 Hardware: x86-64 OS: openSUSE Leap 15.4 Status: NEW Severity: Normal Priority: P5 - None Component: X11 3rd Party Driver Assignee: gfx-bugs@suse.de Reporter: bugs@elhoy.co.uk QA Contact: sndirsch@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:109.0) Gecko/20100101 Firefox/109.0 Build Identifier: Two faults in the rpm supplied via nvidia repo, which result in failing to complete proprietary driver installs for Nvidia G05. Zypper and graphical yast software both state successful install, yet /var/log/zypper.log shows errors. At next boot, user is presented with text-based login rather than graphical gdm login, yet no error seen during boot. Fault identified after upgrade from Leap 15.3 to 15.4 (zypper --releasever=15.4 dup; all next ver repos correctly included). FAULTS: * makefile for kmp is expecting to use bash (looking for popd), but /bin/sh is a link to /usr/bin/sh. * dracut script for x11-video-nvidiaG05 fails due to looking for specific (and thus incorrect) kernel modules. (log output libkmod: kmod_module_parse_depline: ctx=0x564e80b929d0 path=/lib/modules/4.12.14-lp151.27-default//updates/nvidia-modeset.ko error=No such file or directory). Reproducible: Always Steps to Reproduce: 1.Request install of nvidia G05 packages via zypper or graphical interface (currently version 470.161.03_k5.14.21_150400.22-lp154.58.1 ) 2. Package installation looks to complete, but errors occur in background. Actual Results: Log output shows various errors as above and following: * rpm error example: /var/tmp/rpm-tmp.S5s3dj: line 10: pushd: not found * dracut error output: libkmod: kmod_module_parse_depline: ctx=0x564e80b929d0 path=/lib/modules/4.12.14-lp151.27-default//updates/nvidia-modeset.ko error=No such file or directory. Expected Results: nvidia proprietary drivers should install successfully. WORKAROUND FOR KMP BUILD: create temporary simlink to /usr/bin/bash WORKAROUND FOR DRACUT: awkward! Tested hardware is GeForce GTX 1650ti, and x86_64 main processor. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c1 --- Comment #1 from elhoy <bugs@elhoy.co.uk> --- similar to bug report #1206572. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 elhoy <bugs@elhoy.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Found By|--- |Community User See Also| |https://bugzilla.opensuse.o | |rg/show_bug.cgi?id=1206572 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c2 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |IN_PROGRESS Assignee|gfx-bugs@suse.de |sndirsch@suse.com --- Comment #2 from Stefan Dirsch <sndirsch@suse.com> --- (In reply to elhoy from comment #1)
similar to bug report #1206572.
Hmm. This looks like a different issue. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c3 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |bugs@elhoy.co.uk Flags| |needinfo?(bugs@elhoy.co.uk) --- Comment #3 from Stefan Dirsch <sndirsch@suse.com> ---
FAULTS: * makefile for kmp is expecting to use bash (looking for popd), but /bin/sh is a link to /usr/bin/sh.
And the latter is a link to dash? So another dash user asking for trouble? ;-) Are you aware that G05 drivers is for Kepler cards and older? With GeForce GTX 1650ti you already own a Turing card and could just use G06 drivers. There we even already have a fix for dash users. ------------------------------------------------------------------- Wed Jan 25 11:53:33 UTC 2023 - Bruno Pitrus <brunopitrus@hotmail.com> - Make package dash-sh compatible (boo#1195391) I'm not sure about the dracut script though. Could be that it doesn't help to address things only in nvidia driver package. I guess you need to have at least bash installed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c4 --- Comment #4 from elhoy <bugs@elhoy.co.uk> --- (In reply to Stefan Dirsch from comment #3)
FAULTS: * makefile for kmp is expecting to use bash (looking for popd), but /bin/sh is a link to /usr/bin/sh.
And the latter is a link to dash? So another dash user asking for trouble? ;-)
Are you aware that G05 drivers is for Kepler cards and older? With GeForce GTX 1650ti you already own a Turing card and could just use G06 drivers. There we even already have a fix for dash users.
------------------------------------------------------------------- Wed Jan 25 11:53:33 UTC 2023 - Bruno Pitrus <brunopitrus@hotmail.com> - Make package dash-sh compatible (boo#1195391)
I'm not sure about the dracut script though. Could be that it doesn't help to address things only in nvidia driver package. I guess you need to have at least bash installed.
original symlink is to /usr/bin/sh, itself a link to busybox. so, not dash in my installation. thanks for the note about G06, Stefan... I'll test and report back. appreciated! -- You are receiving this mail because: You are on the CC list for the bug.
SNIP< Checking for file conflicts: ..............................................................................................................................................[done] make: Entering directory '/usr/src/linux-5.14.21-150400.22-obj/x86_64/default' MODPOST /usr/src/kernel-modules/nvidia-525.85.05-default/Module.symvers make: Leaving directory '/usr/src/linux-5.14.21-150400.22-obj/x86_64/default' /var/tmp/rpm-tmp.MromR9: line 14: pushd: not found make: Makefile: No such file or directory make: *** No rule to make target 'Makefile'. Stop. /var/tmp/rpm-tmp.MromR9: line 19: popd: not found install: cannot stat '/usr/src/kernel-modules/nvidia-525.85.05-default/nvidia*.ko': No such file or
SNIP< ... SNIP< dracut: installkernel failed in module kernel-modules-extra warning: %posttrans(nvidia-driver-G06-kmp-default-525.85.05_k5.14.21_150400.22-lp154.4.1.x86_64.rpm)
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c5 --- Comment #5 from elhoy <bugs@elhoy.co.uk> --- okay - same errors re: shell symlink, leading to failure during compile of G06 drivers. Result is a warning, but not an error, therefore user is unaware. :( # zypper in nvidia-video-G06 nvidia-gl-G06 nvidia-compute-G06 ---- directory depmod: WARNING: could not open modules.order at /lib/modules/5.14.21-150400.22-default: No such file or directory depmod: WARNING: could not open modules.builtin at /lib/modules/5.14.21-150400.22-default: No such file or directory /var/tmp/rpm-tmp.MromR9: line 28: pushd: not found cp: missing destination file operand after 'Makefile{,.tmp}' Try 'cp --help' for more information. make: *** No rule to make target 'clean'. Stop. mv: missing destination file operand after 'Makefile{.tmp,}' Try 'mv --help' for more information. /var/tmp/rpm-tmp.MromR9: line 34: popd: not found This system doesn't support Secure Boot scriptlet failed, exit status 5 Executing %posttrans scripts ..............................................................................................................................................[done] -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c6 --- Comment #6 from Stefan Dirsch <sndirsch@suse.com> --- Ok. I've added now the same fix to G05 driver packages. ------------------------------------------------------------------- Mon Feb 6 22:30:22 UTC 2023 - Stefan Dirsch <sndirsch@suse.com> - Make package dash-sh compatible (boo#1207961, boo#1195391) Next G05 RPM update will include it. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c7 --- Comment #7 from Stefan Dirsch <sndirsch@suse.com> --- And if you install bash package (not making it the default shell of course). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c8 --- Comment #8 from elhoy <bugs@elhoy.co.uk> --- (In reply to Stefan Dirsch from comment #7)
And if you install bash package (not making it the default shell of course).
hmm, I do have bash already installed here though. but needed a new link. but a patch to support sh also good. :) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c9 --- Comment #9 from elhoy <bugs@elhoy.co.uk> --- I also still have similar incorrect kernel modules being picked up when dracut script runs. :| various lines in error report, e.g. as follows: libkmod: kmod_module_parse_depline: ctx=0x561ce34b09d0 path=/lib/modules/4.12.14-lp151.27-default//updates/nvidia-modeset.ko error=No such file or directory ...or alternatively... libkmod: kmod_module_parse_depline: ctx=0x55995b9dd9d0 path=/lib/modules/5.3.18-lp152.19-preempt//updates/nvidia-modeset.ko error=No such file or directory --- Compilation of nvidia-modeset.ko occurred successfully (once /bin/sh link was pointed at bash); however, creation of new initramfs via dracut picks oldest set of kernel modules. (I have latest plus previous two kernels in place, and find various garbage of old modules in /lib/modules!) Is script looking only at first files it finds? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c10 --- Comment #10 from Stefan Dirsch <sndirsch@suse.com> --- Ok. I just noticed that the dash fix for G06 came after the packages had been updated on nVidia's repository on January 19, 2023. ------------------------------------------------------------------- Wed Jan 25 11:53:33 UTC 2023 - Bruno Pitrus <brunopitrus@hotmail.com> - Make package dash-sh compatible (boo#1195391) So no wonder that this doesn't work. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c11 --- Comment #11 from elhoy <bugs@elhoy.co.uk> --- Any thoughts on the dracut nvidia-modeset.ko version errors, Stefan? Sounds slightly like https://bugzilla.opensuse.org/show_bug.cgi?id=1198545; worth playing with modeset=0 in /etc/modprobe..? (sorry can't retest until tomorrow eve) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c12 --- Comment #12 from Stefan Dirsch <sndirsch@suse.com> --- I've never seen such libkmod: kmod_module_parse_depline: ctx=... errors. I suggest to make a cleanup below /lib/modules, i.e. remove all generated nvidia kernel modules in /lib/modules/*/updates. Also the symlinks in /lib/modules/*/weak-updates. Then reinstall nvidia-driver-G06-kmp-default with /bin/sh pointing to bash. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c13 elhoy <bugs@elhoy.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |WORKSFORME --- Comment #13 from elhoy <bugs@elhoy.co.uk> --- Resolved. I had debris of kernel modules from many past kernels, in /lib/modules, which something in the install scripts then seemed to pickup. (per old kernel versions in errors mentioned https://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c9) Removing the debris, such that I only have modules for currently installed kernels, then installing G06 worked well. Also have custom symlink in /bin/sh to point to /usr/bin/bash. --> G06 working with 1650ti on Leap 15.4. nvidia-driver-G06-kmp-default; version 525.85.05_k5.14.21_150400.22-lp154.4.1 Thanks for the guidance Stefan! -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1207961 http://bugzilla.opensuse.org/show_bug.cgi?id=1207961#c14 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(bugs@elhoy.co.uk) | --- Comment #14 from Stefan Dirsch <sndirsch@suse.com> --- Ok. Thanks for the update! -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com