From a0b2a34f1b1c509246274324661cb1c832b89926 Mon Sep 17 00:00:00 2001 From: valtzu Date: Sun, 15 Sep 2024 12:53:39 +0300 Subject: [PATCH] Add k3s --- curl.txt | 3 +++ mkosi.extra/usr/bin/crictl | 1 + mkosi.extra/usr/bin/ctr | 1 + mkosi.extra/usr/bin/kubectl | 1 + mkosi.prepare | 2 +- 5 files changed, 7 insertions(+), 1 deletion(-) create mode 120000 mkosi.extra/usr/bin/crictl create mode 120000 mkosi.extra/usr/bin/ctr create mode 120000 mkosi.extra/usr/bin/kubectl diff --git a/curl.txt b/curl.txt index 3b742a1..5c52a86 100644 --- a/curl.txt +++ b/curl.txt @@ -30,3 +30,6 @@ expand-output="{{dl_dir}}/rpi-eeprom-config" url="https://raw.githubusercontent.com/raspberrypi/rpi-eeprom/v2024.04.20-2712/firmware-2711/default/pieeprom-2024-04-15.bin" expand-output="{{dl_dir}}/pieeprom-2024-04-15.bin" + +url="https://github.com/k3s-io/k3s/releases/download/v1.29.2+k3s1/k3s-arm64" +expand-output="{{buildroot}}/usr/bin/k3s" diff --git a/mkosi.extra/usr/bin/crictl b/mkosi.extra/usr/bin/crictl new file mode 120000 index 0000000..ae4d5f7 --- /dev/null +++ b/mkosi.extra/usr/bin/crictl @@ -0,0 +1 @@ +k3s \ No newline at end of file diff --git a/mkosi.extra/usr/bin/ctr b/mkosi.extra/usr/bin/ctr new file mode 120000 index 0000000..ae4d5f7 --- /dev/null +++ b/mkosi.extra/usr/bin/ctr @@ -0,0 +1 @@ +k3s \ No newline at end of file diff --git a/mkosi.extra/usr/bin/kubectl b/mkosi.extra/usr/bin/kubectl new file mode 120000 index 0000000..ae4d5f7 --- /dev/null +++ b/mkosi.extra/usr/bin/kubectl @@ -0,0 +1 @@ +k3s \ No newline at end of file diff --git a/mkosi.prepare b/mkosi.prepare index 362ccbd..0231ee2 100755 --- a/mkosi.prepare +++ b/mkosi.prepare @@ -7,7 +7,7 @@ EFIDIR=$BUILDROOT/efi mkdir -p $TMPDIR/firmware/overlays $EFIDIR cd $TMPDIR/firmware -curl --create-dirs -fLZ --variable fw_dir=$(pwd) --variable dl_dir=$TMPDIR --config $SRCDIR/curl.txt +curl --create-dirs -fLZ --variable fw_dir=$(pwd) --variable dl_dir=$TMPDIR --variable buildroot=$BUILDROOT --config $SRCDIR/curl.txt unzip -o $TMPDIR/rpi_uefi.zip RPI_EFI.fd