Re: [PATCH] Ensure libraries are copied to initrd.img for xauth (#516369)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Applied to git.  BTW, you only need to send these things to the list.  Don't
also open bugzilla entries for the same thing.  Thanks.

On Sun, 23 Aug 2009, Steffen Maier wrote:

And while we're at it, also fix it for dynamically linked cmsfs* binaries.
---
scripts/mk-images |    8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index 66c8057..bd24a23 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -572,8 +572,12 @@ makeinitrd() {
        cp $IMGPATH/$LIBDIR/libpam_misc.so.0.* $MBD_DIR/$LIBDIR/libpam_misc.so.0
        cp $IMGPATH/$LIBDIR/libwrap*.so* $MBD_DIR/$LIBDIR/
        ln -s /tmp $MBD_DIR/var/state/xkb
-        cp $IMGPATH/usr/bin/xauth $MBD_DIR/sbin/xauth
-        cp $IMGPATH/usr/sbin/cmsfs* $MBD_DIR/sbin/
+        instbin $IMGPATH /usr/bin/xauth $MBD_DIR /sbin/xauth
+        local cmsfsbin cmd
+        for cmsfsbin in /usr/sbin/cmsfs*; do
+            cmd="$(basename $cmsfsbin)"
+            instbin $IMGPATH /usr/sbin/$cmd $MBD_DIR /sbin/$cmd
+        done
    fi

    if [ -n "$INITRDMODULES" ]; then


- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkqTVAwACgkQ5hsjjIy1VkkYRwCgp1nKBFjcWiTzj4KRaBPVV5U0
5koAn3njyYMie4Y8Zp7qOopE5CsHuHLW
=9wD0
-----END PGP SIGNATURE-----

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux