summaryrefslogtreecommitdiff
path: root/mkinitramfs
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2007-04-16 20:33:52 +0200
committermaximilian attems <maks@debian.org>2007-04-16 20:33:52 +0200
commit2b382bf18e47765e9f3bb1963008f8ee1a46cf97 (patch)
treeb6c1bbc0f3f02be8e73e0317260377479ae00a51 /mkinitramfs
parentadda784dc1289b3ceb0ce207850ef9a93102febe (diff)
downloadinitramfs-tools-2b382bf18e47765e9f3bb1963008f8ee1a46cf97.tar.gz
initramfs-tools-2b382bf18e47765e9f3bb1963008f8ee1a46cf97.zip
fix regexes to always use posix char classes and release 0.87
needs the -regextype posix-extended switch for find, also it seems 0.86 disgarded uselessly uppercase scripts (they might be distasteful ;)
Diffstat (limited to 'mkinitramfs')
-rwxr-xr-xmkinitramfs8
1 files changed, 5 insertions, 3 deletions
diff --git a/mkinitramfs b/mkinitramfs
index b3514fc..e7b9b13 100755
--- a/mkinitramfs
+++ b/mkinitramfs
@@ -84,7 +84,8 @@ fi
. "${CONFDIR}/initramfs.conf"
EXTRA_CONF=''
for i in /usr/share/initramfs-tools/conf.d/* ${CONFDIR}/conf.d/*; do
- EXTRA_CONF="${EXTRA_CONF} $(basename $i | grep '^[a-z0-9][a-z0-9\._-]*$' | grep -v '\.dpkg-.*$')";
+ EXTRA_CONF="${EXTRA_CONF} $(basename $i \
+ | grep '^[[:alnum:]][[:alnum:]\._-]*$' | grep -v '\.dpkg-.*$')";
done
for i in ${EXTRA_CONF}; do
if [ -e ${CONFDIR}/conf.d/${i} ]; then
@@ -204,13 +205,14 @@ copy_exec /usr/share/initramfs-tools/init /init
# add existant boot scripts
for b in $(cd /usr/share/initramfs-tools/scripts/ && find . \
- -regex '.*/[a-z0-9_]+$' -type f); do
+ -regextype posix-extended -regex '.*/[[:alnum:]_]+$' -type f); do
[ -d "${DESTDIR}/scripts/$(dirname "${b}")" ] \
|| mkdir -p "${DESTDIR}/scripts/$(dirname "${b}")"
cp -p "/usr/share/initramfs-tools/scripts/${b}" \
"${DESTDIR}/scripts/$(dirname "${b}")"
done
-for b in $(cd "${CONFDIR}/scripts" && find . -regex '.*/[a-z0-9_]+$' -type f); do
+for b in $(cd "${CONFDIR}/scripts" && find . \
+ -regextype posix-extended -regex '.*/[[:alnum:]_]+$' -type f); do
[ -d "${DESTDIR}/scripts/$(dirname "${b}")" ] \
|| mkdir -p "${DESTDIR}/scripts/$(dirname "${b}")"
cp -p "${CONFDIR}/scripts/${b}" "${DESTDIR}/scripts/$(dirname "${b}")"