Skip to contentSkip to conversation

Documentation: state: recommend a partition type GUID for state GPT partitions

PATCH Applied Bastian Krause 2 participants 2 messages Jan 29, 2021 – Feb 4, 2021 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: state: recommend a partition type GUID for state GPT partitions

The partition type GUID was generated randomly. Having a defined GUID should reduce the risk of collisions in the future.

A dedicated GUID could also allow us to implement a fallback in case no state backend property is defined. This could then look for a GPT partition with this partition type GUID and use that as the backend. dt-utils could do the same in userspace. This would be similar to [1].

[1] https://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/

---
 Documentation/user/state.rst | 3 +++
 1 file changed, 3 insertions(+)
Documentation/user/state.rst +3 -0
index 54aa396257..a0e27d4fe8 100644
@@ -579,6 +579,9 @@ content, its backend-type and *state* variable layout.
 		};
 	};
 
+If the *state* variable set is set to be located in a GPT partition, use
+``4778ed65-bf42-45fa-9c5b-287a1dc4aab1`` as the partition type GUID.
+
 SRAM
 ####
 
Signature · 7 lines
2.30.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 8 lines · Bastian Krause

The partition type GUID was generated randomly. Having a defined GUID should reduce the risk of collisions in the future.

A dedicated GUID could also allow us to implement a fallback in case no state backend property is defined. This could then look for a GPT partition with this partition type GUID and use that as the backend. dt-utils could do the same in userspace. This would be similar to [1].

Quoted 6 lines

[1] https://www.freedesktop.org/wiki/Specifications/DiscoverablePartitionsSpec/

---
 Documentation/user/state.rst | 3 +++
 1 file changed, 3 insertions(+)

Applied, thanks

Sascha

Quoted 24 lines
Documentation/user/state.rst +3 -0
index 54aa396257..a0e27d4fe8 100644
@@ -579,6 +579,9 @@ content, its backend-type and *state* variable layout.
 		};
 	};
 
+If the *state* variable set is set to be located in a GPT partition, use
+``4778ed65-bf42-45fa-9c5b-287a1dc4aab1`` as the partition type GUID.
+
 SRAM
 ####
 
Signature · 7 lines
2.30.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox