Verified Commit 39890732 authored by Alex Denes's avatar Alex Denes 🔧

Allow embedding custom files into initfs

parent 59204d36
......@@ -147,6 +147,15 @@ initfs_apk_keys() {
cp "${basedir}etc/apk/keys/"* "$tmpdir"/etc/apk/keys/
}
initfs_custom_files() {
for file in "$custom_files"; do
if [ -f "$basedir"/$file ]; then
mkdir -p "$tmpdir"/${file%/*}
cp "$basedir"/$file "$tmpdir"/$file
fi
done
}
initfs_cpio() {
if [ -n "$list_sources" ]; then
(cd "$tmpdir" && find . | sort)
......@@ -287,6 +296,7 @@ initfs_base \
&& initfs_kmods \
&& initfs_firmware \
&& initfs_apk_keys \
&& initfs_custom_files \
&& initfs_cpio
rc=$?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment