openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* /etc/migration.d
@ 2020-10-14 18:47 Anton Kachalov
  2020-10-16 16:50 ` /etc/migration.d Ed Tanous
  2020-10-16 20:25 ` /etc/migration.d Patrick Williams
  0 siblings, 2 replies; 10+ messages in thread
From: Anton Kachalov @ 2020-10-14 18:47 UTC (permalink / raw)
  To: OpenBMC Maillist

[-- Attachment #1: Type: text/plain, Size: 826 bytes --]

With moving from root-only environment to unprivileged users' space, we
need to ensure a smooth transition. To achieve that we need a mechanism for
one-shot per-package scripts that would take care of migration. That's not
only about groups & owners, but a general approach. It's similar to
firstboot, but has a different purpose.

I'm going to prototype a robust / naive solution to start a service before
everything else in the system with a condition (non-empty /etc/migration.d)
and iterate through all files. Each script has to run at list with "set -e"
to bail out on failures. If the script succeeded -- it will be removed.

The tricky part is: what if the script fails? Keep it, ignore the failure
and proceed with others and then boot the system? Or proceed other scripts
as well and then enter some "failure state"?

[-- Attachment #2: Type: text/html, Size: 937 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-10-22 20:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-14 18:47 /etc/migration.d Anton Kachalov
2020-10-16 16:50 ` /etc/migration.d Ed Tanous
2020-10-16 17:10   ` /etc/migration.d Anton Kachalov
2020-10-16 20:25 ` /etc/migration.d Patrick Williams
2020-10-16 21:01   ` /etc/migration.d Anton Kachalov
2020-10-20 11:22     ` /etc/migration.d Anton Kachalov
2020-10-22 16:19       ` /etc/migration.d Anton Kachalov
2020-10-22 19:51         ` /etc/migration.d Ed Tanous
     [not found]         ` <CAH2-KxA9cX49Kfp4SbRPdY1wRt3u8T7o-hUfkBORZNZ9yUXoSg@mail.gmail.com>
2020-10-22 20:39           ` [gbmc-team] /etc/migration.d Anton Kachalov
2020-10-22 20:45             ` Ed Tanous

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).