ログインパスワードを入力した後にシェルプロンプトが表示される前に何が起こりますか?そして、この間隔の時間を短縮する方法は何ですか?

ログインパスワードを入力した後にシェルプロンプトが表示される前に何が起こりますか?そして、この間隔の時間を短縮する方法は何ですか?

私は仮想マシン(ゲストはarm64のubuntu 20.04)でいくつかの実験をしており、x86_64ホスト(ubuntu 20.04)で実験しています。ログイン後、シェルプロンプトが表示されるまでに約1分かかります。
これがログです。

Ubuntu 20.04.2 LTS ab21q-ubuntu-20 ttyAMA0
ab21q-ubuntu-20 login: ckim
Password: 
Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-77-generic aarch64)

 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage

  System information as of Mon 06 Sep 2021 02:40:15 PM KST

  System load:             0.28
  Usage of /:              32.5% of 19.07GB
  Memory usage:            11%
  Swap usage:              0%
  Processes:               115
  Users logged in:         0
  IPv4 address for enp0s1: 10.0.2.15
  IPv6 address for enp0s1: fec0::5054:ff:fe12:3456

 * Super-optimized for small spaces - read how we shrank the memory
   footprint of MicroK8s to make it the smallest full K8s around.

   https://ubuntu.com/blog/microk8s-memory-optimisation

114 updates can be applied immediately.
45 of these updates are standard security updates.
To see these additional updates run: apt list --upgradable


Last login: Mon Sep  6 12:01:44 KST 2021 on ttyAMA0

qemuはx86_64でarm64をエミュレートするので、デフォルトでは遅いですが、パスワードを入力した後にシェルプロンプトが表示される前にOSまたは起動プロセスが何をしているのかを知りたいです。ログを見ると、ネットワーク経由でどのパッケージを更新できるかを確認するようです。Last login: Mon Sep 6 12:01:44 KST 2021 on ttyAMA0印刷後もまだ時間(〜30秒?)かかります。時間がかかるこのプロセスをスキップする方法はありますか? (/etc/sysctl.configファイルに何かを設定するのと同じ)

ベストアンサー1

""セクションを読みますman login bash(交換)。 「対話型ログインシェル」が最初に表示されます。$SHELLINVOCATION/etc/profile

何が起こっているのか注意してください

less /etc/profile
bash -x /etc/profile

おすすめ記事