Browse Source

Improved overlay_apply() to support D_foodir macros on the content of .txt and .sh/.exec files and on the target of the .ln files

karasz/new-early
Alejandro Mery 17 years ago
parent
commit
9ae0ded830
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      lib/overlay/overlay-functions.in

+ 3
- 3
lib/overlay/overlay-functions.in

@ -62,11 +62,11 @@ overlay_apply() {
exec|txt) exec|txt)
echo_status "injecting $target ($type)" echo_status "injecting $target ($type)"
mkdir -p "$targetdir" mkdir -p "$targetdir"
[ ! -e "$rootfs/$target" ] || rm -f "$rootfs/$target"
cp -f "$file" "$rootfs/$target"
[ ! -L "$rootfs/$target" ] || rm -f "$rootfs/$target"
cat "$file" | rock_substitute > "$rootfs/$target"
chmod $mode "$rootfs/$target" chmod $mode "$rootfs/$target"
;; ;;
ln) ref=$( cat "$file" )
ln) ref=$( cat "$file" | rock_substitute )
echo_status "injecting $target -> $ref" echo_status "injecting $target -> $ref"
mkdir -p "$targetdir" mkdir -p "$targetdir"
ln -snf "$ref" "$rootfs/$target" ln -snf "$ref" "$rootfs/$target"

Loading…
Cancel
Save