Armadilloフォーラム

at-debian-builderでのmakeで応答を求められるのをスキップしたい

fukasawa

2021年8月27日 18時59分

いつもお世話になっております。
at-debian-builderでのmake時に開始してからしばらくしてから、応答が求められるので、毎回"N"を入力する必要があります。
これをスキップすることは可能でしょうか?

...
Setting up libxcb-sync1:armhf (1.12-1) ...
Setting up dnsmasq (2.76-5+deb9u3) ...
 
Configuration file '/etc/dnsmasq.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ?  Your options are:
    Y or I  : install the package maintainer's version
    N or O  : keep your currently-installed version
      D     : show the differences between the versions
      Z     : start a shell to examine the situation
 The default action is to keep your current version.
*** dnsmasq.conf (Y/I/N/O/D/Z) [default=N] ? N
Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq.service -> /lib/systemd/system/dnsmasq.service.
Running in chroot, ignoring request.
Setting up exim4 (4.89-2+deb9u8) ...
Setting up libxcomposite1:armhf (1:0.4.4-2) ...
Setting up libxpm4:armhf (1:3.5.12-1) ...
...

以前の相談において、`/etc/dnsmasq.conf`を変更しています。
https://armadillo.atmark-techno.com/forum/armadillo/8396

これをimage作成時に含めたいので、`a600_resources/etc/dnsmasq.conf`に配置しています。

a600_resourcesに含めず、fixupでコピーするパターンもやってみましたが、うまく動きませんでした。

コメント

y.nakamura

2021年8月27日 20時12分

中村です。

> at-debian-builderでのmake時に開始してからしばらくしてから、応答が求められるので、毎回"N"を入力する必要があります。
> これをスキップすることは可能でしょうか?

だいぶ前の自分の投稿になりますが、
これ
https://armadillo.atmark-techno.com/forum/armadillo/3914#comment-7101
(2019年5月24日 14時28分の私の投稿)
の後半、
| [2] 追加パッケージの設定ファイル変更の問題
| について。
|
| これは、
| [x1-debian-builder: apt-getでインストールされる設定ファイルの変更方法について]
| https://users.atmark-techno.com/blog/1913/2575
| で説明されているような、設定ファイルの修正方法と警告に対するものです。
|
| 警告に都度[N]で応答するのは面倒ですし、操作を間違える可能性もあります。
| また、自前で用意(あるいは修正した)パッケージの設定ファイルが
| ある状態でパッケージをインストールするのは気持が悪いので、
| build.shを修正して、パッケージインストール後にパッケージの
| 設定ファイルを独自のもので上書きコピーするようにしました。

は参考になりませんでしょうか?

--
なかむら

fukasawa

2021年8月27日 21時53分

> | ある状態でパッケージをインストールするのは気持が悪いので、
> | build.shを修正して、パッケージインストール後にパッケージの
> | 設定ファイルを独自のもので上書きコピーするようにしました。

> | https://armadillo.atmark-techno.com/forum/armadillo/3914#comment-7101

build.shでもよいのですが、fixupでもできると書いてあったので、以下のコードをfixupの末尾に足しました。

cp -f /resources/dnsmasq.conf /etc/dnsmasq.conf

結果、スキップできるようになりました。
最初の投稿の前にもfixupも試していたのですが、何かが間違っていたようです。

fukasawa

2021年8月27日 21時54分

ありがとうございました。