0001-Adapted-to-Pisi-Linux.patch 1.3 KB

12345678910111213141516171819202122232425
  1. diff --git a/src/addons/00-modules.sh b/src/addons/00-modules.sh
  2. index fbcf157..45df127 100644
  3. --- a/src/addons/00-modules.sh
  4. +++ b/src/addons/00-modules.sh
  5. @@ -9,14 +9,15 @@ mkdir -p ${WORKDIR}/${MODDIR}
  6. if [ "$allmodule" == true ] && [ "$skipglibc" != "true" ] && [ "$skipudev" != "true" ]; then
  7. cp -prf ${MODDIR}/* ${WORKDIR}/${MODDIR}
  8. elif [ "$minimal" == true ]; then
  9. - cp -prf ${MODDIR}/kernel/{crypto,fs,lib,block} ${WORKDIR}/${MODDIR}
  10. + # In Pisi GNU/Linux, we do not have "block" at the kernel modules directory (located in drivers/block instead).
  11. + cp -prf ${MODDIR}/kernel/{crypto,fs,lib} ${WORKDIR}/${MODDIR}
  12. cp -prf ${MODDIR}/kernel/drivers/input/{keyboard,serio} ${WORKDIR}/${MODDIR}
  13. cp -prf ${MODDIR}/kernel/drivers/{ata,md,mmc,firewire} ${WORKDIR}/${MODDIR}
  14. cp -prf ${MODDIR}/kernel/drivers/{scsi,pcmcia,virtio} ${WORKDIR}/${MODDIR}
  15. cp -prf ${MODDIR}/kernel/drivers/usb/ ${WORKDIR}/${MODDIR}
  16. cp -prf ${MODDIR}/kernel/drivers/acpi/ ${WORKDIR}/${MODDIR}
  17. - # Some kernels not have this directories.
  18. - cp -prf ${MODDIR}/kernel/drivers/{block,cdrom}/ ${WORKDIR}/${MODDIR} || true
  19. + # "cdrom" is not available at the kernel modules directory either.
  20. + cp -prf ${MODDIR}/kernel/drivers/block/ ${WORKDIR}/${MODDIR} || true
  21. else
  22. debug "Install main modules"
  23. cp -prf ${MODDIR}/kernel/{crypto,fs,lib} ${WORKDIR}/${MODDIR}
  24. --