我正在努力弄清楚如何在我的Raspberry Pi上构建Ubuntu 18。似乎最好的方法是使用LXC容器。但是,当我snapcraft --destructive-mode github时,我会得到这个错误。
[ -e /root/core18/parts/boostrap/install/dev/null ] || mknod -m 666 /root/core18/parts/boostrap/install/dev/null c 1 3
mknod: /root/core18/parts/boostrap/install/dev/null: Operation not permitted
Makefile:12: recipe for target 'install' failed
make: *** [install] Error 1
Failed to run 'make install DESTDIR=/root/core18/parts/boostrap/install' for 'boostrap': Exited with code 2.
Verify that the part is using the correct parameters and try again.发生此问题是因为我在一个不允许执行此命令的非特权容器中运行。
一个解决方案似乎是配置容器以授予它该权限。,但我也想知道如何简单地.创建一个特权容器。这是一个发展方块。它不会去任何地方;)
文档似乎过时了,因为lxc-create已经不存在了。我试着简单地创建一个容器作为根,但这也没有任何作用。
如何创建一个特权LXC容器,该容器实际上可以制作这张照片?
发布于 2020-07-06 14:40:08
答案可能会让你吃惊:
lxc config set <container_name> security.privileged true
https://serverfault.com/questions/1024203
复制相似问题