[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: mk-images creates wrong link /lib/ld-linux.so.2
- From: Jeroen van Meeuwen <kanarip kanarip com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: mk-images creates wrong link /lib/ld-linux.so.2
- Date: Sat, 07 Feb 2009 13:10:04 +0100
jacek wrote:
Hi,
After running in anaconda 11.5.0.12:
make DESTDIR=/f11/anaconda/out REPO=/f11/repo testiso
in initrd.img image, link /lib/ld-linux.so.2 point at ld-linux.so.2 instead of ld-2.9.90.so.
# ls -l ld-linux.so.2
lrwxrwxrwx 1 root root 13 2009-02-07 05:21 ld-linux.so.2 -> ld-linux.so.2
I've found in script scripts/mk-images function instbin() which creates
ld-linux.so.2, but only if ld-linux.so.2 have been created already.
I've tried only this function and it created bad link if there wasn't any linker
in /lib directory.
Something similar to this might help:
diff --git a/scripts/mk-images b/scripts/mk-images
index 6ab52ce..d05ff58 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -374,7 +374,7 @@ instbin() {
done
pushd $DIR/$LIBDIR
- if [ -f ld-linux.so.2 ]; then
+ if [ -f ld-linux.so.2 -a ! -L ld-linux.so.2 ]; then
rm -f ld-linux.so.2
linker="$(ls -1 ld-*.*.*.so)"
if [ -z "$linker" ]; then
Kind regards,
Jeroen van Meeuwen
-kanarip
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]