Browse Source

overlay: enhanced to support boot-$BOOT/$pkg and boot-no$BOOT/$pkg

legacy/next/gcc
Alejandro Mery 16 years ago
parent
commit
74a4bdfa7e
1 changed files with 15 additions and 3 deletions
  1. +15
    -3
      overlay.in

+ 15
- 3
overlay.in

@ -25,9 +25,21 @@ mnemosyne_overlay_apply() {
hook_add postdoc 5 'eval mnemosyne_overlay_apply $mnemosyne_overlay'
# $pkg specific overlays
if [ -d "$mnemosyne_overlay_dir/pkgs/$pkg/" ]; then
var_append mnemosyne_overlay ' ' "$mnemosyne_overlay_dir/pkgs/$pkg/"
fi
y="pkgs"
for x in vserver HD initrd; do
if [ "$SDECFG_TRG_MNEMOSYNE_BOOT" = "$x" ]; then
y="$y boot-$x"
else
y="$y boot-no$x"
fi
done
for x in $y; do
z="$mnemosyne_overlay_dir/$x/$pkg/"
if [ -d "$z" ]; then
var_append mnemosyne_overlay ' ' "$z"
fi
done
# conditional $pkg specific overlays
case "$pkg" in

Loading…
Cancel
Save