This action applies a nomount patch, copies required files, and updates the defconfig.
@@ -0,0 +1,28 @@
+name: add nomount
+description: add and configure nomount
+inputs:
+ kernel_version:
+ description: 'Kernel version (6.1)'
+ required: true
+
+runs:
+ using: composite
+ steps:
+ - name: apply nomount patch
+ shell: bash
+ run: |
+ cd "$COMMON"
+ patch -p1 "$NOMOUNT/kernel/patches/nomount_${{ inputs.kernel_version }}_kernel_integration.patch"
+ - name: copy required files
+ cd "$COMMON/fs"
+ cp "$NOMOUNT/kernel/src/*" ./
+ - name: add to defconfig
+ cat >> "$GKI_DEFCONFIG" << 'EOF'
+ CONFIG_NOMOUNT=y
+ EOF