Commit fe2b7125 authored by Anton Midyukov's avatar Anton Midyukov

build-vm: Added INITRDFEATURES to /etc/initrd.mk

parent 3154b04b
...@@ -19,9 +19,14 @@ done ...@@ -19,9 +19,14 @@ done
cd /boot cd /boot
if [ -n "$GLOBAL_VM_INITRDFEATURES" ]; then
for INITRDFEATURE in $GLOBAL_VM_INITRDFEATURES; do
echo "FEATURES += $INITRDFEATURE" >> /etc/initrd.mk
done
fi
for KVER in $kver; do for KVER in $kver; do
make-initrd -N -k "$KVER" AUTODETECT= \ make-initrd -N -k "$KVER" AUTODETECT= \
FEATURES+="$GLOBAL_VM_INITRDFEATURES" \
MODULES_TRY_ADD+="$GLOBAL_VM_INITRDMODULES" \ MODULES_TRY_ADD+="$GLOBAL_VM_INITRDMODULES" \
|| { echo "** Error: make-initrd failed" >&2; exit 1; } || { echo "** Error: make-initrd failed" >&2; exit 1; }
done done
......
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