Browse Source

image generation + correct remotes

main
Nicolas Massé 5 years ago
parent
commit
d640123845
  1. 3
      build.sh
  2. 1
      image.yaml
  3. 27
      image.yaml
  4. 1
      live
  5. 7
      manifest.yaml
  6. 3
      overlay.d/99itix/etc/ostree/remotes.d/itix.conf

3
build.sh

@ -66,6 +66,9 @@ fi
export COREOS_ASSEMBLER_CONFIG_GIT="$git"
cosa fetch
cosa build
cosa buildextend-metal
cosa buildextend-metal4k # metal4k is needed to generate the livecd
cosa buildextend-live
message "Extracting generated ostree..."
rm -rf "$build_repo" || exit 1

1
image.yaml

@ -1 +0,0 @@
fedora-coreos-config/image.yaml

27
image.yaml

@ -0,0 +1,27 @@
# This replaces image.ks
# size is the target disk size in GB.
size: 8
extra-kargs:
# Disable SMT on systems vulnerable to MDS or any similar future issue.
- mitigations=auto,nosmt
# https://github.com/coreos/fedora-coreos-tracker/issues/292
# https://fedoraproject.org/wiki/Changes/CGroupsV2
- systemd.unified_cgroup_hierarchy=0
# Disable networking by default on firstboot. We can drop this once cosa stops
# defaulting to `ip=dhcp,dhcp6 rd.neednet=1` when it doesn't see this key.
ignition-network-kcmdline: []
# Optional remote by which to prefix the deployed OSTree ref
ostree-remote: itix
# We want read-only /sysroot to protect from unintentional damage.
# https://github.com/ostreedev/ostree/issues/1265
sysroot-readonly: true
# After this, we plan to add support for the Ignition
# storage/filesystems sections. (Although one can do
# that on boot as well)

1
live

@ -0,0 +1 @@
fedora-coreos-config/live

7
manifest.yaml

@ -6,3 +6,10 @@ packages:
repos:
- fedora
postprocess:
# remove the "fedora" ostree remote
- |
#!/usr/bin/env bash
set -xeuo pipefail
rm /etc/ostree/remotes.d/fedora.conf

3
overlay.d/99itix/etc/ostree/remotes.d/itix.conf

@ -0,0 +1,3 @@
[remote "itix"]
url=https://f003.backblazeb2.com/file/itix-ostree/
gpg-verify=false
Loading…
Cancel
Save