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.
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 with:
make
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}
...
Licensed under the terms of the GNU General Public License version 3 or, at your option, any later version.