···6969image_system=$(read_image_info .system)
7070image_files=( $(read_image_info "${zfs_disks:+.disks.root}.file") )
71717272-image_logical_bytes=$(read_image_info "${zfs_disks:+.disks.root}.logical_bytes")
7272+image_logical_bytes=$(read_image_info "${zfs_disks:+.disks.boot}.logical_bytes")
73737474if [[ -n "$zfs_disks" ]]; then
7575 image_files+=( $(read_image_info .disks.boot.file) )
···242242 if [[ -n "$zfs_disks" ]]; then
243243 local root_snapshot_id=$(read_state "$region.$image_label.root.$image_system" snapshot_id)
244244245245- # currently there is a bug in the ZFS AMI derivation, mismatching logical_bytes
246246- # root.logical_bytes should be boot.logical_bytes and vice versa
247247- # work around until fixed
248248- local root_image_logical_bytes=$(read_image_info ".disks.boot.logical_bytes")
245245+ local root_image_logical_bytes=$(read_image_info ".disks.root.logical_bytes")
249246 local root_image_logical_gigabytes=$(((root_image_logical_bytes-1)/1024/1024/1024+1)) # Round to the next GB
250247251248 block_device_mappings+=(