Skip to content

Commit

Permalink
update linuxkit and linuxkit/init, ensure it stays cgroups v1
Browse files Browse the repository at this point in the history
Signed-off-by: Avi Deitcher <[email protected]>
  • Loading branch information
deitch committed Aug 22, 2024
1 parent 5e672f1 commit 69b03fa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ PARSE_PKGS=$(if $(strip $(EVE_HASH)),EVE_HASH=)$(EVE_HASH) DOCKER_ARCH_TAG=$(DOC
LINUXKIT=$(BUILDTOOLS_BIN)/linuxkit
# linuxkit version. This **must** be a published semver version so it can be downloaded already compiled from
# the release page at https://github.com/linuxkit/linuxkit/releases
LINUXKIT_VERSION=v1.5.0
LINUXKIT_VERSION=v1.5.1
LINUXKIT_SOURCE=https://github.com/linuxkit/linuxkit
LINUXKIT_OPTS=$(if $(strip $(EVE_HASH)),--hash) $(EVE_HASH) $(if $(strip $(EVE_REL)),--release) $(EVE_REL)
LINUXKIT_PKG_TARGET=build
Expand Down
6 changes: 3 additions & 3 deletions images/rootfs.yml.in
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
kernel:
image: KERNEL_TAG
cmdline: "rootdelay=3"
# the unified_cgroup_hierarchy forces cgroupsv1, which is required until pillar is ready to support v2
cmdline: "rootdelay=3 linuxkit.unified_cgroup_hierarchy=0"
init:
- linuxkit/init:07d37c3ae7fad5ddcb54c8dc65774ae050851f04
- linuxkit/runc:6062483d748609d505f2bcde4e52ee64a3329f5f
- linuxkit/init:e6f99bdda1628d47f59dab20c85794b4ea6fad95
- linuxkit/containerd:95d5f0d2d8dc63bd87e96b7b39cf026cb86125c9
# pillar's logic rely on existence of getty and /etc/init.d/001-getty inside
- linuxkit/getty:e74e6cad132403d1a6d6cd25b136a7c69c99f3f7
Expand Down
2 changes: 1 addition & 1 deletion pkg/mkrootfs-ext4/make-rootfs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ IMGFILE=/rootfs.img
#
CMDLINE="$(cat boot/cmdline)"

sed -i'' -e "/set *linuxkit_cmdline=/s#=.*\$#=$CMDLINE#" EFI/BOOT/grub.cfg
sed -i'' -e '/set *linuxkit_cmdline=/s#=.*$#="'"$CMDLINE"'"#' EFI/BOOT/grub.cfg

ROOTFS_BLOCKSZ=4096
ROOTFS_PART_HEADROOM_BLOCKS=16000
Expand Down
2 changes: 1 addition & 1 deletion pkg/mkrootfs-squash/make-rootfs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ IMGFILE=/rootfs.img
#
CMDLINE="$(cat boot/cmdline)"

sed -i'' -e "/set *linuxkit_cmdline=/s#=.*\$#=$CMDLINE#" EFI/BOOT/grub.cfg
sed -i'' -e '/set *linuxkit_cmdline=/s#=.*$#="'"$CMDLINE"'"#' EFI/BOOT/grub.cfg

ROOTFS_BLOCKSZ=4096
ROOTFS_PART_HEADROOM_BLOCKS=16000
Expand Down

0 comments on commit 69b03fa

Please sign in to comment.