From: Patrick Williams <patrick@stwcx.xyz>
To: vishwa <vishwa@linux.vnet.ibm.com>
Cc: OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Re: Design proposal on removing /org/openbmc/settings/boot_policy"
Date: Mon, 14 Aug 2017 14:18:11 -0500 [thread overview]
Message-ID: <20170814191811.GD20526@asimov.lan> (raw)
In-Reply-To: <b820c5bf-3f9c-b59d-97d1-549df44aa1e5@linux.vnet.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 1629 bytes --]
On Thu, Aug 03, 2017 at 04:55:21PM +0530, vishwa wrote:
> Now, the proposal is to remove
> '"/org/openbmc/settings/host0:boot_policy"' and then put this as a
> boolean into 'persist' property into:
>
> /xyz/openbmc_project/Control/Boot/Mode and
> /xyz/openbmc_project/Control/Boot/Source.
I understand we have two different interfaces for these two different
properties but do we want them on a single object path? It seems like
having multiple properties on /xyz/.../control/hostN/boot would be
better, but this will preclude using the same property name in both
interfaces.
>
> IPMID would then look at this new boolean to see if its ONETIME (
> boolean : 0 ) or PERMANENT ( boolean : 1 ) and respond to Get-Boot-Options.
Why are we not instead creating two objects? This proposal creates a
bit of undefined behavior in my mind:
1. Since only one dbus property ca be updated at a time, which order is
the user suppose to update?
2. What happens when the property is ONETIME (false), the value of Mode
itself is changed, and then the property is changed to PERMANENT (true)?
Does this restore the old value persisted or does it now persist the
previous ONETIME value?
3. As a user, how can I identify what the PERMANENT value is if someone
has temporarily done a ONETIME? I have to wait until the ONETIME is
consumed?
It seems like having an optional, perhaps dynamically create, second
object to separate PERMANENT and ONETIME would take care of this,
wouldn't it? Is there a reason you did not want to have two settings
objects to represent this?
--
Patrick Williams
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2017-08-14 19:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-03 11:25 Design proposal on removing /org/openbmc/settings/boot_policy" vishwa
2017-08-14 19:18 ` Patrick Williams [this message]
2017-08-17 9:36 ` Deepak Kodihalli
2017-08-17 14:02 ` Patrick Williams
2017-08-17 15:33 ` vishwa
2017-08-17 16:49 ` Deepak Kodihalli
2017-08-17 17:31 ` vishwa
2017-08-17 18:02 ` Deepak Kodihalli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170814191811.GD20526@asimov.lan \
--to=patrick@stwcx.xyz \
--cc=openbmc@lists.ozlabs.org \
--cc=vishwa@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.