| 123456789101112131415161718192021222324252627282930313233343536373839 |
- name: 'Setup NoMount'
- description: 'Integrate NoMount VFS hooks and enable CONFIG_NOMOUNT'
- inputs:
- kernel_version:
- description: 'Kernel major/minor version (for example, 5.10 or 6.6)'
- required: true
- runs:
- using: composite
- steps:
- - name: Fetch and integrate NoMount (dev method)
- shell: bash
- env:
- KERNEL_VERSION: ${{ inputs.kernel_version }}
- run: |
- set -euo pipefail
- KERNEL_DIR="${{ github.workspace }}/kernel/common"
- test -d "$KERNEL_DIR/fs" || {
- echo "Kernel source directory does not exist: $KERNEL_DIR" >&2
- exit 1
- }
- cd "$KERNEL_DIR"
- curl -fsSL https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/setup.sh | bash -s dev
- test -L "fs/nomount" || {
- echo "NoMount integration failed: fs/nomount symlink missing" >&2
- exit 1
- }
- echo "NoMount integrated (dev method, kernel $KERNEL_VERSION)"
- - name: Enable NoMount in kernel defconfig
- uses: ./.github/actions/set-kernel-config
- with:
- config_list: |
- CONFIG_NOMOUNT=y
|