mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-17 15:38:10 +00:00
🐛 Fixup netboot (#67)
Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com> Signed-off-by: Ettore Di Giacinto <mudler@users.noreply.github.com>
This commit is contained in:
parent
5f255b8e7e
commit
f112a99b52
@ -69,13 +69,14 @@ packages:
|
||||
- name: "opensuse-leap"
|
||||
category: "base-image"
|
||||
pm: "zypper"
|
||||
version: "15.4"
|
||||
version: "15.4+1"
|
||||
image: "opensuse/leap:15.4"
|
||||
packages: >-
|
||||
bash-completion
|
||||
conntrack-tools
|
||||
coreutils
|
||||
curl
|
||||
dhcp
|
||||
device-mapper
|
||||
dosfstools
|
||||
dracut
|
||||
|
@ -25,20 +25,31 @@ copy:
|
||||
source: "/package/."
|
||||
destination: "/"
|
||||
{{ 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 }}
|
||||
|
||||
# Use network-legacy until https://github.com/dracutdevs/dracut/issues/1822 is fixed
|
||||
{{ if and ( ne .Values.name "ubuntu-20-lts" ) ( ne .Values.name "ubuntu" ) ( ne .Values.name "ubuntu-22-lts" ) }}
|
||||
- package:
|
||||
category: "dracut"
|
||||
name: "systemd-resolved"
|
||||
name: "network-legacy"
|
||||
version: ">=0"
|
||||
source: "/package/."
|
||||
destination: "/"
|
||||
{{ else }}
|
||||
- package:
|
||||
category: "dracut"
|
||||
name: "network-legacy-compat"
|
||||
version: ">=0"
|
||||
source: "/package/."
|
||||
destination: "/"
|
||||
{{ end }}
|
||||
- package:
|
||||
category: "dracut"
|
||||
name: "network"
|
||||
version: ">=0"
|
||||
source: "/package/."
|
||||
destination: "/"
|
||||
- package:
|
||||
category: "dracut"
|
||||
name: "kcrypt"
|
||||
|
@ -1,13 +1,13 @@
|
||||
packages:
|
||||
- name: "opensuse-leap"
|
||||
category: "distro-initrd"
|
||||
version: "0.21"
|
||||
version: "0.22"
|
||||
# - name: "fedora"
|
||||
# category: "distro-initrd"
|
||||
# version: "0.11"
|
||||
- name: "ubuntu-20-lts"
|
||||
category: "distro-initrd"
|
||||
version: "0.21"
|
||||
version: "0.22"
|
||||
- name: "ubuntu"
|
||||
category: "distro-initrd"
|
||||
version: "0.21"
|
||||
version: "0.22"
|
||||
|
@ -1,7 +1,7 @@
|
||||
packages:
|
||||
- category: "distro-kernels"
|
||||
name: "opensuse-leap"
|
||||
version: "15.4+7"
|
||||
version: "15.4+8"
|
||||
distribution: "opensuse"
|
||||
packages_arm: "raspberrypi-firmware-config raspberrypi-firmware-dt"
|
||||
packages: "kernel-default kernel-firmware-all"
|
||||
@ -14,13 +14,13 @@ packages:
|
||||
# packages: "kernel grub2 kernel-core dracut dracut-live"
|
||||
- category: "distro-kernels"
|
||||
name: "ubuntu-20-lts"
|
||||
version: "20.04+7"
|
||||
version: "20.04+8"
|
||||
distribution: "ubuntu"
|
||||
packages: "linux-image-generic-hwe-20.04"
|
||||
packages_arm: "linux-image-raspi"
|
||||
- category: "distro-kernels"
|
||||
name: "ubuntu"
|
||||
version: "22.10"
|
||||
version: "22.10+8"
|
||||
distribution: "ubuntu"
|
||||
packages: "linux-image-generic-hwe-20.04"
|
||||
packages_arm: "linux-image-raspi"
|
5
packages/system/dracut/network-legacy-compat/build.yaml
Normal file
5
packages/system/dracut/network-legacy-compat/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,4 @@
|
||||
packages:
|
||||
- name: "network-legacy-compat"
|
||||
category: "dracut"
|
||||
version: "0.9"
|
@ -0,0 +1,2 @@
|
||||
omit_dracutmodules+=" systemd-networkd "
|
||||
add_dracutmodules+=" network "
|
5
packages/system/dracut/network-legacy/build.yaml
Normal file
5
packages/system/dracut/network-legacy/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
|
4
packages/system/dracut/network-legacy/collection.yaml
Normal file
4
packages/system/dracut/network-legacy/collection.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
packages:
|
||||
- name: "network-legacy"
|
||||
category: "dracut"
|
||||
version: "0.9"
|
@ -0,0 +1,2 @@
|
||||
omit_dracutmodules+=" systemd-networkd "
|
||||
add_dracutmodules+=" network-legacy "
|
@ -1,7 +1,5 @@
|
||||
image: alpine
|
||||
package_dir: "/package"
|
||||
package_dir: "/{{.Values.category}}{{.Values.name}}"
|
||||
steps:
|
||||
- mkdir -p /package/etc/systemd/network
|
||||
- mkdir -p /package/etc/dracut.conf.d
|
||||
- cp -rfv conf/* /package/etc/dracut.conf.d
|
||||
- cp -rfv network/* /package/etc/systemd/network
|
||||
- mkdir -p /{{.Values.category}}{{.Values.name}}/etc/dracut.conf.d
|
||||
- cp -rfv conf/* /{{.Values.category}}{{.Values.name}}/etc/dracut.conf.d
|
||||
|
@ -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 "
|
||||
add_dracutmodules+=" systemd-networkd "
|
||||
|
@ -1,3 +1,8 @@
|
||||
name: "network"
|
||||
category: "dracut"
|
||||
version: "0.11"
|
||||
version: "0.12"
|
||||
# System files shipped separately as consumed by both dracut and user-space
|
||||
requires:
|
||||
- name: "network"
|
||||
category: "systemd-default"
|
||||
version: ">=0"
|
@ -1,4 +0,0 @@
|
||||
[Match]
|
||||
Name=eth*
|
||||
[Network]
|
||||
DHCP=yes
|
@ -15,7 +15,7 @@ prelude:
|
||||
|
||||
steps:
|
||||
- |
|
||||
cd $REPO && make build && \
|
||||
cd $REPO && make GIT_TAG={{.Values.version}}+kairos build && \
|
||||
mv bin/{{.Values.bin_name}} /usr/bin/{{.Values.bin_name}}
|
||||
|
||||
includes:
|
||||
|
@ -0,0 +1,5 @@
|
||||
image: alpine
|
||||
package_dir: "/package"
|
||||
steps:
|
||||
- mkdir -p /package/etc/systemd/network
|
||||
- cp -rfv network/* /package/etc/systemd/network
|
@ -0,0 +1,3 @@
|
||||
name: "network"
|
||||
category: "systemd-default"
|
||||
version: "0.11"
|
@ -1,4 +1,4 @@
|
||||
[Match]
|
||||
Name=en*
|
||||
Name=*
|
||||
[Network]
|
||||
DHCP=yes
|
Loading…
Reference in New Issue
Block a user