Skip to content

Commit

Permalink
added raspberry installation hint (k3s-io#2379)
Browse files Browse the repository at this point in the history
Signed-off-by: Jordi Prats <[email protected]>
  • Loading branch information
jordiprats authored Sep 1, 2021
1 parent fdaa0c4 commit 74196ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,11 @@ openrc_start() {

# --- startup systemd or openrc service ---
service_enable_and_start() {
if [ -f "/proc/cgroups" ] && [ "$(grep memory /proc/cgroups | while read -r n n n enabled; do echo $enabled; done)" -eq 0 ];
then
info 'Failed to find memory cgroup, you may need to add "cgroup_memory=1 cgroup_enable=memory" to your linux cmdline (/boot/cmdline.txt on a Raspberry Pi)'
fi
[ "${INSTALL_K3S_SKIP_ENABLE}" = true ] && return
[ "${HAS_SYSTEMD}" = true ] && systemd_enable
Expand Down

0 comments on commit 74196ac

Please sign in to comment.