mirror of
https://github.com/kairos-io/packages.git
synced 2025-08-17 23:47: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"
|
- name: "opensuse-leap"
|
||||||
category: "base-image"
|
category: "base-image"
|
||||||
pm: "zypper"
|
pm: "zypper"
|
||||||
version: "15.4"
|
version: "15.4+1"
|
||||||
image: "opensuse/leap:15.4"
|
image: "opensuse/leap:15.4"
|
||||||
packages: >-
|
packages: >-
|
||||||
bash-completion
|
bash-completion
|
||||||
conntrack-tools
|
conntrack-tools
|
||||||
coreutils
|
coreutils
|
||||||
curl
|
curl
|
||||||
|
dhcp
|
||||||
device-mapper
|
device-mapper
|
||||||
dosfstools
|
dosfstools
|
||||||
dracut
|
dracut
|
||||||
|
@ -25,20 +25,31 @@ 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 }}
|
||||||
|
|
||||||
|
# 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" ) }}
|
{{ if and ( ne .Values.name "ubuntu-20-lts" ) ( ne .Values.name "ubuntu" ) ( ne .Values.name "ubuntu-22-lts" ) }}
|
||||||
- package:
|
- package:
|
||||||
category: "dracut"
|
category: "dracut"
|
||||||
name: "systemd-resolved"
|
name: "network-legacy"
|
||||||
|
version: ">=0"
|
||||||
|
source: "/package/."
|
||||||
|
destination: "/"
|
||||||
|
{{ else }}
|
||||||
|
- package:
|
||||||
|
category: "dracut"
|
||||||
|
name: "network-legacy-compat"
|
||||||
version: ">=0"
|
version: ">=0"
|
||||||
source: "/package/."
|
source: "/package/."
|
||||||
destination: "/"
|
destination: "/"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
- package:
|
|
||||||
category: "dracut"
|
|
||||||
name: "network"
|
|
||||||
version: ">=0"
|
|
||||||
source: "/package/."
|
|
||||||
destination: "/"
|
|
||||||
- package:
|
- package:
|
||||||
category: "dracut"
|
category: "dracut"
|
||||||
name: "kcrypt"
|
name: "kcrypt"
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
packages:
|
packages:
|
||||||
- name: "opensuse-leap"
|
- name: "opensuse-leap"
|
||||||
category: "distro-initrd"
|
category: "distro-initrd"
|
||||||
version: "0.21"
|
version: "0.22"
|
||||||
# - 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.21"
|
version: "0.22"
|
||||||
- name: "ubuntu"
|
- name: "ubuntu"
|
||||||
category: "distro-initrd"
|
category: "distro-initrd"
|
||||||
version: "0.21"
|
version: "0.22"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
packages:
|
packages:
|
||||||
- category: "distro-kernels"
|
- category: "distro-kernels"
|
||||||
name: "opensuse-leap"
|
name: "opensuse-leap"
|
||||||
version: "15.4+7"
|
version: "15.4+8"
|
||||||
distribution: "opensuse"
|
distribution: "opensuse"
|
||||||
packages_arm: "raspberrypi-firmware-config raspberrypi-firmware-dt"
|
packages_arm: "raspberrypi-firmware-config raspberrypi-firmware-dt"
|
||||||
packages: "kernel-default kernel-firmware-all"
|
packages: "kernel-default kernel-firmware-all"
|
||||||
@ -14,13 +14,13 @@ packages:
|
|||||||
# packages: "kernel grub2 kernel-core dracut dracut-live"
|
# packages: "kernel grub2 kernel-core dracut dracut-live"
|
||||||
- category: "distro-kernels"
|
- category: "distro-kernels"
|
||||||
name: "ubuntu-20-lts"
|
name: "ubuntu-20-lts"
|
||||||
version: "20.04+7"
|
version: "20.04+8"
|
||||||
distribution: "ubuntu"
|
distribution: "ubuntu"
|
||||||
packages: "linux-image-generic-hwe-20.04"
|
packages: "linux-image-generic-hwe-20.04"
|
||||||
packages_arm: "linux-image-raspi"
|
packages_arm: "linux-image-raspi"
|
||||||
- category: "distro-kernels"
|
- category: "distro-kernels"
|
||||||
name: "ubuntu"
|
name: "ubuntu"
|
||||||
version: "22.10"
|
version: "22.10+8"
|
||||||
distribution: "ubuntu"
|
distribution: "ubuntu"
|
||||||
packages: "linux-image-generic-hwe-20.04"
|
packages: "linux-image-generic-hwe-20.04"
|
||||||
packages_arm: "linux-image-raspi"
|
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
|
image: alpine
|
||||||
package_dir: "/package"
|
package_dir: "/{{.Values.category}}{{.Values.name}}"
|
||||||
steps:
|
steps:
|
||||||
- mkdir -p /package/etc/systemd/network
|
- mkdir -p /{{.Values.category}}{{.Values.name}}/etc/dracut.conf.d
|
||||||
- mkdir -p /package/etc/dracut.conf.d
|
- cp -rfv conf/* /{{.Values.category}}{{.Values.name}}/etc/dracut.conf.d
|
||||||
- cp -rfv conf/* /package/etc/dracut.conf.d
|
|
||||||
- cp -rfv network/* /package/etc/systemd/network
|
|
||||||
|
@ -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 "
|
add_dracutmodules+=" systemd-networkd "
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
name: "network"
|
name: "network"
|
||||||
category: "dracut"
|
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:
|
steps:
|
||||||
- |
|
- |
|
||||||
cd $REPO && make build && \
|
cd $REPO && make GIT_TAG={{.Values.version}}+kairos build && \
|
||||||
mv bin/{{.Values.bin_name}} /usr/bin/{{.Values.bin_name}}
|
mv bin/{{.Values.bin_name}} /usr/bin/{{.Values.bin_name}}
|
||||||
|
|
||||||
includes:
|
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]
|
[Match]
|
||||||
Name=en*
|
Name=*
|
||||||
[Network]
|
[Network]
|
||||||
DHCP=yes
|
DHCP=yes
|
Loading…
Reference in New Issue
Block a user