[Google Pixel 2 Questions & Answers] Mobb_Deep73:
Hi thanks for your reply.

Yes the bootloader is unlocked (Device State: unlocked).

When I try to flash the stock image (without removing the -w switch), I get (just tried again, but see my initial post):

❯ ./flash-all.sh
Warning: skip copying bootloader_a image avb footer (bootloader_a partition size: 0, bootloader_a image size: 39628800).
Sending 'bootloader_a' (38700 KB) OKAY [ 1.424s]
Writing 'bootloader_a' (bootloader) Updating: partition:0 @00002000 sz=0000B000
(bootloader) Updating: partition:1 @0000D000 sz=0000B000
(bootloader) Updating: partition:2 @00018000 sz=0000B000
(bootloader) Updating: partition:3 @00023000 sz=0000B000
(bootloader) Updating: partition:4 @0002E000 sz=0000B000
(bootloader) Updating: partition:5 @00039000 sz=0000B000
(bootloader) Updating: pmic @00044000 sz=0000D000
(bootloader) Updating: xbl @00051000 sz=003A6000
(bootloader) Updating: abl @003F7000 sz=00065000
(bootloader) Updating: cmnlib64 @0045C000 sz=0004A000
(bootloader) Updating: cmnlib @004A6000 sz=00038000
(bootloader) Updating: devcfg @004DE000 sz=0000F000
(bootloader) Updating: hyp @004ED000 sz=00043000
(bootloader) Updating: keymaster @00530000 sz=0004E000
(bootloader) Updating: tz @0057E000 sz=001D5000
(bootloader) Updating: rpm @00753000 sz=0003A000
(bootloader) Updating: hosd @0078D000 sz=01E20000
(bootloader) Updating: lockbooter @025AD000 sz=00016000
(bootloader) Updating: apdp @025C3000 sz=00004000
(bootloader) Updating: msadp @025C7000 sz=00004000
OKAY [ 0.744s]
Finished. Total time: 2.173s
Rebooting into bootloader OKAY [ 0.000s]
Finished. Total time: 0.051s
Warning: skip copying radio_a image avb footer (radio_a partition size: 0, radio_a image size: 61837312).
Sending 'radio_a' (60388 KB) OKAY [ 2.206s]
Writing 'radio_a' (bootloader) Updating: modem @00001000 sz=03AF7000
OKAY [ 0.292s]
Finished. Total time: 2.503s
Rebooting into bootloader OKAY [ 0.000s]
Finished. Total time: 0.051s
--------------------------------------------
Bootloader Version...: mw8998-003.0085.00
Baseband Version.....: g8998-00034-2006052136
Serial Number........: xxxxxxx
--------------------------------------------
extracting android-info.txt (0 MB) to RAM...
Checking 'product' OKAY [ 0.001s]
Checking 'version-bootloader' OKAY [ 0.001s]
Checking 'version-baseband' OKAY [ 0.000s]
Setting current slot to 'a' OKAY [ 0.010s]
extracting boot.img (32 MB) to disk... took 0.136s
archive does not contain 'init_boot.img'
extracting dtbo.img (8 MB) to disk... took 0.012s
archive does not contain 'dt.img'
archive does not contain 'pvmfw.img'
archive does not contain 'recovery.img'
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta_system.img'
archive does not contain 'vbmeta_vendor.img'
archive does not contain 'vendor_boot.img'
archive does not contain 'vendor_kernel_boot.img'
archive does not contain 'super_empty.img'
archive does not contain 'boot_other.img'
archive does not contain 'odm.img'
archive does not contain 'odm_dlkm.img'
archive does not contain 'product.img'
extracting system.img (2434 MB) to disk... took 8.098s
archive does not contain 'system_dlkm.img'
archive does not contain 'system_ext.img'
extracting system_other.img (311 MB) to disk... took 1.204s
extracting vendor.img (324 MB) to disk... took 1.247s
archive does not contain 'vendor_dlkm.img'
archive does not contain 'vendor_other.img'
extracting boot.img (32 MB) to disk... took 0.104s
archive does not contain 'boot.sig'
Sending 'boot_a' (32768 KB) OKAY [ 1.187s]
Writing 'boot_a' OKAY [ 0.157s]
extracting dtbo.img (8 MB) to disk... took 0.043s
archive does not contain 'dtbo.sig'
Warning: skip copying dtbo_a image avb footer (dtbo_a partition size: 0, dtbo_a image size: 8388608).
Sending 'dtbo_a' (8192 KB) OKAY [ 0.285s]
Writing 'dtbo_a' OKAY [ 0.041s]
extracting vbmeta.img (0 MB) to disk... took 0.000s
archive does not contain 'vbmeta.sig'
Warning: skip copying vbmeta_a image avb footer (vbmeta_a partition size: 0, vbmeta_a image size: 4096).
Sending 'vbmeta_a' (4 KB) OKAY [ 0.002s]
Writing 'vbmeta_a' OKAY [ 0.001s]
archive does not contain 'super_empty.img'
extracting system.img (2434 MB) to disk... took 8.116s
archive does not contain 'system.sig'
Warning: skip copying system_a image avb footer (system_a partition size: 2684354560, system_a image size: 140731316707984).
Sending sparse 'system_a' 1/6 (458752 KB) OKAY [ 16.304s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 2/6 (458752 KB) OKAY [ 18.908s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 3/6 (458752 KB) OKAY [ 19.089s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 4/6 (458752 KB) OKAY [ 18.959s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 5/6 (524200 KB) OKAY [ 21.218s]
Writing 'system_a' OKAY [ 0.000s]
Sending sparse 'system_a' 6/6 (133844 KB) OKAY [ 7.469s]
Writing 'system_a' OKAY [ 0.000s]
extracting system_other.img (311 MB) to disk... took 1.241s
archive does not contain 'system_other.sig'
Sending 'system_b' (2621440 KB) FAILED (remote: 'Uploaded data exceeds max-download-size')
fastboot: error: Command failed