11.5. 自動更新の無効化
手動更新を実行するには、自動更新をオフにする必要があります。これは、以下の手順に記載のいずれかの方法を選択して実行できます。
手順
コンテナービルドのタイマーを無効にします。
systemctl maskコマンドを実行します。$ systemctl mask bootc-fetch-apply-updates.timersystemdタイマーファイルを変更します。systemdの "ドロップイン" を使用して、タイマーをオーバーライドします。次の例では、更新は週に 1 回スケジュールされています。次の内容で
updates.confファイルを作成します。[Timer] # Clear previous timers OnBootSec= OnBootSec=1w OnUnitInactiveSec=1w作成したディレクトリーにファイルを追加します。
$ mkdir -p /usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d $ cp updates.conf /usr/lib/systemd/system/bootc-fetch-apply-updates.timer.d