2017-08-10 7 views
0

私はbuildrootにパッケージを追加します。特にfcron-3.2.1。ドキュメントは、パッケージのMakefile(fcron.mk)でこれを置くことを言う:Buildrootでカスタムパッケージを作成するユーザーを追加します

LIBFOO_USERS

Lists the users to create for this package, if it 
installs a program you want to run as a specific user (e.g. as a 
daemon, or as a cron-job). The syntax is similar in spirit to the 
makedevs one, and is described in the Chapter 24, Makeusers syntax 
documentation. This variable is optional. 

だから私のfcron.mkファイルは次のようになります。私がインストールしようとすると

############################################################# 
# 
# fcron 
# 
############################################################# 

FCRON_VERSION = 3.2.1 
FCRON_OVERRIDE_SRCDIR = ../fcron-3.2.1 
FCRON_OVERRIDE_RSYNC = YES 
FCRON_INSTALL_STAGING = YES 
FCRON_INSTALL_TARGET = YES 
FCRON_SITE_METHOD = local 
FCRON_CONF_OPTS = --enable-shared 
FCRON_SITE = www.nomad-digital.com 

define FCRON_USERS 
    fcron -1 fcron -1 * - - - Fcron daemon 
endef 

$(eval $(autotools-package)) 

buildrootで、私は次のエラーを取得します。

>>> fcron custom Installing to staging directory 
Checking if group fcron exists ... no. 
Would you like to add fcron in /etc/passwd with the following command ? 
    groupadd fcron 
If you use NYS, ldap, etc, you should add the group manually (say no here) 
Please answer with 'y' or 'n' (default: 'y'): y 
groupadd: Permission denied 
groupadd cannot lock /etc/group; try again later. 
Group "fcron" does not exists : please create it or choose another groupname with configure script. 

私は私ではない私のbuildrootイメージで、ホストマシン上のユーザーを作成しようとしている感がありますが、私はと答える場合でも、「n」を上記の、それはまだ通過していないだけに言いますユーザーを作成してください。 AM buildrootで必要なユーザーとグループを正しく作成していますか?

答えて

0

ユーザーとグループをホストに追加しようとするビルドシステムです。ステージングディレクトリにインストールされているとは思われません。 fcronビルドシステムでは、インストール中にユーザーとグループを追加しないでください。 fcron設定オプションからすぐに明らかにならない場合は、ディストリビューションがそれを解決する方法を見ることができます。同じ問題があります。場合によってはMakefile.amにパッチを適用し、FCRON_AUTORECONF = YESfcron.mkに設定する必要があります。

関連する問題