『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 3122|回复: 21

[技术探讨] m401a armbian homeassistant 安装后 ,docker cgroup version问题!!!

[复制链接]

1

主题

11

帖子

68

积分

注册会员

Rank: 2

积分
68
金钱
57
HASS币
0
发表于 2023-2-24 22:55:35 | 显示全部楼层 |阅读模式
本帖最后由 iyougame 于 2023-3-1 20:33 编辑

3.1日  在/boot/uEnv.txt中
加入
systemd.unified_cgroup_hierarchy=0




应该这个文件对应  grub的启动命令行


主要问题上cgroupversion 版本成2.0了  导致后面addon有问题,然后有点软件运行不了


网上搜索的 更改版本问题,总是不对   有没有大神知道怎么解决的!!!


Unsupported system - CGroup version
[color=var(--mdc-dialog-content-ink-color, rgba(0, 0, 0, 0.6))]System is unsupported because the wrong version of Docker CGroup is in use. Use the link to learn the correct version and how to fix this.
Unsupported system - Operating System
[color=var(--mdc-dialog-content-ink-color, rgba(0, 0, 0, 0.6))]
System is unsupported because the operating system in use is not tested or maintained for use with Supervisor. Use the link to which operating systems are supported and how to fix this.




回复

使用道具 举报

2

主题

97

帖子

1151

积分

论坛积极会员

积分
1151
金钱
1054
HASS币
0
发表于 2023-2-25 09:23:59 | 显示全部楼层
可以刷homeassistant supervised 这个版本了?
回复

使用道具 举报

1

主题

11

帖子

68

积分

注册会员

Rank: 2

积分
68
金钱
57
HASS币
0
 楼主| 发表于 2023-2-25 13:09:03 | 显示全部楼层
yiwlg 发表于 2023-2-25 09:23
可以刷homeassistant supervised 这个版本了?

上网搜索 m401a armbian homeassistant
回复

使用道具 举报

1

主题

11

帖子

68

积分

注册会员

Rank: 2

积分
68
金钱
57
HASS币
0
 楼主| 发表于 2023-2-25 23:01:02 | 显示全部楼层
本帖最后由 iyougame 于 2023-2-25 23:17 编辑

以下链接,
debian on arm does not support grub at most cases. you need to provide more powerful logic


https://github.com/home-assistant/supervised-installer/pull/201

To solve this issue comment the lines concerning grub + cgroup in /var/lib/dpkg/info/homeassistant-supervised.postinst.
Then just run apt autoremove and the installation will successfully conclude and stop nagging.




if [ -f /etc/default/grub ]
then
    if ! grep -q "systemd.unified_cgroup_hierarchy=false" /etc/default/grub; then
        info "Switching to cgroup v1"
        cp /etc/default/grub /etc/default/grub.bak
        sed -i 's/^GRUB_CMDLINE_LINUX_DEFAULT="/&systemd.unified_cgroup_hierarchy=false /' /etc/default/>
        update-grub
        touch /var/run/reboot-required
    fi
elif [ -f /boot/firmware/cmdline.txt ]
then
    if ! grep -q "systemd.unified_cgroup_hierarchy=false" /boot/firmware/cmdline.txt; then
        info "Switching to cgroup v1"
        sed -i.bak 's/$/ systemd.unified_cgroup_hierarchy=false/' /boot/firmware/cmdline.txt
        touch /var/run/reboot-required
    fi
else
    warn "Could not find /etc/default/grub or /boot/firmware/cmdline.txt failed to switch to cgroup v1"
fi
info "Within a few minutes you will be able to reach Home Assistant at:"
info "http://homeassistant.local:8123 or using the IP address of your"
info "machine: http://${IP_ADDRESS}:8123"
if [ -f /var/run/reboot-required ]
then
    warn "A reboot is required to apply changes to grub."
fi
回复

使用道具 举报

7

主题

104

帖子

876

积分

高级会员

Rank: 4

积分
876
金钱
772
HASS币
0
发表于 2023-2-26 10:46:21 | 显示全部楼层
改env.ini配置文件,前两天刷n1刚遇到
回复

使用道具 举报

1

主题

11

帖子

68

积分

注册会员

Rank: 2

积分
68
金钱
57
HASS币
0
 楼主| 发表于 2023-2-26 20:58:26 | 显示全部楼层
本帖最后由 iyougame 于 2023-2-26 21:13 编辑
kffnqtd 发表于 2023-2-26 10:46
改env.ini配置文件,前两天刷n1刚遇到

求 文件路径  m401a  boot/eEnv.txt 中找不到



我的ssh链接这个文件  内容 没有自动换行,多少回了   居然没看到 后面有这个

LINUX=/zImage
INITRD=/uInitrd
FDT=/dtb/amlogic/meson-g12a-s905l3a-m401a.dtb
APPEND=root=UUID=c74d2a18-a561-4250-8832-822c5bc29700 rootflags=compress=zstd:6 rootfstype=btrfs console>

后面还有。。。


net.ifnames=0 cgroup_enable=cpuset cgroup_memory=0 cgroup_enable=memory swapaccount=1

这个
t cgroup_memory=0  给过的  试试

结果  
root@armbian:~# stat -fc %T /sys/fs/cgroup/
cgroup2fs


还是v2的??


回复

使用道具 举报

1

主题

11

帖子

68

积分

注册会员

Rank: 2

积分
68
金钱
57
HASS币
0
 楼主| 发表于 2023-2-26 21:23:14 | 显示全部楼层
iyougame 发表于 2023-2-26 20:58
求 文件路径  m401a  boot/eEnv.txt 中找不到

systemd.unified_cgroup_hierarchy=false

添加了这个
回复

使用道具 举报

3

主题

119

帖子

1175

积分

金牌会员

Rank: 6Rank: 6

积分
1175
金钱
1056
HASS币
0
发表于 2023-2-26 22:45:40 | 显示全部楼层
我安装也遇到这问题,不管不行吗?有什么后遗症
回复

使用道具 举报

1

主题

11

帖子

68

积分

注册会员

Rank: 2

积分
68
金钱
57
HASS币
0
 楼主| 发表于 2023-2-27 17:29:14 | 显示全部楼层
hackyjso 发表于 2023-2-26 22:45
我安装也遇到这问题,不管不行吗?有什么后遗症

不知道你那有没有问题 我的加载项总是又问题Add-on is not running. Please start it first,加载项安装东西的时候特别慢 总是不提示成功,安装上启动也有问题
回复

使用道具 举报

3

主题

119

帖子

1175

积分

金牌会员

Rank: 6Rank: 6

积分
1175
金钱
1056
HASS币
0
发表于 2023-2-27 21:43:20 | 显示全部楼层
iyougame 发表于 2023-2-27 17:29
不知道你那有没有问题 我的加载项总是又问题Add-on is not running. Please start it first,加载项安装 ...

你这个是网络问题吧,我改用 container版本了,不用 superviser
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-20 16:06 , Processed in 0.054733 second(s), 31 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表