Skip to content

Latest commit

 

History

History
100 lines (70 loc) · 1.96 KB

README.md

File metadata and controls

100 lines (70 loc) · 1.96 KB

ostree-image-creator

License GitHub release GitHub issues CI

ostree-image-creator, or oic, is a tool to create live and disk images for an OSTree-based operating system.

oic provides the following subcommands:

  • resolve: expands variables and expressions in the manifest file and prints it to the screen.
  • build: builds an image.

Dependencies

You need Go installed.

On Fedora:

sudo dnf install -y golang

This programs also use the OSTree library:

sudo dnf install -y ostree-devel

And the following tools to make images:

sudo dnf install -y \
    coreutils \
    util-linux \
    e2fsprogs \
    dosfstools \
    ostree \
    genisoimage \
    xorriso \
    isomd5sum \
    syslinux \
    squashfs-tools \
    grub2

Download all the Go dependencies:

go mod download

Build

Build with:

make

Install

Install with:

make install

The default prefix is /usr/local but you can specify another one:

make install PREFIX=/usr

And you can also relocate the binaries, this is particularly useful when building packages:

...

%install
make install DESTDIR=%{buildroot} PREFIX=%{_prefix}

...

Licensing

Licensed under the terms of the GNU General Public License version 3 or, at your option, any later version.