Replaced glibc_libc and glibc_ld-linux with metapackages

Their provided by the initramfs, no need to waste disk space
This commit is contained in:
bauen1 2017-11-28 20:51:36 +01:00
parent 74a2048082
commit 8d4e490f66
No known key found for this signature in database
GPG Key ID: FF0AAF5E0812BA9C
2 changed files with 2 additions and 58 deletions

View File

@ -1,31 +1,3 @@
#!/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/ld-linux.so.2 $DESTDIR/lib/
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
echo "$BUNDLE_NAME is provided by the initramfs"

View File

@ -1,31 +1,3 @@
#!/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/libc.so.6 $DESTDIR/lib/
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
echo "$BUNDLE_NAME is provided by the initramfs"