diff options
| author | maximilian attems <maks@debian.org> | 2010-04-07 07:24:19 +0200 |
|---|---|---|
| committer | maximilian attems <maks@debian.org> | 2010-04-07 07:25:06 +0200 |
| commit | f9db3f7bcbad79bdb1817aa53eb27a46b5951381 (patch) | |
| tree | bfb5566f427fa5c4e0272fc761c869076d43a335 /mkinitramfs | |
| parent | 17b4d500164f285273c353c55e86850dd8a5998c (diff) | |
| download | initramfs-tools-f9db3f7bcbad79bdb1817aa53eb27a46b5951381.tar.gz initramfs-tools-f9db3f7bcbad79bdb1817aa53eb27a46b5951381.zip | |
mkinitramfs: Fix several unbound variables
might not be all, but a first go in stricter mkinitramfs.
as bonus remove old amusing unused varialbe from day 2..
Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'mkinitramfs')
| -rwxr-xr-x | mkinitramfs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mkinitramfs b/mkinitramfs index be983cf..045e73d 100755 --- a/mkinitramfs +++ b/mkinitramfs @@ -7,7 +7,6 @@ export PATH='/usr/bin:/sbin:/bin' keep="n" CONFDIR="/etc/initramfs-tools" verbose="n" -errors_to="2>/dev/null" # BUSYBOXDIR="/usr/lib/initramfs-tools/bin/" export BUSYBOXDIR="/bin" @@ -86,7 +85,7 @@ for i in /usr/share/initramfs-tools/conf-hooks.d/*; do fi done -if [ -n "${UMASK}" ]; then +if [ -n "${UMASK:-}" ]; then umask "${UMASK}" fi @@ -128,7 +127,7 @@ case "${version}" in esac # Check userspace and kernel support for compressed initramfs images -if [ -z "${compress}" ]; then +if [ -z "${compress:-}" ]; then compress=${COMPRESS} else COMPRESS=${compress} @@ -252,7 +251,7 @@ for i in ${EXTRA_CONF}; do done # ROOT hardcoding -if [ -n "${ROOT}" ]; then +if [ -n "${ROOT:-}" ]; then echo "ROOT=${ROOT}" > ${DESTDIR}/conf/conf.d/root fi |
