Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 516369

Summary: some dependent libraries missing for xauth in initrd.img for s390x
Product: [Fedora] Fedora Reporter: Steffen Maier <maier>
Component: anacondaAssignee: David Cantrell <dcantrell>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dcantrell, hpicht, karsten, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: s390x   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-08-25 02:35:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 467765    
Attachments:
Description Flags
Ensure libraries are copied to initrd.img for xauth none

Description Steffen Maier 2009-08-08 23:17:03 UTC
Description of problem:
On logging in over the network using ssh with X11 forwarding, ld.so reports an error on missing shared library for executing xauth:
/sbin/xauth: error while loading shared libraries: libXau.so.6: cannot open shar
ed object file: No such file or directory

Version-Release number of selected component (if applicable):
anaconda-11.5.0.59-1.fc11.kh.1.s390x

How reproducible:
Boot/IPL Fedora on s390x install system from kernel.img, generic.prm, and initrd.img, configure network (linuxrc.s390) and then login over the network using ssh with X11 forwarding.

Actual results:
Xauth cannot be executed and hence no MIT magic cookies for X11 authentication can be configured by sshd.

Expected results:
Even though I would not recommend using X11 for GUI install, since it requires recent X extensions many X servers might not have, but rather VNC instead, xauth should still be executable without error.

Additional info:
I had to copy the following shared libraries into initrd.img to make it work:
-bash-4.0# cp -va /usr/lib64/libXau.so.6* initrd/lib64/
`/usr/lib64/libXau.so.6' -> `initrd/lib64/libXau.so.6'
`/usr/lib64/libXau.so.6.0.0' -> `initrd/lib64/libXau.so.6.0.0'
-bash-4.0# cp -va /usr/lib64/libXext.so.6* initrd/lib64/
`/usr/lib64/libXext.so.6' -> `initrd/lib64/libXext.so.6'
`/usr/lib64/libXext.so.6.4.0' -> `initrd/lib64/libXext.so.6.4.0'
-bash-4.0# cp -va /usr/lib64/libXmuu.so.1* initrd/lib64/
`/usr/lib64/libXmuu.so.1' -> `initrd/lib64/libXmuu.so.1'
`/usr/lib64/libXmuu.so.1.0.0' -> `initrd/lib64/libXmuu.so.1.0.0'
-bash-4.0# cp -va /usr/lib64/libX11.so.6* initrd/lib64/
`/usr/lib64/libX11.so.6' -> `initrd/lib64/libX11.so.6'
`/usr/lib64/libX11.so.6.2.0' -> `initrd/lib64/libX11.so.6.2.0'
-bash-4.0# cp -vau /usr/lib64/libxcb.so.1* initrd/lib64/
`/usr/lib64/libxcb.so.1' -> `initrd/lib64/libxcb.so.1'
`/usr/lib64/libxcb.so.1.1.0' -> `initrd/lib64/libxcb.so.1.1.0'

Sorry, I don't have access to a working build system (pungi) so I cannot modify and test the build scripts to account for the necessary changes.

This is what xauth is linked against:
-bash-4.0# ldd `which xauth`
        linux-vdso64.so.1 =>  (0x0000020000024000)
        libXau.so.6 => /usr/lib64/libXau.so.6 (0x0000020000032000)
        libXext.so.6 => /usr/lib64/libXext.so.6 (0x0000020000036000)
        libXmuu.so.1 => /usr/lib64/libXmuu.so.1 (0x0000020000049000)
        libX11.so.6 => /usr/lib64/libX11.so.6 (0x000002000004d000)
        libc.so.6 => /lib64/libc.so.6 (0x0000020000198000)
        libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x0000020000332000)
        libdl.so.2 => /lib64/libdl.so.2 (0x0000020000350000)
        /lib/ld64.so.1 (0x0000020000000000)

Comment 1 Steffen Maier 2009-08-23 16:15:58 UTC
Created attachment 358364 [details]
Ensure libraries are copied to initrd.img for xauth

As discussed here: https://www.redhat.com/archives/anaconda-devel-list/2009-August/msg00183.html

Comment 2 David Cantrell 2009-08-25 02:35:45 UTC
Applied to git repo.