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

Implement loose ends #3926

Closed
1 task
nicholasdille opened this issue Nov 8, 2022 · 1 comment
Closed
1 task

Implement loose ends #3926

nicholasdille opened this issue Nov 8, 2022 · 1 comment
Milestone

Comments

@nicholasdille
Copy link
Owner

nicholasdille commented Nov 8, 2022

  • Enable cgroup v2
    : "${cgroup_version:=v2}"
    current_cgroup_version="v1"
    if test "$(stat -fc %T /sys/fs/cgroup/)" == "cgroup2fs"; then
        current_cgroup_version="v2"
    fi
    if type update-grub >/dev/null 2>&1 && test "${cgroup_version}" == "v2" && test "${current_cgroup_version}" == "v1"; then
        if test -n "${WSL_DISTRO_NAME}"; then
            error "Unable to enable cgroup v2 on WSL. Please refer to https://github.com/microsoft/WSL/issues/6662."
            error "        Please rerun this script with CGROUP_VERSION=v1"
            exit 1
        fi
    
        echo "cgroup v2"
        echo "Configure grub"
        sed -i 's/GRUB_CMDLINE_LINUX=""/GRUB_CMDLINE_LINUX="systemd.unified_cgroup_hierarchy=1"/' "${prefix}/etc/default/grub"
        echo "Update grub"
        update-grub
    
        if ! ${no_cgroup_reboot}; then
            read -r -p "Reboot to enable cgroup v2 (y/N)"
            if test "${REPLY,,}" == "y"; then
                reboot
                exit
            fi
        fi
    fi
  • Support for docker_address_base and docker_address_size (see Support Docker registry mirror in Docker/buildx/buildkit/containerd #4615)
  • Support for docker_hub_mirror (see Support Docker registry mirror in Docker/buildx/buildkit/containerd #4615)
@nicholasdille nicholasdille added this to the v2.0.0 milestone Nov 8, 2022
@nicholasdille
Copy link
Owner Author

Migrated to uniget-org/cli#21

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant