Browse Source

initramfs: Added code to filter what is installed from linux26, gcc and fhs

0.2-maint
Alejandro Mery 16 years ago
parent
commit
9811fc8be7
1 changed files with 20 additions and 1 deletions
  1. +20
    -1
      build-initramfs.in

+ 20
- 1
build-initramfs.in

@ -1,7 +1,7 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: target/Idunn/build-initramfs.in
# Filename: target/idunn/build-initramfs.in
# Copyright (C) 2008 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
@ -30,3 +30,22 @@ initramfs_install()
return 1
}
initramfs_install_pattern() {
local pkg="$1"; shift
case "$pkg" in
linux26)
echo "-e '/\/\(source\|build\)$/d;' -e '/ boot\//d;' $@"
;;
fhs)
# no local level
echo "-e '/\/local\(\|\/.*\)$/d;' $@"
;;
gcc)
echo "-n -e '/\.so/p'" # only the libraries
;;
*)
echo "$@"
;;
esac
}

Loading…
Cancel
Save