diff --git a/Dockerfile.dapper b/Dockerfile.dapper index e006a476d..072134c48 100644 --- a/Dockerfile.dapper +++ b/Dockerfile.dapper @@ -62,7 +62,7 @@ ARG OS_REPO=burmilla ARG HOSTNAME_DEFAULT=burmilla ARG DISTRIB_ID=BurmillaOS -ARG KERNEL_VERSION=5.10.188-burmilla +ARG KERNEL_VERSION=5.10.211-burmilla ARG KERNEL_URL_amd64=https://github.com/burmilla/os-kernel/releases/download/v${KERNEL_VERSION}/linux-${KERNEL_VERSION}-x86.tar.gz ARG KERNEL_URL_arm64=https://github.com/burmilla/os-kernel/releases/download/v${KERNEL_VERSION}/linux-${KERNEL_VERSION}-arm64.tar.gz @@ -81,14 +81,14 @@ ARG OS_FIRMWARE=true ARG OS_BASE_URL_amd64=https://github.com/burmilla/os-base/releases/download/v2023.05-1/os-base_amd64.tar.xz ARG OS_BASE_URL_arm64=https://github.com/burmilla/os-base/releases/download/v2023.05-1/os-base_arm64.tar.xz -ARG OS_INITRD_BASE_URL_amd64=https://github.com/burmilla/os-initrd-base/releases/download/v2023.05-2/os-initrd-base-amd64.tar.gz -ARG OS_INITRD_BASE_URL_arm64=https://github.com/burmilla/os-initrd-base/releases/download/v2023.05-2/os-initrd-base-arm64.tar.gz +ARG OS_INITRD_BASE_URL_amd64=https://github.com/burmilla/os-initrd-base/releases/download/v2023.02.10-1/os-initrd-base-amd64.tar.gz +ARG OS_INITRD_BASE_URL_arm64=https://github.com/burmilla/os-initrd-base/releases/download/v2023.02.10-1/os-initrd-base-arm64.tar.gz -ARG SYSTEM_DOCKER_VERSION=17.06.109 +ARG SYSTEM_DOCKER_VERSION=17.06.107 ARG SYSTEM_DOCKER_URL_amd64=https://github.com/burmilla/os-system-docker/releases/download/${SYSTEM_DOCKER_VERSION}/docker-amd64-${SYSTEM_DOCKER_VERSION}.tgz ARG SYSTEM_DOCKER_URL_arm64=https://github.com/burmilla/os-system-docker/releases/download/${SYSTEM_DOCKER_VERSION}/docker-arm64-${SYSTEM_DOCKER_VERSION}.tgz -ARG USER_DOCKER_VERSION=24.0.7 +ARG USER_DOCKER_VERSION=24.0.9 ARG USER_DOCKER_ENGINE_VERSION=docker-${USER_DOCKER_VERSION} ARG AZURE_SERVICE=false diff --git a/README.md b/README.md index 19f0e4837..124933258 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Please submit any **BurmillaOS** bugs, issues, and feature requests to [burmilla ## License -Copyright (c) 2020 Project Burmilla +Copyright (c) 2020-2024 [BurmillaOS community](https://burmillaos.org) Copyright (c) 2014-2020 [Rancher Labs, Inc.](http://rancher.com) diff --git a/cmd/control/docker_init.go b/cmd/control/docker_init.go index 0ad41c783..0d89fe436 100644 --- a/cmd/control/docker_init.go +++ b/cmd/control/docker_init.go @@ -96,7 +96,7 @@ func dockerInitAction(c *cli.Context) error { } } - err = checkZfsBackingFS(cfg.Rancher.Docker.StorageDriver, cfg.Rancher.Docker.Graph) + err = checkZfsBackingFS(cfg.Rancher.Docker.StorageDriver, cfg.Rancher.Docker.DataRoot) if err != nil { log.Fatal(err) } diff --git a/cmd/control/user_docker.go b/cmd/control/user_docker.go index cb01b37fe..2b36249cc 100644 --- a/cmd/control/user_docker.go +++ b/cmd/control/user_docker.go @@ -186,14 +186,14 @@ func startDocker(cfg *config.CloudConfig) error { return err } - cmd := []string{"system-engine-rc", "exec", "--", info.ID, "env"} + cmd := []string{"system-docker-rc", "exec", "--", info.ID, "env"} log.Info(dockerCfg.AppendEnv()) cmd = append(cmd, dockerCfg.AppendEnv()...) cmd = append(cmd, dockerCommand...) cmd = append(cmd, args...) log.Infof("Running %v", cmd) - return syscall.Exec("/usr/bin/system-engine-rc", cmd, os.Environ()) + return syscall.Exec("/usr/bin/system-docker-rc", cmd, os.Environ()) } func waitForPid(service string, project *project.Project) (int, error) { diff --git a/cmd/network/network.go b/cmd/network/network.go index 010771b5d..8d7de5e54 100644 --- a/cmd/network/network.go +++ b/cmd/network/network.go @@ -63,10 +63,12 @@ func ApplyNetworkConfig(cfg *config.CloudConfig) { cfg.Rancher.Network.DHCPTimeout = cfg.Rancher.Defaults.Network.DHCPTimeout } + // Always generate dhcpcd.conf to support NTP and hostname configuration coming from DHCP + generateDhcpcdFiles(cfg) + // In order to handle the STATIC mode in Wi-Fi network, we have to update the dhcpcd.conf file. // https://wiki.archlinux.org/index.php/dhcpcd#Static_profile if len(cfg.Rancher.Network.WifiNetworks) > 0 { - generateDhcpcdFiles(cfg) generateWpaFiles(cfg) } diff --git a/config/docker_config_test.go b/config/docker_config_test.go index a7e118690..c646b8e3b 100644 --- a/config/docker_config_test.go +++ b/config/docker_config_test.go @@ -39,10 +39,10 @@ func TestGenerateEngineOptsString(t *testing.T) { testContains(t, fmt.Sprint(generateEngineOptsSlice(EngineOpts{ Host: []string{ - "unix:///var/run/system-engine.sock", + "unix:///var/run/system-docker.sock", "unix:///var/run/docker.sock", }, - })), "--host unix:///var/run/system-engine.sock", "--host unix:///var/run/docker.sock") + })), "--host unix:///var/run/system-docker.sock", "--host unix:///var/run/docker.sock") testContains(t, fmt.Sprint(generateEngineOptsSlice(EngineOpts{ LogOpts: map[string]string{ diff --git a/config/schema.go b/config/schema.go index 6f682ee11..dec5fc1a3 100644 --- a/config/schema.go +++ b/config/schema.go @@ -132,7 +132,7 @@ var schema = `{ "debug": {"type": ["boolean", "null"]}, "exec_root": {"type": "string"}, "group": {"type": "string"}, - "graph": {"type": "string"}, + "data_root": {"type": "string"}, "host": {"type": "array"}, "live_restore": {"type": ["boolean", "null"]}, "log_driver": {"type": "string"}, diff --git a/config/types.go b/config/types.go index 625eb625f..ba63c88bb 100644 --- a/config/types.go +++ b/config/types.go @@ -18,14 +18,14 @@ const ( StateDir = "/state" RosBin = "/usr/bin/ros" SysInitBin = "/usr/bin/ros-sysinit" - SystemDockerHost = "unix:///var/run/system-engine.sock" + SystemDockerHost = "unix:///var/run/system-docker.sock" DockerHost = "unix:///var/run/docker.sock" ImagesPath = "/usr/share/ros" InitImages = "images-init.tar" SystemImages = "images-system.tar" UserImages = "images-user.tar" Debug = false - SystemDockerBin = "/usr/bin/system-engine" + SystemDockerBin = "/usr/bin/system-docker" DefaultDind = "burmilla/os-dind:17.12.1" DetachLabel = "io.rancher.os.detach" @@ -171,7 +171,7 @@ type EngineOpts struct { Debug *bool `yaml:"debug,omitempty" opt:"debug"` ExecRoot string `yaml:"exec_root,omitempty" opt:"exec-root"` Group string `yaml:"group,omitempty" opt:"group"` - Graph string `yaml:"graph,omitempty" opt:"graph"` + DataRoot string `yaml:"data_root,omitempty" opt:"data-root"` Host []string `yaml:"host,omitempty" opt:"host"` InsecureRegistry []string `yaml:"insecure_registry" opt:"insecure-registry"` LiveRestore *bool `yaml:"live_restore,omitempty" opt:"live-restore"` diff --git a/images/02-console/Dockerfile b/images/02-console/Dockerfile index fbf9129e1..7b41e20c2 100644 --- a/images/02-console/Dockerfile +++ b/images/02-console/Dockerfile @@ -4,7 +4,7 @@ COPY build/sshd_config.append.tpl /etc/ssh/ COPY build/lsb-release /etc/ RUN apt-get update \ - && apt-get install -y --no-install-recommends fdisk ipset iptables openssh-server rsync locales \ + && apt-get install -y --no-install-recommends fdisk eject ipset iptables openssh-server rsync locales \ sudo less curl ca-certificates psmisc htop kmod iproute2 \ net-tools bash-completion wget \ nano open-iscsi iputils-ping nvi \ diff --git a/os-config.tpl.yml b/os-config.tpl.yml index b1947de95..3d3a65397 100644 --- a/os-config.tpl.yml +++ b/os-config.tpl.yml @@ -79,7 +79,7 @@ rancher: restart: false graph: /var/lib/system-docker group: root - host: ["unix:///var/run/system-engine.sock"] + host: ["unix:///var/run/system-docker.sock"] userland_proxy: false console: {{.OS_CONSOLE}} cloud_init: @@ -123,7 +123,7 @@ rancher: volumes: - /usr/bin/ros:/usr/bin/ros:ro - /usr/bin/system-docker:/usr/bin/system-docker:ro - - /usr/bin/system-engine-rc:/usr/bin/system-engine-rc:ro + - /usr/bin/system-docker-rc:/usr/bin/system-docker-rc:ro system-volumes: image: {{.OS_REPO}}/os-base:{{.VERSION}}{{.SUFFIX}} command: echo @@ -342,7 +342,7 @@ rancher: privileged: true restart: always volumes: - - /var/run/system-engine.sock:/var/run/docker.sock + - /var/run/system-docker.sock:/var/run/docker.sock environment: DOCKER_API_VERSION: "1.22" udev-cold: @@ -403,7 +403,7 @@ rancher: restart: false graph: /var/lib/system-docker group: root - host: ["unix:///var/run/system-engine.sock"] + host: ["unix:///var/run/system-docker.sock"] pid_file: /var/run/system-docker.pid exec_root: /var/run/system-docker config_file: /etc/docker/system-docker.json diff --git a/pkg/dfs/scratch.go b/pkg/dfs/scratch.go index 1e3c1723c..4cb92f159 100644 --- a/pkg/dfs/scratch.go +++ b/pkg/dfs/scratch.go @@ -400,7 +400,7 @@ func ParseConfig(config *Config, args ...string) []string { if err != nil { config.BridgeMtu = mtu } - } else if strings.HasPrefix(arg, "-g") || strings.HasPrefix(arg, "--graph") { + } else if strings.HasPrefix(arg, "--data-root") { config.GraphDirectory = GetValue(i, args) } } diff --git a/pkg/init/recovery/recovery.go b/pkg/init/recovery/recovery.go index 0bb2e3fae..fbb32b71c 100644 --- a/pkg/init/recovery/recovery.go +++ b/pkg/init/recovery/recovery.go @@ -75,9 +75,9 @@ func Recovery(initFailure error) { Bridge: "none", StorageDriver: "overlay2", Restart: &[]bool{false}[0], - Graph: "/var/lib/recovery-docker", + DataRoot: "/var/lib/recovery-docker", Group: "root", - Host: []string{"unix:///var/run/system-engine.sock"}, + Host: []string{"unix:///var/run/system-docker.sock"}, UserlandProxy: &[]bool{false}[0], }, }