Skip to contentSkip to conversation

docs/manuali/makeusers-syntax.txt: add caveat for upgrading

PATCH Applied Arnout Vandecappelle (Essensium/Mind) 3 participants 3 messages Feb 5, 2022 – Jun 6, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/manuali/makeusers-syntax.txt: add caveat for upgrading

With the change of the range of UIDs that is generated from the automatic ID (-1), it became apparent that there is a potential problem with these automatic IDs when upgrading: they may have changed, which means that persistent files that exist outside of the rootfs suddenly have a different owner.

Add a caveat section to the manual, as well as an explanation of how to work around the problem.

---
 docs/manual/makeusers-syntax.txt | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
docs/manual/makeusers-syntax.txt +14 -0
index 3d1013f447..cebc6240ae 100644
@@ -90,3 +90,17 @@ This will create this user:
 - +shell+ is: +/bin/sh+
 - +test+ is not a member of any additional +groups+
 - +comment+ is: +Test user+
+
+
+=== Caveat when updating Buildroot
+
+When updating buildroot or when packages are added or removed to/from
+the configuration, it is possible that the automatic UIDs and GIDs are
+changed. This can be a problem if persistent files were created with
+that user or group: after upgrade, they will suddenly have a different
+owner.
+
+Therefore, it is advisable to perpetuate the automatic IDs. This can be
+done either by adding a users table with the generated IDs. It is only
+needed to do this for UIDs that actually create persistent files, e.g.
+database.
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

Arnout, All,

Title: s/manuali/manual/

On 2022-02-05 23:23 +0100, Arnout Vandecappelle (Essensium/Mind) spake thusly:

Quoted 19 lines

With the change of the range of UIDs that is generated from the automatic ID (-1), it became apparent that there is a potential problem with these automatic IDs when upgrading: they may have changed, which means that persistent files that exist outside of the rootfs suddenly have a different owner.

Add a caveat section to the manual, as well as an explanation of how to work around the problem.

---
 docs/manual/makeusers-syntax.txt | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
docs/manual/makeusers-syntax.txt +0 -0
index 3d1013f447..cebc6240ae 100644

docs/manual/makeusers-syntax.txt This will create this user: · line 95

Quoted 6 lines
docs/manual/makeusers-syntax.txt +3 -0
@@ -90,3 +90,17 @@ This will create this user:
 - +shell+ is: +/bin/sh+
 - +test+ is not a member of any additional +groups+
 - +comment+ is: +Test user+
+
+
+=== Caveat when updating Buildroot

I changed that to: Caveat with automatic UIDs and GIDs (because that's the real cause).

docs/manual/makeusers-syntax.txt This will create this user: · line 104

Quoted 9 lines
docs/manual/makeusers-syntax.txt +9 -0
+
+When updating buildroot or when packages are added or removed to/from
+the configuration, it is possible that the automatic UIDs and GIDs are
+changed. This can be a problem if persistent files were created with
+that user or group: after upgrade, they will suddenly have a different
+owner.
+
+Therefore, it is advisable to perpetuate the automatic IDs. This can be
+done either by adding a users table with the generated IDs. It is only

'either' is spurious here, I think, so I dropped it.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 9 lines
docs/manual/makeusers-syntax.txt +2 -0
+needed to do this for UIDs that actually create persistent files, e.g.
+database.
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
In reply to Arnout Vandecappelle (Essensium/Mind)
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Arnout" == Arnout Vandecappelle (Essensium/Mind) <[email protected]> writes:

With the change of the range of UIDs that is generated from the automatic ID (-1), it became apparent that there is a potential problem with these automatic IDs when upgrading: they may have changed, which means that persistent files that exist outside of the rootfs suddenly have a different owner.

Quoted 4 lines

Add a caveat section to the manual, as well as an explanation of how to work around the problem.

Committed to 2022.02.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot