From 0dda5ee522be04b84f798bf59b882ce1529b08c1 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Wed, 14 Mar 2012 12:01:15 +0100 Subject: [PATCH] initramfs: changed initramfs_install_overlay() to receive the targetdir as $1 --- target/share/initramfs.in | 5 ++++- target/share/initramfs/build.sh | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/target/share/initramfs.in b/target/share/initramfs.in index b37b2a5..051afdc 100644 --- a/target/share/initramfs.in +++ b/target/share/initramfs.in @@ -37,7 +37,10 @@ initramfs_install_flist() { # weak functions # -initramfs_install_overlay() { overlay_apply "$@"; } +initramfs_install_overlay() { + local x="$1/initramfs" + [ ! -d "$x" ] || overlay_apply "$x" "$2" +} # should this package be extracted by flist or not? # initramfs_install diff --git a/target/share/initramfs/build.sh b/target/share/initramfs/build.sh index 58dc44f..94df169 100644 --- a/target/share/initramfs/build.sh +++ b/target/share/initramfs/build.sh @@ -58,7 +58,7 @@ done [ -z "$INITRAMFS_POSTINSTALL_HOOK" ] || eval "$INITRAMFS_POSTINSTALL_HOOK" # Apply overlay -[ ! -d "target/$target/initramfs" ] || initramfs_install_overlay "target/$target/initramfs" "$rootfs" +initramfs_install_overlay "target/$target" "$rootfs" # hook $INITRAMFS_POSTOVERLAY_HOOK #