mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-14 22:25:08 +00:00
🌱 Split resolved configuration (#60)
* 🌱 Split resolved configuration Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com> * 🌱 Cleanup Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
This commit is contained in:
parent
42a654997b
commit
17972d610d
@ -25,13 +25,17 @@ copy:
|
|||||||
source: "/package/."
|
source: "/package/."
|
||||||
destination: "/"
|
destination: "/"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if and ( ne .Values.name "ubuntu-20-lts" ) ( ne .Values.name "ubuntu" ) ( ne .Values.name "ubuntu-22-lts" ) }}
|
||||||
|
- package:
|
||||||
|
category: "dracut"
|
||||||
|
name: "systemd-resolved"
|
||||||
|
version: ">=0"
|
||||||
|
source: "/package/."
|
||||||
|
destination: "/"
|
||||||
|
{{ end }}
|
||||||
- package:
|
- package:
|
||||||
category: "dracut"
|
category: "dracut"
|
||||||
{{ if or ( eq .Values.name "ubuntu-20-lts" ) ( eq .Values.name "ubuntu" ) ( eq .Values.name "ubuntu-22-lts" ) }}
|
|
||||||
name: "network-compat"
|
|
||||||
{{ else }}
|
|
||||||
name: "network"
|
name: "network"
|
||||||
{{ end }}
|
|
||||||
version: ">=0"
|
version: ">=0"
|
||||||
source: "/package/."
|
source: "/package/."
|
||||||
destination: "/"
|
destination: "/"
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
packages:
|
packages:
|
||||||
- name: "opensuse-leap"
|
- name: "opensuse-leap"
|
||||||
category: "distro-initrd"
|
category: "distro-initrd"
|
||||||
version: "0.19"
|
version: "0.20"
|
||||||
# - name: "fedora"
|
# - name: "fedora"
|
||||||
# category: "distro-initrd"
|
# category: "distro-initrd"
|
||||||
# version: "0.11"
|
# version: "0.11"
|
||||||
- name: "ubuntu-20-lts"
|
- name: "ubuntu-20-lts"
|
||||||
category: "distro-initrd"
|
category: "distro-initrd"
|
||||||
version: "0.19"
|
version: "0.20"
|
||||||
- name: "ubuntu"
|
- name: "ubuntu"
|
||||||
category: "distro-initrd"
|
category: "distro-initrd"
|
||||||
version: "0.19"
|
version: "0.20"
|
||||||
|
@ -3,9 +3,5 @@ package_dir: "/package"
|
|||||||
steps:
|
steps:
|
||||||
- mkdir -p /package/etc/systemd/network
|
- mkdir -p /package/etc/systemd/network
|
||||||
- mkdir -p /package/etc/dracut.conf.d
|
- mkdir -p /package/etc/dracut.conf.d
|
||||||
{{ if eq .Values.name "network-compat" }}
|
|
||||||
- cp -rfv conf-compat/* /package/etc/dracut.conf.d
|
|
||||||
{{ else }}
|
|
||||||
- cp -rfv conf/* /package/etc/dracut.conf.d
|
- cp -rfv conf/* /package/etc/dracut.conf.d
|
||||||
{{ end }}
|
|
||||||
- cp -rfv network/* /package/etc/systemd/network
|
- cp -rfv network/* /package/etc/systemd/network
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
packages:
|
|
||||||
- name: "network"
|
|
||||||
category: "dracut"
|
|
||||||
version: "0.9"
|
|
||||||
- name: "network-compat"
|
|
||||||
category: "dracut"
|
|
||||||
version: "0.9"
|
|
@ -1,2 +0,0 @@
|
|||||||
install_items+=" /etc/systemd/network/20-dhcp.network /etc/systemd/network/21-dhcp-legacy.network "
|
|
||||||
add_dracutmodules+=" systemd-networkd "
|
|
@ -1,2 +1,2 @@
|
|||||||
install_items+=" /etc/systemd/network/20-dhcp.network /etc/systemd/network/21-dhcp-legacy.network "
|
install_items+=" /etc/systemd/network/20-dhcp.network /etc/systemd/network/21-dhcp-legacy.network "
|
||||||
add_dracutmodules+=" systemd-networkd systemd-resolved "
|
add_dracutmodules+=" systemd-networkd "
|
||||||
|
3
packages/system/dracut/network/definition.yaml
Normal file
3
packages/system/dracut/network/definition.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name: "network"
|
||||||
|
category: "dracut"
|
||||||
|
version: "0.11"
|
5
packages/system/dracut/systemd-resolved/build.yaml
Normal file
5
packages/system/dracut/systemd-resolved/build.yaml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
image: alpine
|
||||||
|
package_dir: "/package"
|
||||||
|
steps:
|
||||||
|
- mkdir -p /package/etc/dracut.conf.d
|
||||||
|
- cp -rfv conf/* /package/etc/dracut.conf.d
|
@ -0,0 +1 @@
|
|||||||
|
add_dracutmodules+=" systemd-resolved "
|
3
packages/system/dracut/systemd-resolved/definition.yaml
Normal file
3
packages/system/dracut/systemd-resolved/definition.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
name: "systemd-resolved"
|
||||||
|
category: "dracut"
|
||||||
|
version: "0.10"
|
@ -1,31 +0,0 @@
|
|||||||
image: alpine
|
|
||||||
|
|
||||||
copy:
|
|
||||||
- image: "quay.io/luet/base:0.32.5"
|
|
||||||
source: "/usr/bin/luet"
|
|
||||||
destination: "/usr/bin/luet"
|
|
||||||
|
|
||||||
prelude:
|
|
||||||
- |
|
|
||||||
mkdir -p /etc/luet/repos.conf.d && \
|
|
||||||
luet repo add --type docker --reference "v{{.Values.tag}}-repository.yaml" --yes --url {{.Values.repo}} elemental
|
|
||||||
package_dir: /framework
|
|
||||||
steps:
|
|
||||||
- |
|
|
||||||
/usr/bin/luet install -y --system-target /framework \
|
|
||||||
meta/cos-light \
|
|
||||||
cloud-config/recovery \
|
|
||||||
cloud-config/live \
|
|
||||||
cloud-config/network \
|
|
||||||
cloud-config/boot-assessment \
|
|
||||||
cloud-config/rootfs \
|
|
||||||
system-openrc/cos-setup
|
|
||||||
#- mkdir -p /output/etc/dracut.conf.d/
|
|
||||||
{{ if eq .Values.name "elemental-toolkit-opensuse" }}
|
|
||||||
{{ if eq .Values.arch "amd64" }}
|
|
||||||
- cp -rf sysext.conf /framework/etc/dracut.conf.d/20-sysext.conf
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
excludes:
|
|
||||||
- var/cache|var/cache/.*
|
|
||||||
- usr/bin/elemental
|
|
@ -1,34 +0,0 @@
|
|||||||
packages:
|
|
||||||
- name: "elemental-toolkit-opensuse"
|
|
||||||
category: "system"
|
|
||||||
repo: "quay.io/costoolkit/releases-teal"
|
|
||||||
version: "0.8.14-24"
|
|
||||||
tag: "0.8.14-22"
|
|
||||||
arch: "amd64"
|
|
||||||
license: "Apache License 2.0"
|
|
||||||
copyright: SUSE
|
|
||||||
labels:
|
|
||||||
github.repo: "elemental-toolkit"
|
|
||||||
github.owner: "rancher"
|
|
||||||
- name: "elemental-toolkit-ubuntu"
|
|
||||||
repo: "quay.io/costoolkit/releases-orange"
|
|
||||||
category: "system"
|
|
||||||
version: "0.8.14-24"
|
|
||||||
arch: "amd64"
|
|
||||||
tag: "0.8.14-22"
|
|
||||||
license: "Apache License 2.0"
|
|
||||||
copyright: SUSE
|
|
||||||
labels:
|
|
||||||
github.repo: "elemental-toolkit"
|
|
||||||
github.owner: "rancher"
|
|
||||||
- name: "elemental-toolkit-fedora"
|
|
||||||
repo: "quay.io/costoolkit/releases-blue"
|
|
||||||
category: "system"
|
|
||||||
arch: "amd64"
|
|
||||||
version: "0.8.14-24"
|
|
||||||
tag: "0.8.14-22"
|
|
||||||
license: "Apache License 2.0"
|
|
||||||
copyright: SUSE
|
|
||||||
labels:
|
|
||||||
github.repo: "elemental-toolkit"
|
|
||||||
github.owner: "rancher"
|
|
@ -1 +0,0 @@
|
|||||||
add_dracutmodules+=" systemd-sysext "
|
|
Loading…
Reference in New Issue
Block a user