overlay bundles. Minor enhancement for the 'static_get' bundle. Currently the 'wget' package from 'static_get' is required to be present in the default overlay directory in order to fix an incompatibility issue with the default implementation of 'wget' in BusyBox. Permanent solution will be to provide the 'wget' from 'static_get' as part of the build process of the 'static_get' overlay bundle.
33 lines
791 B
Bash
Executable File
33 lines
791 B
Bash
Executable File
#!/bin/sh
|
|
|
|
SRC_DIR=$(pwd)
|
|
|
|
echo "Cleaning up the overlay work area. This may take a while..."
|
|
rm -rf ../work/overlay
|
|
|
|
# -p stops errors if the directory already exists.
|
|
mkdir -p ../work/overlay
|
|
mkdir -p ../work/src/minimal_overlay/rootfs
|
|
mkdir -p ../source/overlay
|
|
|
|
cd ../work/src/minimal_overlay/rootfs
|
|
|
|
# Remove all previously generated overlay artifacts.
|
|
for dir in $(ls -d */ 2>/dev/null) ; do
|
|
rm -rf $dir
|
|
echo "Overlay folder '$dir' has been removed."
|
|
done
|
|
|
|
cd $SRC_DIR/../minimal_overlay/rootfs
|
|
|
|
# Copy the files/folders from the default overlay folder
|
|
for dir in $(ls -d */ 2>/dev/null) ; do
|
|
cp -r $dir $SRC_DIR/../work/src/minimal_overlay/rootfs
|
|
echo "Default overlay folder '$dir' has been prepared."
|
|
done
|
|
|
|
echo "Ready to continue with the overlay software."
|
|
|
|
cd $SRC_DIR
|
|
|