Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juhp/ostree-pin
Tool to pin current ostree deployment
https://github.com/juhp/ostree-pin
Last synced: 8 days ago
JSON representation
Tool to pin current ostree deployment
- Host: GitHub
- URL: https://github.com/juhp/ostree-pin
- Owner: juhp
- License: gpl-3.0
- Created: 2019-09-08T08:18:03.000Z (about 5 years ago)
- Default Branch: haskell
- Last Pushed: 2023-10-30T13:25:53.000Z (about 1 year ago)
- Last Synced: 2024-09-17T02:46:00.172Z (about 2 months ago)
- Language: Haskell
- Homepage: https://hackage.haskell.org/package/ostree-pin
- Size: 38.1 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ostree-pin
[![Hackage](https://img.shields.io/hackage/v/ostree-pin.svg)](https://hackage.haskell.org/package/ostree-pin)
[![GPL-3 license](https://img.shields.io/badge/license-GPL--3-blue.svg)](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 pinUsage: 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
```shellsession
$ 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