From 9811fc8be75a55dd693d50b886418d36aabac073 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sun, 21 Sep 2008 20:44:41 +0000 Subject: [PATCH] initramfs: Added code to filter what is installed from linux26, gcc and fhs --- build-initramfs.in | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/build-initramfs.in b/build-initramfs.in index 00b7c91..a84cc9a 100644 --- a/build-initramfs.in +++ b/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 +}