Commit 6139571a authored by Michael Shigorin's avatar Michael Shigorin

stage2: fix 10-initrd-base for current make-initrd

It was removing autodetection setting completely thus implicitly setting it to the default "all" with make-initrd-0.8.1+; just set it to be empty. Thanks legion@ and boyarsh@; see also #28578.
parent d3a39f21
......@@ -2,5 +2,13 @@
# prepare base make-initrd configuration for stage1
# see also http://www.altlinux.org/Make-initrd-propagator
sed -i 's/AUTODETECT/#&/' /etc/initrd.mk
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
echo 'FEATURES += propagator' >> /etc/initrd.mk
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