summaryrefslogtreecommitdiff
path: root/mkinitramfs
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2010-04-07 03:27:25 +0200
committermaximilian attems <maks@debian.org>2010-04-07 03:27:52 +0200
commit45bcb8eb48e15dd75faa3eccd8c1cfacc14f8206 (patch)
treec17ee9ded6cbd1ffa78e4d302b072c042546a5b0 /mkinitramfs
parentea5eae180603a4dcf32215a3d66709cb565987e7 (diff)
downloadinitramfs-tools-45bcb8eb48e15dd75faa3eccd8c1cfacc14f8206.tar.gz
initramfs-tools-45bcb8eb48e15dd75faa3eccd8c1cfacc14f8206.zip
mkinitramfs: guard against empty EXTRA_CONF
nothing there to see allmost.. Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'mkinitramfs')
-rwxr-xr-xmkinitramfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitramfs b/mkinitramfs
index c8079ab..be983cf 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -66,7 +66,7 @@ done
. "${CONFDIR}/initramfs.conf"
EXTRA_CONF=''
for i in /usr/share/initramfs-tools/conf.d/* ${CONFDIR}/conf.d/*; do
- EXTRA_CONF="${EXTRA_CONF} $(basename $i \
+ [ -e $i ] && EXTRA_CONF="${EXTRA_CONF} $(basename $i \
| grep '^[[:alnum:]][[:alnum:]\._-]*$' | grep -v '\.dpkg-.*$')";
done
# FIXME: deprecated those settings on mkinitramfs run