@@ -86,56 +86,76 @@ jobs:
8686 pi-gen-version : arm64
8787 verbose-output : true
8888
89- - name : Build RPi AryaOS image
90- uses : usimd/pi-gen-action@v1
91- id : build_aryaos
92- # This is the second build step, it will create the AryaOS image.
93- # The AryaOS image is the second stage of the pi-gen build process.
94- # It will create an image with the necessary files and directories for AryaOS.
95- # The AryaOS image will be used as the final image for the Pi.
96- # It will use the base image created in the previous step.
97- # The base image will be used as the starting point for the next stages.
98- # This step will also copy the shared_files directory to the pi-gen directory.
89+
90+ - name : list dir
91+ run : |
92+ ls -al
93+ ls -al pi-gen-src/work/aryaos
94+
95+ - name : Archive stage2 directory
96+ run : |
97+ tar --create \
98+ --file=stage2.tar.gz \
99+ --gzip \
100+ --preserve-permissions \
101+ --preserve-order \
102+ --same-owner \
103+ --acls \
104+ --xattrs \
105+ --hard-dereference \
106+ --exclude='var/cache/apt/archives' \
107+ -C pi-gen-src/work/aryaos stage2
108+
109+ # - name: Build RPi AryaOS image
110+ # uses: usimd/pi-gen-action@v1
111+ # id: build_aryaos
112+ # # This is the second build step, it will create the AryaOS image.
113+ # # The AryaOS image is the second stage of the pi-gen build process.
114+ # # It will create an image with the necessary files and directories for AryaOS.
115+ # # The AryaOS image will be used as the final image for the Pi.
116+ # # It will use the base image created in the previous step.
117+ # # The base image will be used as the starting point for the next stages.
118+ # # This step will also copy the shared_files directory to the pi-gen directory.
99119
100- env :
101- SHARED_FILES : ${{ env.SHARED_FILES }}
102- GITHUB_CWD : ${{ env.GITHUB_CWD }}
103- with :
104- increase-runner-disk-size : true
105-
106- pi-gen-dir : pi-gen-src
107- # Disable the renaming of the first user during the first boot. This make it so
108- # 'username' stays activated. 'username' must be set for this to work. Please be
109- # aware of the implied security risk of defining a default username and password
110- # for your devices.
111- disable-first-boot-user-rename : ${{ env.DISABLE_FIRST_BOOT_USER_RENAME || 1 }}
112-
113- # Enable SSH access to Pi.
114- enable-ssh : ${{ env.ENABLE_SSH || 1 }}
115-
116- image-name : ${{ env.IMG_NAME || 'aryaos' }}-${{ github.GITHUB_REF_NAME || 'undef' }}
117-
118- hostname : ${{ env.TARGET_HOSTNAME || 'aryaos' }}
119- locale : ${{ env.LOCALE_DEFAULT || 'en_US.UTF-8' }}
120- password : ${{ env.FIRST_USER_PASS || 'aryaos415' }}
121- pi-gen-release : ${{ env.PI_GEN_RELEASE || 'AryaOS' }}
122- release : ${{ env.RELEASE || 'bookworm' }}
123- stage-list : " ${{ env.GITHUB_CWD }}/stages/stage-patch stage0 stage1 stage2 ${{ env.GITHUB_CWD }}/stages/stage-base"
124- wpa-country : ${{ env.WPA_COUNTRY || 'US' }}
125- wpa-essid : ${{ env.WPA_ESSID || 'AryaOS-WiFi' }}
126- wpa-password : ${{ env.WPA_PASSWORD || 'aryaos415' }}
127- keyboard-layout : ${{ env.KEYBOARD_LAYOUT || 'English (US)' }}
128- keyboard-keymap : ${{ env.KEYBOARD_KEYMAP || 'us' }}
129- pi-gen-version : arm64
130- verbose-output : true
120+ # env:
121+ # SHARED_FILES: ${{ env.SHARED_FILES }}
122+ # GITHUB_CWD: ${{ env.GITHUB_CWD }}
123+ # with:
124+ # increase-runner-disk-size: true
125+
126+ # pi-gen-dir: pi-gen-src
127+ # # Disable the renaming of the first user during the first boot. This make it so
128+ # # 'username' stays activated. 'username' must be set for this to work. Please be
129+ # # aware of the implied security risk of defining a default username and password
130+ # # for your devices.
131+ # disable-first-boot-user-rename: ${{ env.DISABLE_FIRST_BOOT_USER_RENAME || 1 }}
132+
133+ # # Enable SSH access to Pi.
134+ # enable-ssh: ${{ env.ENABLE_SSH || 1 }}
135+
136+ # image-name: ${{ env.IMG_NAME || 'aryaos' }}-${{ github.GITHUB_REF_NAME || 'undef' }}
137+
138+ # hostname: ${{ env.TARGET_HOSTNAME || 'aryaos' }}
139+ # locale: ${{ env.LOCALE_DEFAULT || 'en_US.UTF-8' }}
140+ # password: ${{ env.FIRST_USER_PASS || 'aryaos415' }}
141+ # pi-gen-release: ${{ env.PI_GEN_RELEASE || 'AryaOS' }}
142+ # release: ${{ env.RELEASE || 'bookworm' }}
143+ # stage-list: "${{ env.GITHUB_CWD }}/stages/stage-patch stage0 stage1 stage2 ${{ env.GITHUB_CWD }}/stages/stage-base"
144+ # wpa-country: ${{ env.WPA_COUNTRY || 'US' }}
145+ # wpa-essid: ${{ env.WPA_ESSID || 'AryaOS-WiFi' }}
146+ # wpa-password: ${{ env.WPA_PASSWORD || 'aryaos415' }}
147+ # keyboard-layout: ${{ env.KEYBOARD_LAYOUT || 'English (US)' }}
148+ # keyboard-keymap: ${{ env.KEYBOARD_KEYMAP || 'us' }}
149+ # pi-gen-version: arm64
150+ # verbose-output: true
131151
132152 - name : list dir
133153 run : |
134154 ls -alR
135-
136155
137156 - name : Upload Pi-Gen artifact.
138157 uses : actions/upload-artifact@v4
139158 with :
140- name : pi-gen-image
141- path : ${{ steps.build_aryaos.outputs.image-path }}
159+ name : pi-gen-stage2
160+ path : stage2.tar.gz
161+ # ${{ steps.build_aryaos.outputs.image-path }}
0 commit comments