#!/bin/sh
##########################################################################
##                                                                      ##
## assembles the gzipped initrd image                                   ##
##                                                                      ##
## This program is free software; you can redistribute it and/or modify ##
## it under the terms of the GNU General Public License as published by ##
## the Free Software Foundation; either version 2 of the License, or    ##
## (at your option) any later version.                                  ##
##                                                                      ##
##########################################################################

. config_build
. "$SCRIPTS"/misc/lib/lib_fail

echo "----------------------------------"
echo "        assembling initrd         "
echo "----------------------------------"
echo 
echo

mkcramfs "$INITRDFS" "$TMPDIR"/initrdfs || fail
gzip -9 "$TMPDIR"/initrdfs              || fail

echo
