hzyitc / armbian-onecloud

Armbian for onecloud. 玩客云用armbian
1.11k stars 217 forks source link

新版的 Kernel 没有编译 apparmor 希望能补上 #53

Closed kuoruan closed 1 year ago

kuoruan commented 1 year ago

如题,安装 Home Assistant Supervised 的时候依赖 apparmor https://github.com/home-assistant/architecture/blob/master/adr/0014-home-assistant-supervised.md#supported-operating-system-system-dependencies-and-versions

kuoruan commented 1 year ago

另外,由于 Home Assistant 只支持 cgroup v1 当 cgroup v1 启用的时候,docker info 会报警告

# docker info
Client:
 Context:    default
 Debug Mode: false
 Plugins:
  app: Docker App (Docker Inc., v0.9.1-beta3)
  buildx: Docker Buildx (Docker Inc., v0.9.1-docker)
  compose: Docker Compose (Docker Inc., v2.10.2)

Server:
 Containers: 0
  Running: 0
  Paused: 0
  Stopped: 0
 Images: 0
 Server Version: 20.10.18
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 1
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 io.containerd.runtime.v1.linux runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 9cd3357b7fd7218e4aec3eae239db1f68a5a6ec6
 runc version: v1.1.4-0-g5fd4c4d
 init version: de40ad0
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 5.18.19-meson
 Operating System: Armbian 22.11.0-trunk Bullseye
 OSType: linux
 Architecture: armv7l
 CPUs: 4
 Total Memory: 990.5MiB
 Name: onecloud
 ID: PRTP:AYD2:TWUM:WJQY:2SXZ:JZOF:SDOE:LDPN:2VK5:4II7:QWVZ:VORR
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support

查了一下是需要 blkio https://stackoverflow.com/questions/69968135/warning-no-blkio-throttle-read-bps-device-support-what-is-this-message

https://www.kernel.org/doc/Documentation/cgroup-v1/blkio-controller.txt

kuoruan commented 1 year ago

自己编译了,关闭 issue。