This tool aims to be a little bridge to transform an OCI image into a systemd-sysext compatible raw image.
CGO_ENABLED=0 go build -mod vendor -ldflags="-s -w"
./oci-sysext pull docker.io/alpine:latest
./oci-sysext create --image docker.io/alpine:latest --name my-alpine-raw --fs btrfs --os opensuse-microos
-
Supported
--fs
aresquashfs
andbtrfs
-
--os
flag is the/etc/os-release
content ofID=
, this is because systemd-sysext needs to know what systemd this will run on