Browse Source

initramfs: changed initramfs_install_overlay() to receive the targetdir as $1

user/chris/test/arm
Alejandro Mery 13 years ago
parent
commit
0dda5ee522
2 changed files with 5 additions and 2 deletions
  1. +4
    -1
      target/share/initramfs.in
  2. +1
    -1
      target/share/initramfs/build.sh

+ 4
- 1
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 <pkg_name> <sandbox> <rootfs>

+ 1
- 1
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
#

Loading…
Cancel
Save