action.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: 'Setup NoMount'
  2. description: 'Integrate NoMount VFS hooks and enable CONFIG_NOMOUNT'
  3. inputs:
  4. kernel_version:
  5. description: 'Kernel major/minor version (for example, 5.10 or 6.6)'
  6. required: true
  7. runs:
  8. using: composite
  9. steps:
  10. - name: Fetch and integrate NoMount (dev method)
  11. shell: bash
  12. env:
  13. KERNEL_VERSION: ${{ inputs.kernel_version }}
  14. run: |
  15. set -euo pipefail
  16. KERNEL_DIR="${{ github.workspace }}/kernel/common"
  17. test -d "$KERNEL_DIR/fs" || {
  18. echo "Kernel source directory does not exist: $KERNEL_DIR" >&2
  19. exit 1
  20. }
  21. cd "$KERNEL_DIR"
  22. curl -fsSL https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/setup.sh | bash -s dev
  23. test -L "fs/nomount" || {
  24. echo "NoMount integration failed: fs/nomount symlink missing" >&2
  25. exit 1
  26. }
  27. echo "NoMount integrated (dev method, kernel $KERNEL_VERSION)"
  28. - name: Enable NoMount in kernel defconfig
  29. uses: ./.github/actions/set-kernel-config
  30. with:
  31. config_list: |
  32. CONFIG_NOMOUNT=y