From d2a7f6882ba5e3079c95598d1e0232682165098d Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Mon, 11 Jun 2007 03:24:43 +0000 Subject: [PATCH] * improved initrd output format to support a list of packages to expand by flist which can be modified by the target git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21298 10447126-35f2-4685-b0cf-6dd780d3921f --- target/share/initrd/build.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/target/share/initrd/build.sh b/target/share/initrd/build.sh index 2a36b2d..afe1383 100644 --- a/target/share/initrd/build.sh +++ b/target/share/initrd/build.sh @@ -19,7 +19,9 @@ initrddir="$build_toolchain/initrd" rm -rf "$initrddir" mkdir -p "$initrddir" -INITRD_POSTFLIST_HOOK="" +INITRD_POSTFLIST_HOOK= + +INITRD_FLIST_PACKAGES= INITRD_FLIST_PATTERN="-e '/\.\(h\|o\|a\|la\)$/d;' -e '/ usr\/share\/\(doc\|info\|man\)\//d;'" INITRD_EMPTY_PATTERN="-e '/\.\/lib\/udev\/devices\//d;'" @@ -31,8 +33,12 @@ fi # install what was flisted for stage 1 packages, use $INITRD_FLIST_PATTERN to skip files # +if [ -z "$INITRD_FLIST_PACKAGES" ]; then + INITRD_FLIST_PACKAGES=$( grep '^X .1' $base/config/$config/packages | cut -d' ' -f5 | tr '\n' ' ' ) +fi + echo_status "Populating ${initrddir#$base/} ..." -for pkg_name in $( grep '^X .1' $base/config/$config/packages | cut -d' ' -f5 ); do +for pkg_name in $INITRD_FLIST_PACKAGES; do echo_status "- $pkg_name" flist="build/${SDECFG_ID}/var/adm/flists/$pkg_name"