action.yml 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. name: add nomount
  2. description: add and configure nomount
  3. runs:
  4. using: composite
  5. steps:
  6. - name: clone nomount repo
  7. shell: bash
  8. run: |
  9. git clone https://github.com/maxsteeel/nomount.git -b dev
  10. NOMOUNT="$ROOT/nomount"
  11. echo "NOMOUNT=$NOMOUNT" >> $GITHUB_ENV
  12. - name: apply nomount patch
  13. shell: bash
  14. run: |
  15. cd "$COMMON"
  16. #patch -p1 "$NOMOUNT/kernel/patches/nomount_$KERNEL_VERSION_kernel_integration.patch"
  17. curl -L -s "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/patches/nomount_$KERNEL_VER_kernel_integration.patch" | patch -p1
  18. - name: copy required files
  19. shell: bash
  20. run: |
  21. cd "$COMMON/fs"
  22. curl -LO "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/src/nomount.c"
  23. curl -LO "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/src/nomount.h"
  24. - name: add to defconfig
  25. shell: bash
  26. run: |
  27. "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_NOMOUNT