misc: Fix util/gem5img.py for new versions of sfdisk
authorRichard Cooper <richard.cooper@arm.com>
Mon, 27 Apr 2020 10:16:24 +0000 (11:16 +0100)
committerRichard Cooper <richard.cooper@arm.com>
Wed, 27 May 2020 10:03:36 +0000 (10:03 +0000)
commit49ae60abe4052e4ca5556db73ba57caf73eb27a3
treec030cfb0293ce0815f132a701789fa440937f0a5
parent7cea164392d53b186842cc00663e1577fb778db1
misc: Fix util/gem5img.py for new versions of sfdisk

Newer versions of sfdisk have changed the format of the dump output,
as well as the options for partitioning a disk.

Updated the gem5img.py script to work with the new version of sfdisk.
The script should still work with older versions of sfdisk, but this
has not been tested (see https://askubuntu.com/a/819614).

Tested on Ubuntu 18.04.2 LTS with sfdisk from util-linux 2.31.1.

Change-Id: I1197ecacabdd7caaab00327977fb9ab6eae06654
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29472
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
util/gem5img.py