Rocky Linux8をminimalでインストールするとログがない

1./var/log/messagesがない

Rocky Linux8(ver8.8)をインストールすると、/var/log/messagesがない。このため、postfix等のserviceのログが記録できない(/var/log以下のディレクトリにログが出ないという意味)

2.解決方法

rsyslogをインストールする。

$ sudo dnf -y install rsyslog

3.既知の問題らしい

Rocky LInuxのフォーラムサイトをのぞいてみると、同様にminimalでインストールするとrsyslogがないということで困っている人がいた

forums.rockylinux.org

forums.rockylinux.org

下の方のリンクを読んでみると以下のように書かれている

CentOS nor RHEL have minimal images for 8.4. It is likely they have ran into the same issues we have and just don’t see a need to continue working on it. Release Engineering has not been able to resolve this issue as rsyslog is not in BaseOS and we do not believe it to be a blocker for general availability. We will still release the minimal image, as is, missing rsyslog. We do plan on re-spinning ISO’s in the future for secure boot kernels. We may or may not solve this issue by then.
With that being said, if someone from the community wants to attempt to solve this issue in the mean time, you are more than welcome to do so. Until then, the minimal image will not contain rsyslog. And if you require rsyslog immediately on install, please use the DVD ISO or a kickstart/network install.

上記の文章 1 をざっくり要約すると、 「CentOSとかRHELでも同じ問題があるけど、直す必要はなさそうだから、直しません。直したければ自分で直して。今すぐインストールしたいならDVD版のISOイメージとかでインストールして」 とのこと。


  1. 以下のURLにバグとして報告されていたと思われるが現在ではアクセス不可能になっている。 https://bugs.rockylinux.org/show_bug.cgi?id=14