action.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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: clone nomount repo
  11. shell: bash
  12. run: |
  13. git clone https://github.com/maxsteeel/nomount.git -b dev
  14. NOMOUNT="$ROOT/nomount"
  15. echo "NOMOUNT=$NOMOUNT" >> $GITHUB_ENV
  16. - name: apply nomount patch
  17. shell: bash
  18. run: |
  19. cd "$COMMON"
  20. #patch -p1 "$NOMOUNT/kernel/patches/nomount_${{ inputs.kernel_version }}_kernel_integration.patch"
  21. curl -L -s "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/patches/nomount_${{ inputs.kernel_version }}_kernel_integration.patch" | patch -p1
  22. - name: copy required files
  23. shell: bash
  24. run: |
  25. cd "$COMMON/fs"
  26. curl -LO "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/src/nomount.c"
  27. curl -LO "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/src/nomount.h"
  28. - name: add to defconfig
  29. shell: bash
  30. run: |
  31. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_NOMOUNT