Add "unconfigured-state" concept to origin files
Some operating systems may come with external tools for subscription management that drive access to the content. In that case, the origin file may not be useful (for example, it could refer to an installer ISO). This patch will allow OS installers to inject that state, with a useful error message, directing the system administrator to an external tool. See: https://github.com/projectatomic/rpm-ostree/issues/31 https://bugzilla.gnome.org/show_bug.cgi?id=737686
This commit is contained in:
1 parent
63abc1b513
commit
b3ad113f78
5 files changed
+142
-3
No files matched your search
@@ -30,8 +30,22 @@ G_BEGIN_DECLS
|
||||
#define OSTREE_IS_SYSROOT_UPGRADER(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), OSTREE_TYPE_SYSROOT_UPGRADER))
|
||||
|
||||
/**
|
||||
* OstreeSysrootUpgraderFlags:
|
||||
* @OSTREE_SYSROOT_UPGRADER_FLAGS_NONE: No options
|
||||
* @OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED: Do not error if the origin has an unconfigured-state key
|
||||
*
|
||||
* Flags controlling operation of an #OstreeSysrootUpgrader.
|
||||
*/
|
||||
typedef enum {
|
||||
OSTREE_SYSROOT_UPGRADER_FLAGS_NONE = (1 << 0),
|
||||
OSTREE_SYSROOT_UPGRADER_FLAGS_IGNORE_UNCONFIGURED = (1 << 1),
|
||||
} OstreeSysrootUpgraderFlags;
|
||||
|
||||
GType ostree_sysroot_upgrader_get_type (void);
|
||||
|
||||
GType ostree_sysroot_upgrader_flags_get_type (void);
|
||||
|
||||
OstreeSysrootUpgrader *ostree_sysroot_upgrader_new (OstreeSysroot *sysroot,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
@@ -41,6 +55,12 @@ OstreeSysrootUpgrader *ostree_sysroot_upgrader_new_for_os (OstreeSysroot *sysroo
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
OstreeSysrootUpgrader *ostree_sysroot_upgrader_new_for_os_with_flags (OstreeSysroot *sysroot,
|
||||
const char *osname,
|
||||
OstreeSysrootUpgraderFlags flags,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
GKeyFile *ostree_sysroot_upgrader_get_origin (OstreeSysrootUpgrader *self);
|
||||
gboolean ostree_sysroot_upgrader_set_origin (OstreeSysrootUpgrader *self, GKeyFile *origin,
|
||||
GCancellable *cancellable, GError **error);
|
||||
|
||||
Reference in new issue
Block a user