Commit 98877bf7 authored by Natanael Copa's avatar Natanael Copa
Browse files

alpine.mk: include raid drivers in initramfs

I think we only need raid1 and maybe raid5 but now we copy the entire md
subdir. so there are room for size optimization here.
parent 9154b0d9
...@@ -184,13 +184,13 @@ $(INITFS_MODDIRSTAMP): $(INITFS_DIRSTAMP) $(INITFS_MODFILES) $(MODLOOP_DIRSTAMP) ...@@ -184,13 +184,13 @@ $(INITFS_MODDIRSTAMP): $(INITFS_DIRSTAMP) $(INITFS_MODFILES) $(MODLOOP_DIRSTAMP)
@echo "==> initramfs: $(notdir $(MODULE_APK))" @echo "==> initramfs: $(notdir $(MODULE_APK))"
@rm -rf $(INITFS_DIR)/lib/modules @rm -rf $(INITFS_DIR)/lib/modules
@mkdir -p $(addprefix $(INITFS_MODDIR)/kernel/,drivers fs) @mkdir -p $(addprefix $(INITFS_MODDIR)/kernel/,drivers fs)
@for i in acpi ata block ide scsi cdrom usb message hid; do \ @for i in acpi ata block ide scsi cdrom usb message hid md; do \
cp -flLpR $(MODLOOP_DIR)/lib/modules/*/kernel/drivers/$$i \ cp -flLpR $(MODLOOP_DIR)/lib/modules/*/kernel/drivers/$$i \
$(INITFS_MODDIR)/kernel/drivers/ ; \ $(INITFS_MODDIR)/kernel/drivers/ ; \
done done
@for i in isofs vfat fat nls jbd 'ext*' cramfs '*.ko'; do \ @for i in isofs vfat fat nls jbd 'ext*' cramfs '*.ko'; do \
cp -flLpR $(MODLOOP_DIR)/lib/modules/*/kernel/fs/$$i \ cp -flLpR $(MODLOOP_DIR)/lib/modules/*/kernel/fs/$$i \
$(INITFS_MODDIR)/kernel/fs/ ; \ $(INITFS_MODDIR)/kernel/fs/ 2>/dev/null; \
done done
@cp -flLpR $(MODLOOP_DIR)/lib/modules/*/kernel/lib \ @cp -flLpR $(MODLOOP_DIR)/lib/modules/*/kernel/lib \
$(INITFS_MODDIR)/kernel/ $(INITFS_MODDIR)/kernel/
......
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