action.yml 966 B

123456789101112131415161718192021222324252627282930
  1. name: add nomount
  2. description: add and configure nomount
  3. inputs:
  4. kernel_version:
  5. description: 'Kernel version (6.1)'
  6. required: true
  7. runs:
  8. using: composite
  9. steps:
  10. - name: apply nomount patch
  11. shell: bash
  12. run: |
  13. cd "$COMMON"
  14. #patch -p1 "$NOMOUNT/kernel/patches/nomount_${{ inputs.kernel_version }}_kernel_integration.patch"
  15. curl -L -s "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/master/kernel/patches/nomount_${{ inputs.kernel_version }}_kernel_integration.patch" | patch -p1
  16. - name: copy required files
  17. shell: bash
  18. run: |
  19. cd "$COMMON/fs"
  20. curl -LO "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/master/kernel/src/nomount.c"
  21. curl -LO "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/master/kernel/src/nomount.c"
  22. - name: add to defconfig
  23. shell: bash
  24. run: |
  25. cat >> "$GKI_DEFCONFIG" << 'EOF'
  26. CONFIG_NOMOUNT=y
  27. EOF