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:
parent
74a2048082
commit
8d4e490f66
@ -1,31 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
SRC_DIR=$(pwd)
|
echo "$BUNDLE_NAME is provided by the initramfs"
|
||||||
|
|
||||||
. ../../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
|
|
||||||
|
@ -1,31 +1,3 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
SRC_DIR=$(pwd)
|
echo "$BUNDLE_NAME is provided by the initramfs"
|
||||||
|
|
||||||
. ../../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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user