summaryrefslogtreecommitdiff
path: root/mkinitramfs
diff options
context:
space:
mode:
Diffstat (limited to 'mkinitramfs')
-rwxr-xr-xmkinitramfs11
1 files changed, 8 insertions, 3 deletions
diff --git a/mkinitramfs b/mkinitramfs
index a72865b..b7de71b 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -10,7 +10,7 @@ errors_to="2>/dev/null"
# BUSYBOXDIR="/usr/lib/initramfs-tools/bin/"
BUSYBOXDIR="/bin"
-OPTIONS=`getopt -o d:ko:r: --long supported-host-version:,supported-target-version: -n "$0" -- "$@"`
+OPTIONS=`getopt -o d:ko:r:v --long supported-host-version:,supported-target-version: -n "$0" -- "$@"`
# Check for non-GNU getopt
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
@@ -40,6 +40,10 @@ while true; do
ROOT="$2"
shift 2
;;
+ -v)
+ verbose="y"
+ shift
+ ;;
--supported-host-version)
supported_host_version="$2"
shift 2
@@ -142,6 +146,7 @@ export version
export CONFDIR
export DESTDIR
export DPKG_ARCH
+export verbose
# Private, used by 'catenate_cpiogz'.
export __TMPCPIOGZ
@@ -210,10 +215,10 @@ if [ -e "${CONFDIR}/DSDT.aml" ]; then
copy_exec "${CONFDIR}/DSDT.aml" /
fi
-(cd "${DESTDIR}" && find . | cpio --quiet --dereference -o -H newc | gzip -9 >"${outfile}")
+(cd "${DESTDIR}" && find . | cpio --quiet --dereference -o -H newc | gzip -9 >"${outfile}") || exit 1
if [ -s "${__TMPCPIOGZ}" ]; then
- cat "${__TMPCPIOGZ}" >>"${outfile}"
+ cat "${__TMPCPIOGZ}" >>"${outfile}" || exit 1
fi
if [ "${keep}" = "y" ]; then