diff options
| author | maximilian attems <maks@debian.org> | 2006-03-21 12:25:50 +0100 |
|---|---|---|
| committer | maximilian attems <maks@debian.org> | 2006-03-21 12:25:50 +0100 |
| commit | 0318bb9b8e61f0a4c9d89ec678a75f6f7ea8c5d5 (patch) | |
| tree | 0a8fcc1dbc422602295fc3bba754bba4bf307d86 /mkinitramfs | |
| parent | 41f695c8066c3d4955049d547b16aaf06273c20f (diff) | |
| download | initramfs-tools-0318bb9b8e61f0a4c9d89ec678a75f6f7ea8c5d5.tar.gz initramfs-tools-0318bb9b8e61f0a4c9d89ec678a75f6f7ea8c5d5.zip | |
add verbose mode for mkinitramfs, use it when calling it
display which modules gets added,
we might want to have even more verbose info,
but that is a nice start.
add cpqarray module
document `-' filename restriction
don't exit succesfully if root fs full
Diffstat (limited to 'mkinitramfs')
| -rwxr-xr-x | mkinitramfs | 11 |
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 |
