Commit 27e167b2 authored by Anton Midyukov's avatar Anton Midyukov

initrd-propagator, stage1: Replace 80-make-initrd to initrd-propagator

This will allow in the future to use a different initrd option when building images, for example dracut. Also drop old make-inird support.
parent a61162c4
......@@ -19,15 +19,10 @@ done
rm -vf /usr/share/make-initrd/data/etc/udev/rules.d/00-debug.rules \
/usr/share/make-initrd/data/lib/uevent/filters/debug
MAKE_INITRD_OPTS="--no-checks"
MAKE_INITRD_OPTS="--no-checks --no-depmod AUTODETECT= "
MAKE_INITRD_VER="`make-initrd -V \
| sed -rn 's/^make-initrd version ([0-9.]+)/\1/p'`"
# make-initrd >= 0.7.8
if [ "`rpmvercmp "$MAKE_INITRD_VER" "0.7.8"`" != "-1" ]; then
MAKE_INITRD_OPTS="$MAKE_INITRD_OPTS --no-depmod"
fi
[ -z "$GLOBAL_VERBOSE" ] ||
MAKE_INITRD_OPTS="$MAKE_INITRD_OPTS -v"
......
#!/bin/sh
# prepare base make-initrd configuration for stage1
MAKE_INITRD_VER="`make-initrd -V \
| sed -rn 's/^make-initrd version ([0-9.]+)/\1/p'`"
if [ "`rpmvercmp "$MAKE_INITRD_VER" "0.8.1"`" != "-1" ]; then
echo 'AUTODETECT =' >> /etc/initrd.mk # make-initrd >= 0.8.1
else
sed -i 's/AUTODETECT/#&/' /etc/initrd.mk # see also #28578
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment