我曾经在Ubuntu中使用overlayroot-chroot:
http://manpages.ubuntu.com/manpages/bionic/man8/overlayroot-chroot.8.html
但是现在我已经改用Debian了,它不在那里,sudo apt install overlayroot-chroot也找不到它。
怎么才能给Debian买呢?
发布于 2022-04-22 19:52:29
之所以出现这个二进制子包在2014年从Debian构建中删除,是因为此时没有在Debian上编译的overlayfs。当前的Debian 11内核确实提供了覆盖层。
然后显示Launchpad有这些来源出了问题:
tools 0.18比当前的打包版本更老。启动板可能缺少主干系列的发布信息,或者这个包链接到错误的云-initramfs-工具系列。
有0.47个。Debian从未超过0.18,这可能是一个巧合,也可能不是巧合。
你可以重建:
overlayroot中取消对包cloud-initramfs-tools-*/debian/control的构建部分的注释,并希望以后在0.18到0.47之间没有什么重要的调整。不管构建了什么额外的内容,您都应该只安装新构建的overlayroot_*.deb包(使用apt-get而不是dpkg,这样依赖关系仍然会被引入)。.tar.xz和.dsc文件,并使用:dpkg源-x云-initramfs-tools_0.47ubuntu1.dsc然后,在这两种情况下,遵循关于如何从源构建包的指南:https://wiki.debian.org/BuildingTutorial,包括步骤2(依赖项)和步骤4(如果需要编辑源)。
警告:没有测试,不能保证结果的行为。
另请参阅:
发布于 2022-04-26 18:37:21
下面是对@A.B程序提供的一些扩展的详细说明:
为Debian构建Ubuntu Overlayroot-chroot
sudo apt install overlayroot在Debian中不可用overlayroot (启用overlayfs)和overlayroot-chroot (允许对文件系统进行更改)是cloud-initramfs-tools的一部分创建一个DIR
mkdir ~/overlayroot; cd ~/overlayroot
cloud-initramfs-tools 0.47 (0.18不起作用!)wget -O cloud-initramfs-tools_0.47ubuntu1.dsc https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/cloud-initramfs-tools/0.47ubuntu1/cloud-initramfs-tools_0.47ubuntu1.dsc
wget -O cloud-initramfs-tools_0.47ubuntu1.tar.xz https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/cloud-initramfs-tools/0.47ubuntu1/cloud-initramfs-tools_0.47ubuntu1.tar.xzdpkg-source -x cloud-initramfs-tools_0.47ubuntu1.dsc
debuild -b -uc -us
sudo apt install -y ../overlayroot_0.47ubuntu1_all.deb
/etc/overlayroot.conf,例如:overlayroot_cfgdisk=“禁用”overlayroot="tmpfs:swap=1,recurse=0“https://unix.stackexchange.com/questions/699971
复制相似问题