Skip to content

Commit

Permalink
Try loading the vcan module before installing any packages (fixes Deb…
Browse files Browse the repository at this point in the history
…ian)
  • Loading branch information
jpc committed Feb 16, 2022
1 parent 13324ac commit a2f57b1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions k8s-socketcan-daemonset-microk8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ spec:
command:
- sh
- -c
- chroot /root/ apt-get install -y linux-modules-extra-$(uname -r) &&
chroot /root/ modprobe vcan &&
chroot /root/ mknod /var/run/k8s-socketcan-fakedev b 1 1 &&
- chroot /root/ modprobe vcan || { chroot /root/ apt-get install -y linux-modules-extra-$(uname -r) && chroot /root/ modprobe vcan } &&
chroot /root/ mknod /var/run/k8s-socketcan-fakedev b 1 1
echo Succesfully installed and loaded the vcan kernel module
securityContext:
privileged: true
Expand Down

0 comments on commit a2f57b1

Please sign in to comment.