Added glibc_libnss_hesiod
This commit is contained in:
parent
5e6ce2b540
commit
509c3a02f9
32
src/minimal_overlay/bundles/glibc_libnss_hesiod/bundle.sh
Executable file
32
src/minimal_overlay/bundles/glibc_libnss_hesiod/bundle.sh
Executable file
@ -0,0 +1,32 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
SRC_DIR=$(pwd)
|
||||||
|
|
||||||
|
. ../../common.sh
|
||||||
|
|
||||||
|
if [ ! -d $SYSROOT ] ; then
|
||||||
|
echo "Cannot continue - GLIBC is missing. Please buld GLIBC first."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "$WORK_DIR/overlay/$BUNDLE_NAME"
|
||||||
|
cd $WORK_DIR/overlay/$BUNDLE_NAME
|
||||||
|
|
||||||
|
DESTDIR="$PWD/${BUNDLE_NAME}_installed"
|
||||||
|
|
||||||
|
rm -rf $DESTDIR
|
||||||
|
|
||||||
|
mkdir -p $DESTDIR/lib
|
||||||
|
cp $SYSROOT/lib/libnss_hesiod.so.2 $DESTDIR/lib/
|
||||||
|
ln -s libnss_hesiod.so.2 $DESTDIR/lib/libnss_hesiod.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