Skip to content

Commit

Permalink
Support environment variable $NO_ADDONS
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Prokop committed Sep 29, 2008
1 parent c745e74 commit 7510fe9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
4 changes: 3 additions & 1 deletion debian/changelog
Expand Up @@ -20,8 +20,10 @@ grml-live (0.9.4) unstable; urgency=low
- remove nvi (see #490361)
- remove ppoeconf (just too big with its dependencies)
- remove prism54-firmware (for saving disk space)
* Support environment variable $NO_ADDONS to avoid usage of
addons directory.

-- Michael Prokop <mika@grml.org> Mon, 29 Sep 2008 13:23:44 +0200
-- Michael Prokop <mika@grml.org> Mon, 29 Sep 2008 13:29:18 +0200

grml-live (0.9.3) unstable; urgency=low

Expand Down
13 changes: 9 additions & 4 deletions grml-live
Expand Up @@ -49,7 +49,7 @@ Usage examples:
$PN
$PN -c GRMLBASE,GRML_MEDIUM,I386 -o /dev/shm/grml
$PN -c GRMLBASE,GRML_SMALL,I386 -g grml-small -v 1.0
$PN -c GRMLBASE,GRML_SMALL,REMOVE_DOCS,I386 -g grml-small -v 1.0
$PN -c GRMLBASE,GRML_FULL,I386 -i grml_0.0-1.iso -v 0.0-1
$PN -c GRMLBASE,GRML_FULL,I386 -s sid -V -r 'grml-live rocks'
Expand Down Expand Up @@ -481,11 +481,13 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then
ewarn "$BUILD_OUTPUT/boot exists already, skipping stage 'boot'" ; eend 0
else
# booting stuff:
[ -d "$BUILD_OUTPUT"/boot/addons ] || mkdir -p "$BUILD_OUTPUT"/boot/addons
[ -d "$BUILD_OUTPUT"/boot/isolinux ] || mkdir -p "$BUILD_OUTPUT"/boot/isolinux
[ -d "$BUILD_OUTPUT"/boot/"${SHORT_GRML_NAME}" ] || mkdir -p "$BUILD_OUTPUT"/boot/"${SHORT_GRML_NAME}"

cp /boot/memtest86+.bin "$BUILD_OUTPUT"/boot/addons/memtest
if [ -z "$NO_ADDONS" ] ; then
[ -d "$BUILD_OUTPUT"/boot/addons ] || mkdir -p "$BUILD_OUTPUT"/boot/addons
cp /boot/memtest86+.bin "$BUILD_OUTPUT"/boot/addons/memtest
fi

# if we don't have an initrd we a) can't boot and b) there was an error
# during build, so check for the file:
Expand Down Expand Up @@ -516,7 +518,10 @@ if [ "$ARCH" = i386 ] || [ "$ARCH" = amd64 ] ; then
fi

cp ${TEMPLATE_DIRECTORY}/boot/isolinux/* "$BUILD_OUTPUT"/boot/isolinux/
cp ${TEMPLATE_DIRECTORY}/boot/addons/* "$BUILD_OUTPUT"/boot/addons/

if [ -z "$NO_ADDONS" ] ; then
cp ${TEMPLATE_DIRECTORY}/boot/addons/* "$BUILD_OUTPUT"/boot/addons/
fi

if ! [ -d "${BUILD_OUTPUT}/boot/grub" ] ; then
cp -a ${TEMPLATE_DIRECTORY}/boot/grub "$BUILD_OUTPUT"/boot/
Expand Down

0 comments on commit 7510fe9

Please sign in to comment.