Added glibc_libresolv bundle
This commit is contained in:
parent
d62f02178e
commit
18afd9811d
@ -22,7 +22,6 @@ install -m755 "$SRC_DIR/05_rc.dhcp" "$DESTDIR/etc/05_rc.dhcp"
|
||||
|
||||
# These libraries are necessary for the DNS resolving.
|
||||
install -d -m755 "$DESTDIR/lib"
|
||||
install -m755 "$SYSROOT/lib/libresolv.so.2" "$DESTDIR/lib/libresolv.so.2"
|
||||
install -m755 "$SYSROOT/lib/libnss_dns.so.2" "$DESTDIR/lib/libnss_dns.so.2"
|
||||
install -m755 "$SYSROOT/lib/libnss_files.so.2" "$DESTDIR/lib/libnss_files.so.2"
|
||||
strip -g "$DESTDIR/lib/*" 2>/dev/null
|
||||
|
1
src/minimal_overlay/bundles/dhcp/mll_deps
Normal file
1
src/minimal_overlay/bundles/dhcp/mll_deps
Normal file
@ -0,0 +1 @@
|
||||
glibc_libresolv
|
31
src/minimal_overlay/bundles/glibc_libresolv/bundle.sh
Executable file
31
src/minimal_overlay/bundles/glibc_libresolv/bundle.sh
Executable file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
|
||||
SRC_DIR=$(pwd)
|
||||
|
||||
. ../../common.sh
|
||||
|
||||
if [ ! -d $SYSROOT ] ; then
|
||||
echo "Cannot continue - GLIBC is missing. Please buld GLIBC first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd $WORK_DIR/overlay/$BUNDLE_NAME
|
||||
|
||||
DESTDIR="$PWD/${BUNDLE_NAME}_installed"
|
||||
|
||||
rm -rf $DESTDIR
|
||||
|
||||
mkdir -p $DESTDIR/lib
|
||||
cp $SYSROOT/lib/libresolv.so.2 $DESTDIR/lib/
|
||||
ln -s libresolv.so.2 $DESTDIR/lib/libresolv.so
|
||||
|
||||
echo "Reducing $BUNDLE_NAME size"
|
||||
strip -g $DESTDIR/lib/*
|
||||
|
||||
ROOTFS="$WORK_DIR/src/minimal_overlay/rootfs"
|
||||
|
||||
cp -r $DESTDIR/* $ROOTFS
|
||||
|
||||
echo "$BUNDLE_NAME has been installed."
|
||||
|
||||
cd $SRC_DIR
|
Loading…
x
Reference in New Issue
Block a user