proxy CLEANUP_PACKAGES down

mkimage implementation requires that the variables
to be passed to the scripts are to be prefixed with
GLOBAL_ or INFO_ tags as appropriate; in this case
the upstream makefile didn't care to.
This commit is contained in:
Michael Shigorin 2012-06-25 23:22:35 +03:00
parent 0e9a873608
commit fcf41f2201
2 changed files with 3 additions and 1 deletions

View File

@ -42,6 +42,7 @@ convert-image: prepare-image
rm "$(VM_RAWDISK)"; \
fi
run-image-scripts: GLOBAL_CLEANUP_PACKAGES := $(CLEANUP_PACKAGES)
run-image-scripts: GLOBAL_ROOTPW := $(ROOTPW)
# override

View File

@ -1,6 +1,7 @@
#!/bin/sh -efu
# remove temporary packages from the installed system
### FIXME: need to proxy CLEANUP_PACKAGES -> GLOBAL_CLEANUP_PACKAGES somewhere
[ -n "$GLOBAL_CLEANUP_PACKAGES" ] || exit 0
list="$(rpmquery -a --qf='%{NAME}\n' $GLOBAL_CLEANUP_PACKAGES)"
[ -z "$list" ] || apt-get remove -f -y -- $list