Commit 8ec6e2a2 authored by Natanael Copa's avatar Natanael Copa

Merge branch 'master' into 'master'

Allow embedding custom files into initfs

See merge request !70
parents 8729571f 39890732
......@@ -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)
......@@ -288,6 +297,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