[Bug 1140563] New: When YaST or Zypper installs nvidia-gfxG03-kmp-default and the script fails, the user is not informed about failed install
http://bugzilla.opensuse.org/show_bug.cgi?id=1140563 Bug ID: 1140563 Summary: When YaST or Zypper installs nvidia-gfxG03-kmp-default and the script fails, the user is not informed about failed install Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Enhancement Priority: P5 - None Component: YaST2 Assignee: yast2-maintainers@suse.de Reporter: carlos.e.r@opensuse.org QA Contact: jsrain@suse.com Found By: --- Blocker: --- Created attachment 809584 --> http://bugzilla.opensuse.org/attachment.cgi?id=809584&action=edit log of the session Comes from Bug 1131028 Situation. For testing this (to replicate the bug) I rename the /usr/src/linux-obj/x86_64/default link so that it is "missing". Then I try to install one Nvidia rpm with zypper (with force because it is already installed): Telcontar:/data/storage_c/repositorios_zypp/LocalRPMs_15.0-15.1-nvidia # zypper install --force nvidia-gfxG03-kmp-default-340.107_k4.12.14_lp151.27-lp151.12.50.x86_64.rpm Loading repository data... Reading installed packages... Forcing installation of 'nvidia-gfxG03-kmp-default-340.107_k4.12.14_lp151.27-lp151.12.50.x86_64' from repository 'Plain RPM files cache'. Resolving package dependencies... The following package is going to be reinstalled: nvidia-gfxG03-kmp-default 1 package to reinstall. Overall download size: 3.6 MiB. Already cached: 0 B. No additional space will be used or freed after the operation. Continue? [y/n/...? shows all options] (y): y Retrieving package nvidia-gfxG03-kmp-default-340.107_k4.12.14_lp151.27-lp151.12.50.x86_64 (1/1), 3.6 MiB ( 28.1 MiB unpacked) Checking for file conflicts: ...........................................................................................................................[done] (1/1) Installing: nvidia-gfxG03-kmp-default-340.107_k4.12.14_lp151.27-lp151.12.50.x86_64 ...............................................................[done] Additional rpm output: make: *** /usr/src/linux-obj/x86_64/default: No such file or directory. Stop. make: *** /usr/src/linux-obj/x86_64/default: No such file or directory. Stop. /usr/src/kernel-modules/nvidia-340.107-default / NVIDIA: calling KBUILD... make[1]: *** /lib/modules//source: No such file or directory. Stop. NVIDIA: left KBUILD. nvidia.ko failed to build! make: *** [Makefile:192: nvidia.ko] Error 1 / install: cannot stat '/usr/src/kernel-modules/nvidia-340.107-default/nvidia.ko': No such file or directory Modprobe blacklist files have been created at /etc/modprobe.d to prevent Nouveau from loading. This can be reverted by deleting /etc/modprobe.d/nvidia-*.conf. *** Reboot your computer and verify that the NVIDIA graphics driver can be loaded. *** Executing %posttrans script 'nvidia-gfxG03-kmp-default-340.107_k4.12.14_lp151.27-lp151.12.50.x86_64.rpm' --------------------------------------------------[-] Output of nvidia-gfxG03-kmp-default-340.107_k4.12.14_lp151.27-lp151.12.50.x86_64.rpm %posttrans script: Creating initrd: /boot/initrd-4.12.14-lp151.23-default dracut: Executing: /usr/bin/dracut --logfile /var/log/YaST2/mkinitrd.log --force --force-drivers "pata_jmicron ata_piix ata_generic netconsole xennet xenblk" /boot/initrd-4.12.14-lp151.23-default 4.12.14-lp151.23-default ... dracut: *** Creating image file '/boot/initrd-4.12.14-lp151.27-default' *** dracut: *** Creating initramfs image file '/boot/initrd-4.12.14-lp151.27-default' done *** Executing %posttrans scripts ...........................................................................................................................[done] Telcontar:/data/storage_c/repositorios_zypp/LocalRPMs_15.0-15.1-nvidia # As you can see, the text printed by the postinstall script clearly says the make failed, there is a missing kernel module. But all tools: rpm, zypper, yast, don't notice this and claim that the rpm installed successfully. Of course, for the purpose of testing I provoked the failure by deleting one crucial symlink, but the situation can arise from other problems. It is worse in YaST because the text output is not printed. The user only finds out when he reboot (zypper says to reboot) and video fails. Desired outcome: That the tools tell of the failure. I'll attach the full log of the session. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1140563
Stephan Schöttl
participants (1)
-
bugzilla_noreply@novell.com