ostree-pin: Tool to update ostree deployment pin

[ gpl, program, utility ] [ Propose Tags ] [ Report a vulnerability ]

CLI tool to easily pin the current ostree deployment


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.1, 0.1.1
Change log CHANGELOG.md
Dependencies base (<5), gi-gio, gi-ostree (>=1.0.18), simple-cmd-args, unix [details]
Tested with ghc ==9.2.8, ghc ==9.4.7, ghc ==9.6.3
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:26:00Z
Distributions Fedora:0.1.1, NixOS:0.1.1
Executables ostree-pin
Downloads 79 total (7 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2023-10-30 [all 2 reports]

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