| 1234567891011121314151617181920212223242526272829303132333435 |
- name: add nomount
- description: add and configure nomount
- inputs:
- kernel_version:
- description: 'Kernel version (6.1)'
- required: true
- runs:
- using: composite
- steps:
- - name: clone nomount repo
- shell: bash
- run: |
- git clone https://github.com/maxsteeel/nomount.git -b dev
- NOMOUNT="$ROOT/nomount"
- echo "NOMOUNT=$NOMOUNT" >> $GITHUB_ENV
-
- - name: apply nomount patch
- shell: bash
- run: |
- cd "$COMMON"
- #patch -p1 "$NOMOUNT/kernel/patches/nomount_${{ inputs.kernel_version }}_kernel_integration.patch"
- curl -L -s "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/patches/nomount_${{ inputs.kernel_version }}_kernel_integration.patch" | patch -p1
- - name: copy required files
- shell: bash
- run: |
- cd "$COMMON/fs"
- curl -LO "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/src/nomount.c"
- curl -LO "https://raw.githubusercontent.com/maxsteeel/nomount/refs/heads/dev/kernel/src/nomount.h"
- - name: add to defconfig
- shell: bash
- run: |
- "$COMMON/scripts/config" --file "$GKI_DEFCONFIG" --enable CONFIG_NOMOUNT
|