Skip to content

Commit 870dffd

Browse files
stu-spptdewey-rpi
authored andcommitted
Do metadata_gather before post-flash.
1 parent da263e2 commit 870dffd

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

service/rpi-fde-provisioner.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,15 +713,15 @@ fastboot -s "${FASTBOOT_DEVICE_SPECIFIER}" flash "${RPI_DEVICE_STORAGE_TYPE}"p1
713713
fastboot -s "${FASTBOOT_DEVICE_SPECIFIER}" flash mapper/cryptroot "${RPI_SB_WORKDIR}"/rootfs-temporary.simg
714714
announce_stop "Writing OS images"
715715

716+
metadata_gather
717+
716718
# Run customisation script for post-flash stage
717719
run_customisation_script "fde-provisioner" "post-flash" "${FASTBOOT_DEVICE_SPECIFIER}" "${TARGET_DEVICE_SERIAL}" "${RPI_DEVICE_STORAGE_TYPE}"
718720

719721
announce_start "Set LED status"
720722
fastboot -s "${FASTBOOT_DEVICE_SPECIFIER}" oem led PWR 0
721723
announce_stop "Set LED status"
722724

723-
metadata_gather
724-
725725
record_state "${TARGET_DEVICE_SERIAL}" "${PROVISIONER_FINISHED}" "${TARGET_USB_PATH}"
726726
log "Provisioning completed. Remove the device from this machine."
727727

service/rpi-naked-provisioner.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,11 +205,12 @@ announce_start "Set LED status"
205205
fastboot -s "${FASTBOOT_DEVICE_SPECIFIER}" oem led PWR 0
206206
announce_stop "Set LED status"
207207

208+
metadata_gather
209+
208210
# Run post-flash customisation script
209211
run_customisation_script "naked-provisioner" "post-flash" "${FASTBOOT_DEVICE_SPECIFIER}" "${TARGET_DEVICE_SERIAL}" "${RPI_DEVICE_STORAGE_TYPE}"
210212
log "Post-flash customization script completed"
211213

212-
metadata_gather
213214
record_state "${TARGET_DEVICE_SERIAL}" "${PROVISIONER_FINISHED}" "${TARGET_USB_PATH}"
214215

215216
log "Provisioning completed. Remove the device from this machine."

service/rpi-sb-provisioner.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -626,15 +626,15 @@ fastboot -s "${FASTBOOT_DEVICE_SPECIFIER}" flash "${RPI_DEVICE_STORAGE_TYPE}"p1
626626
fastboot -s "${FASTBOOT_DEVICE_SPECIFIER}" flash mapper/cryptroot "${RPI_SB_WORKDIR}"/rootfs-temporary.simg
627627
announce_stop "Writing OS images"
628628

629+
metadata_gather
630+
629631
# Run customisation script for post-flash stage
630632
run_customisation_script "sb-provisioner" "post-flash" "${FASTBOOT_DEVICE_SPECIFIER}" "${TARGET_DEVICE_SERIAL}" "${RPI_DEVICE_STORAGE_TYPE}"
631633

632634
announce_start "Set LED status"
633635
fastboot -s "${FASTBOOT_DEVICE_SPECIFIER}" oem led PWR 0
634636
announce_stop "Set LED status"
635637

636-
metadata_gather
637-
638638
record_state "${TARGET_DEVICE_SERIAL}" "${PROVISIONER_FINISHED}" "${TARGET_USB_PATH}"
639639
log "Provisioning completed. Remove the device from this machine."
640640

0 commit comments

Comments
 (0)