我正在按照"man“文档配置一个file chroot。根据schroot的命令,我可以使用一个文件系统树存档文件,并配置一个schroot作为文件系统。例如,在/etc/schroot.conf中,存在以下示例:
#[lenny-file]
#description=Debian lenny (oldstable)
#file=/srv/chroot/lenny.tar.gz
#location=/lenny
#groups=sbuild所以我把它改了一点:
[stretch-file]
description=Debian Stretch
file=/tmp/jail.tar
location=/jail
groups=sbuild当然,/tmp/jail.tar存在,并且包含最小的引导扩展。
当尝试使用schroot -c chroot:stretch-file输入chroot时,我会收到以下警告:
W: line 77 [stretch-file]: Obsolete key ‘location’ used
I: This option has been removed, and no longer has any effect
W: line 76 [stretch-file] file: Configuration key name ‘file’ is not a permitted name.我想有趣的是Configuration key name ‘file’ is not a permitted name. --怎么可能呢?手册是错的吗?还是我做错了什么?
发布于 2017-08-28 14:24:46
问题中配置中缺少的链接是关键的type=。这意味着配置应该如下所示:
[stretch-file]
description=Debian Stretch
type=file
file=/tmp/jail.tar
location=/jail
groups=sbuild由于某些原因,/etc/schroot/schroot.conf中的示例未能包含该键。
https://unix.stackexchange.com/questions/388811
复制相似问题