Debian SqueezeをWheezyにアップグレードする - confファイルを維持する必要がありますか、それとも交換する必要がありますか?

Debian SqueezeをWheezyにアップグレードする - confファイルを維持する必要がありますか、それとも交換する必要がありますか?

現在アップグレード中です。真新しい次のようにDebian 6(Squeeze)〜7(Wheezy)Linodeサーバーを実行します。

  1. 現在のシステムアップデート:

    sudo apt-get update && sudo apt-get upgrade
    
  2. /etc/apt/sources.listファイル内のすべての「squeeze」を「wheezy」に置き換えます。

  3. アップグレードプロセスを実行します。

    sudo apt-get update && sudo apt-get dist-upgrade
    

最後に、最後のコマンド(例:#3)を実行した後、アップグレード中に2つの質問しかありませんでした。


(1)

Configuration file `/etc/default/rcS'
 ==> 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.
*** rcS (Y/I/N/O/D/Z) [default=N] ?

修正する:違いは次のとおりです/etc/default/rcS

--- /etc/default/rcS    2011-11-25 23:11:55.000000000 +0000
+++ /etc/default/rcS.dpkg-new   2012-08-31 20:14:04.000000000 +0000
@@ -7,11 +7,18 @@
 #
 # This file belongs to the "initscripts" package.

-TMPTIME=0
-SULOGIN=no
-DELAYLOGIN=yes
-UTC=yes
-VERBOSE=no
-FSCKFIX=no
-RAMRUN=no
-RAMLOCK=no
+# delete files in /tmp during boot older than x days.
+# '0' means always, -1 or 'infinite' disables the feature
+#TMPTIME=0
+
+# spawn sulogin during boot, continue normal boot if not used in 30 seconds
+#SULOGIN=no
+
+# do not allow users to log in until the boot has completed
+#DELAYLOGIN=no
+
+# be more verbose during the boot process
+#VERBOSE=no
+
+# automatically repair filesystems with inconsistencies during boot
+#FSCKFIX=no

(2)

Configuration file `/etc/dhcp/dhclient.conf'
 ==> Modified (by you or by a script) since installation.
 ==> Package distributor has shipped an updated version.
   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.
*** dhclient.conf (Y/I/N/O/D/Z) [default=N] ?

修正する:違いは次のとおりです/etc/dhcp/dhclient.conf

--- /etc/dhcp/dhclient.conf     2011-11-25 14:38:21.000000000 +0000
+++ /etc/dhcp/dhclient.conf.dpkg-new    2012-09-14 03:24:53.000000000 +0000
@@ -14,6 +14,7 @@
 option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;

 #send host-name "andare.fugue.com";
+send host-name = gethostname();
 #send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
 #send dhcp-lease-time 3600;
 #supersede domain-name "fugue.com home.vix.com";
@@ -21,10 +22,8 @@
 request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        netbios-name-servers, netbios-scope, interface-mtu,
-       rfc3442-classless-static-routes, ntp-servers,
-        dhcp6.domain-search, dhcp6.fqdn,
-        dhcp6.name-servers, dhcp6.sntp-servers;
-require subnet-mask, domain-name-servers, host-name;
+       rfc3442-classless-static-routes, ntp-servers;
+#require subnet-mask, domain-name-servers;
 #timeout 60;
 #retry 60;
 #reboot 10;

それでは、それぞれのケースで私の答えは何ですか?YまたはN

メモ:これは新しいVMで、ホスト名とFQDNを設定してすぐにWheezyにアップグレードしました。

ベストアンサー1

管理者が変更した設定を上書きしないのは、Debian ポリシーの一部です。代わりに、ifがメッセージを表示し、何をすべきかを尋ねます。通常、違い(D)を確認し、まだわからない場合は、シェル(Z)を実行して確認します。また、シェルを使用してより複雑な操作(変更のマージなど)を実行することもできます。

シェルを使用して移動すると、関連する構成.dpkg-*ファイルのさまざまなバージョンが表示されます。たとえば、新しいバージョン()が何であるかを確認できます.dpkg-new。以前のバージョンを編集して変更をマージすることができます。そうする場合は、シェルを終了するときに「いいえ」を選択する必要があります(おそらくdiffをもう一度確認して編集内容を確認した後になります)。

/etc/default/rcS初期起動のためのさまざまな設定が含まれています。多分Linodeはあなたのためにそれを変えるかもしれません。違いが何であるかを調べるのが役立ちます。

/etc/dhcp/dhclient.confコンピュータのDHCPクライアントの設定が含まれています。私はLinodeがVMがネットワークで動作するように(またはよりうまく機能するように)これを設定したと思います。おそらく彼らが設定した内容を維持したいと思うかもしれません(しかし、新しいバージョンでマージしたいものがあるかどうか違いを確認してください)。

時々、設定が変更されたことを知らせることがあります。これは、あなたとLinodeの両方が設定ファイルを変更していないことを示します。これは通常関連パッケージのバグですが(管理者スクリプトはdpkg設定ファイルを変更します)、Squeezeバージョンのバグであるため、報告する価値がなくなる可能性があります。

おすすめ記事