ostree-pin: Tool to update ostree deployment pin

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Warnings:

CLI tool to easily pin the current ostree deployment


[Skip to Readme]

Properties

Versions 0.1, 0.1.1, 0.1.1
Change log CHANGELOG.md
Dependencies base (<5), gi-gio, gi-ostree (>=1.0.18), simple-cmd-args, unix [details]
License GPL-3.0-only
Copyright 2019-2021, 2023 Jens Petersen
Author Jens Petersen <petersen@redhat.com>
Maintainer Jens Petersen <petersen@redhat.com>
Category Utility
Home page https://github.com/juhp/ostree-pin
Bug tracker https://github.com/juhp/ostree-pin/issues
Source repo head: git clone https://github.com/juhp/ostree-pin.git
Uploaded by JensPetersen at 2023-10-30T13:24:01Z

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


Readme for ostree-pin-0.1.1

[back to package description]

ostree-pin

Hackage GPL-3 license

Summary

A small utility to move the ostree "pin" to the current ostree deployment. eg useful on Fedora Silverblue for preserving the current booted deployment image. It can be run before booting into a new staged deployment, or afterwards using the --rollback option.

Help

$ ostree-pin --version

0.1.1

$ ostree-pin --help

Tool to update ostree deployment pin

Usage: ostree-pin [--version] [-n|--dryrun] [-p|--rollback]

  See https://github.com/juhp/ostree-pin#readme

Available options:
  -h,--help                Show this help text
  --version                Show version
  -n,--dryrun              Dry run
  -p,--rollback            Pin previous (rollback) deployment

If you forgot to pin the previous deployment before booting into a newer one, you can use --rollback to pin it from the newer deployment.

Usage

$ sudo ostree-pin
removing previous pin
pinning current deployment

Install

Needs the Fedora ostree-devel package (or better ghc-gi-ostree-devel) or libostree-dev (Debian/Ubuntu). Also needs ghc and cabal-install (or stack).

$ cabal install

or from git:

$ stack install

Usage

$ sudo ostree-pin

Sets the current deployment to pinned, and unpins the previously pinned deployment. If more than one deployment was pinned it doesn't touch them.

Contribute

ostree-pin is distributed under the GPL license version 3 or later.

Contributions are welcome at https://github.com/juhp/ostree-pin