utils: pygpt: Change stateful partition type to LINUX_FS

With CL:1535456, the default stateful partition type GUID is now
LINUX_FS and we have to update pygpt. Old type is also supported as
"stateful".

BUG=chromium:944389
TEST=make test
CQ-DEPEND=CL:1535456

Change-Id: I71a097c4fbd081158581bda28c879f25540fc386
Reviewed-on: https://chromium-review.googlesource.com/1535496
Tested-by: Hung-Te Lin <hungte@chromium.org>
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org>
Reviewed-by: Cheng-Han Yang <chenghan@chromium.org>
diff --git a/py/utils/pygpt.py b/py/utils/pygpt.py
index fbd16b1..4c88f43 100755
--- a/py/utils/pygpt.py
+++ b/py/utils/pygpt.py
@@ -374,9 +374,13 @@
     is_secondary: boolean to indicate if the header is from primary or backup.
   """
   DEFAULT_BLOCK_SIZE = 512
+  # Old devices uses 'Basic data' type for stateful partition, and newer devices
+  # should use 'Linux (fS) data' type; so we added a 'stateful' suffix for
+  # migration.
   TYPE_GUID_MAP = {
       GUID('00000000-0000-0000-0000-000000000000'): 'Unused',
-      GUID('EBD0A0A2-B9E5-4433-87C0-68B6B72699C7'): 'Linux data',
+      GUID('EBD0A0A2-B9E5-4433-87C0-68B6B72699C7'): 'Basic data stateful',
+      GUID('0FC63DAF-8483-4772-8E79-3D69D8477DE4'): 'Linux data',
       GUID('FE3A2A5D-4F32-41A7-B725-ACCC3285A309'): 'ChromeOS kernel',
       GUID('3CB8E202-3B7E-47DD-8A3C-7FF2A13CFCEC'): 'ChromeOS rootfs',
       GUID('2E0A753D-9E48-43B0-8337-B15192CB1B5E'): 'ChromeOS reserved',