mirror of
https://github.com/kairos-io/kairos-agent.git
synced 2025-09-25 21:43:58 +00:00
penguin: Correctly handle kernel image symlink (#202)
This commit is contained in:
committed by
Itxaka
parent
582ef220cf
commit
4f35f9ed3a
11
Earthfile
11
Earthfile
@@ -273,9 +273,16 @@ docker:
|
|||||||
RUN kernel=$(ls /lib/modules | head -n1) && depmod -a "${kernel}"
|
RUN kernel=$(ls /lib/modules | head -n1) && depmod -a "${kernel}"
|
||||||
END
|
END
|
||||||
|
|
||||||
# If it's an ARM flavor, we want a symlink here
|
IF [ ! -e "/boot/vmlinuz" ]
|
||||||
IF [ "$FLAVOR" = "alpine-arm-rpi" ] || [ "$FLAVOR" = "opensuse-arm-rpi" ] || [ "$FLAVOR" = "tumbleweed-arm-rpi" ]
|
# If it's an ARM flavor, we want a symlink here from zImage/Image
|
||||||
|
IF [ -e "/boot/Image" ]
|
||||||
RUN ln -sf Image /boot/vmlinuz
|
RUN ln -sf Image /boot/vmlinuz
|
||||||
|
ELSE IF [ -e "/boot/zImage" ]
|
||||||
|
RUN ln -sf zImage /boot/vmlinuz
|
||||||
|
ELSE
|
||||||
|
RUN kernel=$(ls /lib/modules | head -n1) && \
|
||||||
|
ln -sf "${kernel#/boot/}" /boot/vmlinuz
|
||||||
|
END
|
||||||
END
|
END
|
||||||
|
|
||||||
SAVE IMAGE $IMAGE
|
SAVE IMAGE $IMAGE
|
||||||
|
Reference in New Issue
Block a user