Commit 58e83cea authored by Anton Midyukov's avatar Anton Midyukov

build-vm, kernel: Not add specified initrd features into initrd.mk

This features not needed for auto-detect. We also add features not only to initrd.mk, but also specify them explicitly in the command.
parent 5c1239c9
...@@ -27,6 +27,7 @@ fi ...@@ -27,6 +27,7 @@ fi
for KVER in $kver; do for KVER in $kver; do
make-initrd -N -k "$KVER" AUTODETECT= \ make-initrd -N -k "$KVER" AUTODETECT= \
FEATURES+="add-modules compress cleanup $INITRDFEATURE" \
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
......
...@@ -46,7 +46,6 @@ use/kernel/server: ...@@ -46,7 +46,6 @@ use/kernel/server:
# for vm targets # for vm targets
use/kernel/initrd-setup: use/kernel use/kernel/initrd-setup: use/kernel
@$(call add,VM_INITRDFEATURES,add-modules compress cleanup)
@$(call try,VM_FSTYPE,ext4) @$(call try,VM_FSTYPE,ext4)
@$(call add,VM_INITRDMODULES,$$(VM_FSTYPE)) @$(call add,VM_INITRDMODULES,$$(VM_FSTYPE))
@$(call add,VM_INITRDMODULES,ahci sd_mod) @$(call add,VM_INITRDMODULES,ahci sd_mod)
......
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