mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-06-03 01:44:53 +00:00
penguin: Change ubuntu images location (#204)
* 🐧 Move 20 LTS to ubuntu-20-lts repository, ubuntu-rolling to ubuntu See: https://github.com/kairos-io/kairos/issues/150#issuecomment-1272909504 * 🐧 Add ubuntu 22 lts Fixes: https://github.com/kairos-io/kairos/issues/150
This commit is contained in:
parent
e2128af85f
commit
582ef220cf
@ -162,7 +162,7 @@ framework:
|
||||
|
||||
ENV USER=root
|
||||
|
||||
IF [ "$FLAVOR" == "ubuntu-rolling" ]
|
||||
IF [ "$FLAVOR" == "ubuntu-20-lts" ] || [ "$FLAVOR" == "ubuntu-22-lts" ]
|
||||
ARG TOOLKIT_IMG="ubuntu"
|
||||
ELSE IF [ "$FLAVOR" == "rockylinux" ]
|
||||
ARG TOOLKIT_IMG="fedora"
|
||||
@ -245,7 +245,7 @@ docker:
|
||||
COPY overlay/files-opensuse-arm-rpi/ /
|
||||
ELSE IF [ "$FLAVOR" = "fedora" ] || [ "$FLAVOR" = "rockylinux" ]
|
||||
COPY overlay/files-fedora/ /
|
||||
ELSE IF [ "$FLAVOR" = "ubuntu" ] || [ "$FLAVOR" = "ubuntu-rolling" ]
|
||||
ELSE IF [ "$FLAVOR" = "ubuntu" ] || [ "$FLAVOR" = "ubuntu-20-lts" ] || [ "$FLAVOR" = "ubuntu-22-lts" ]
|
||||
COPY overlay/files-ubuntu/ /
|
||||
END
|
||||
|
||||
@ -264,7 +264,7 @@ docker:
|
||||
RUN kernel=$(ls /lib/modules | head -n1) && depmod -a "${kernel}"
|
||||
# https://github.com/kairos-io/elemental-cli/blob/23ca64435fedb9f521c95e798d2c98d2714c53bd/pkg/elemental/elemental.go#L553
|
||||
RUN rm -rf /boot/initramfs-*
|
||||
ELSE IF [ "$FLAVOR" = "ubuntu" ] || [ "$FLAVOR" = "ubuntu-rolling" ]
|
||||
ELSE IF [ "$FLAVOR" = "ubuntu" ] || [ "$FLAVOR" = "ubuntu-20-lts" ] || [ "$FLAVOR" = "ubuntu-22-lts" ]
|
||||
RUN kernel=$(ls /boot/vmlinuz-* | head -n1) && \
|
||||
ln -sf "${kernel#/boot/}" /boot/vmlinuz
|
||||
RUN kernel=$(ls /lib/modules | head -n1) && \
|
||||
|
Loading…
Reference in New Issue
Block a user