Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
k3s/v1.21.0+k3s1 (#695)
Browse files Browse the repository at this point in the history
* kernel: apparmor=0

Disable apparmor because the containerd+runc that ships with k3s v1.21.x
assumes that /sys/module/apparmor/parameters/enabled=Y means it should
look for apparmor userland which fails because we don't ship apparmor
userland.

Signed-off-by: Jacob Blain Christen <[email protected]>

* k3s: v1.21.0+k3s1

Signed-off-by: Jacob Blain Christen <[email protected]>
  • Loading branch information
dweomer authored May 6, 2021
1 parent c22b68e commit 739395f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion images/10-k3s/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ${REPO}/k3os-base:${TAG}

ARG ARCH
ENV ARCH ${ARCH}
ENV VERSION v1.20.4+k3s1
ENV VERSION v1.21.0+k3s1
ADD https://raw.githubusercontent.com/rancher/k3s/${VERSION}/install.sh /output/install.sh
ENV INSTALL_K3S_VERSION=${VERSION} \
INSTALL_K3S_SKIP_START=true \
Expand Down
6 changes: 3 additions & 3 deletions images/70-iso/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ menuentry "k3OS LiveCD & Installer" {
set sqfile=/k3os/system/kernel/current/kernel.squashfs
loopback loop0 /$sqfile
set root=($root)
linux (loop0)/vmlinuz printk.devkmsg=on k3os.mode=live console=ttyS0 console=tty1
linux (loop0)/vmlinuz printk.devkmsg=on k3os.mode=live console=ttyS0 console=tty1 apparmor=0
initrd /k3os/system/kernel/current/initrd
}

Expand All @@ -20,7 +20,7 @@ menuentry "k3OS Installer" {
set sqfile=/k3os/system/kernel/current/kernel.squashfs
loopback loop0 /$sqfile
set root=($root)
linux (loop0)/vmlinuz printk.devkmsg=on k3os.mode=install console=ttyS0 console=tty1
linux (loop0)/vmlinuz printk.devkmsg=on k3os.mode=install console=ttyS0 console=tty1 apparmor=0
initrd /k3os/system/kernel/current/initrd
}

Expand All @@ -29,6 +29,6 @@ menuentry "k3OS Rescue Shell" {
set sqfile=/k3os/system/kernel/current/kernel.squashfs
loopback loop0 /$sqfile
set root=($root)
linux (loop0)/vmlinuz printk.devkmsg=on rescue console=ttyS0 console=tty1
linux (loop0)/vmlinuz printk.devkmsg=on rescue console=ttyS0 console=tty1 apparmor=0
initrd /k3os/system/kernel/current/initrd
}
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ menuentry "k3OS Current" {
set sqfile=/k3os/system/kernel/current/kernel.squashfs
loopback loop0 /\$sqfile
set root=(\$root)
linux (loop0)/vmlinuz printk.devkmsg=on console=tty1 $GRUB_DEBUG
linux (loop0)/vmlinuz printk.devkmsg=on console=tty1 apparmor=0 $GRUB_DEBUG
initrd /k3os/system/kernel/current/initrd
}
Expand All @@ -179,7 +179,7 @@ menuentry "k3OS Previous" {
set sqfile=/k3os/system/kernel/previous/kernel.squashfs
loopback loop0 /\$sqfile
set root=(\$root)
linux (loop0)/vmlinuz printk.devkmsg=on console=tty1 $GRUB_DEBUG
linux (loop0)/vmlinuz printk.devkmsg=on console=tty1 apparmor=0 $GRUB_DEBUG
initrd /k3os/system/kernel/previous/initrd
}
Expand All @@ -188,7 +188,7 @@ menuentry "k3OS Rescue (current)" {
set sqfile=/k3os/system/kernel/current/kernel.squashfs
loopback loop0 /\$sqfile
set root=(\$root)
linux (loop0)/vmlinuz printk.devkmsg=on rescue console=tty1
linux (loop0)/vmlinuz printk.devkmsg=on rescue console=tty1 apparmor=0
initrd /k3os/system/kernel/current/initrd
}
Expand All @@ -197,7 +197,7 @@ menuentry "k3OS Rescue (previous)" {
set sqfile=/k3os/system/kernel/previous/kernel.squashfs
loopback loop0 /\$sqfile
set root=(\$root)
linux (loop0)/vmlinuz printk.devkmsg=on rescue console=tty1
linux (loop0)/vmlinuz printk.devkmsg=on rescue console=tty1 apparmor=0
initrd /k3os/system/kernel/previous/initrd
}
EOF
Expand Down
2 changes: 1 addition & 1 deletion scripts/run-qemu
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ exec $QEMU_SYSTEM \
-initrd $(dirname $0)/../dist/artifacts/k3os-initrd-$ARCH \
-drive if=ide,media=cdrom,file=$(dirname $0)/../dist/artifacts/k3os-$ARCH.iso \
-drive if=virtio,media=disk,file=$STATE_DIR/${DISK_NAME} \
-append "console=${CONSOLE:=ttyS0} loglevel=${LOGLEVEL:=4} printk.devkmsg=${PRINTK_DEVKMSG:=on} $*"
-append "console=${CONSOLE:=ttyS0} loglevel=${LOGLEVEL:=4} printk.devkmsg=${PRINTK_DEVKMSG:=on} apparmor=0 $*"

0 comments on commit 739395f

Please sign in to comment.