[Bug 1155687] New: Bad install when using Tumbleweed live iso (20191030)
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687 Bug ID: 1155687 Summary: Bad install when using Tumbleweed live iso (20191030) Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Installation Assignee: yast2-maintainers@suse.de Reporter: nwr10cst-oslnx@yahoo.com QA Contact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 Build Identifier: I was alerted to this via a forum post: https://forums.opensuse.org/showthread.php/538068-You-can-t-install-from-the... So I downloaded the KDE live iso to give it a try. I mostly went with defaults for installing KDE, except that I used "ext4" for root and "/home". This was in a KVM virtual machine. The install itself seemed to go fine. The one peculiarity was that, at the end, it said it would reboot. But this was install from a live system, so of course it just dropped back to the live system instead of rebooting. The real problem came when I attempted to boot the newly installed system. I finished up with a black screen. Retrying, with " 3" at the end of the kernel bootline, I did successfully boot to a command line. There were several failure messages during boot. The seemed to indicate that some required system users and system groups were missing. I will attach Yast logs for the install, and a copy of the installed "/etc/passwd" and "/etc/group". Reproducible: Always -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687#c1
--- Comment #1 from Neil Rickert
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687#c2
--- Comment #2 from Neil Rickert
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687#c3
Andrei Borzenkov
Boot messages indicating missing users "sddm", "polkitd" and several others.
Bug is actually rather interesting. Following happens 1. Live system has most users in its /etc/passwd. 2. Scripts used by various system-user-* packages basically do getent user || useradd user 3. During installation /run from Live system is bind-mounted on target /mnt/run (where /mnt is root of system being installed). This makes nscd socket available to scripts run by rpm which are chrooted to /mnt. 4. So during installation getent contacts nscd *in Live system*, and gets positive answer. As result, user creation is skipped. Possible fixes are 1. Do not use getent, parse /etc/passwd directly 2. Stop nscd during installation in Live 3. Do not bind mount /run onto /mnt/run, just explicitly mount tpmfs on /mnt/run I personally favor 3, I do not see why rpm would need access to "parent" /run during installation. Also there are packages that use getent || useradd directly. To illustrate: linux@10:~> cat /mnt/etc/passwd root:x:0:0:root:/root:/bin/bash linux@10:~> sudo rpm --root /mnt --dbpath /var/lib/rpm -U --percent --noglob --force --nodeps -- system-user-lp-20170617-8.2.noarch.rpm %% 0.000000 %% 0.000000 useradd -r -s /sbin/nologin -c "Printing daemon" -g lp -d /var/spool/lpd lp %% 0.000000 %% 46.610172 warning: user lp does not exist - using root warning: group lp does not exist - using root %% 73.728813 %% 100.000000 linux@10:~> cat /mnt/etc/passwd root:x:0:0:root:/root:/bin/bash linux@10:~> sudo umount /mnt/run linux@10:~> sudo rpm --root /mnt --dbpath /var/lib/rpm -U --percent --noglob --force --nodeps -- system-user-lp-20170617-8.2.noarch.rpm %% 0.000000 %% 0.000000 useradd -r -s /sbin/nologin -c "Printing daemon" -U -d /var/spool/lpd lp %% 0.000000 %% 46.610172 %% 73.728813 %% 100.000000 linux@10:~> cat /mnt/etc/passwd root:x:0:0:root:/root:/bin/bash lp:x:499:499:Printing daemon:/var/spool/lpd:/sbin/nologin linux@10:~> exit Cc maintainers of yast2-installation and sysuser-tools. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687#c5
--- Comment #5 from Neil Rickert
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687#c6
--- Comment #6 from Neil Rickert
http://bugzilla.opensuse.org/show_bug.cgi?id=1155687
Hans-Peter Jansen
participants (1)
-
bugzilla_noreply@novell.com