[问题描述]: 执行reboot --wtmp-only,不重启,只写入记录 执行last reboot,查看最近重启记录,并没有看到上一步命令执行的记录 [环境信息]: 内核信息: # uname -r 5.17.0-1.an23.x86_64 操作系统信息: # cat /etc/os-release NAME="Anolis OS" VERSION="23" ID="anolis" VERSION_ID="23" PLATFORM_ID="platform:an23" PRETTY_NAME="Anolis OS 23" ANSI_COLOR="0;31" HOME_URL="https://openanolis.cn/" BUG_REPORT_URL="https://bugzilla.openanolis.cn/" 软件包信息: m [root@iZbp12nj7zzd2hcr70xlilZ ~]# yum info systemd-250.4-1.an23.x86_64 Last metadata expiration check: 1:29:21 ago on Thu 25 Aug 2022 01:48:11 PM CST. Installed Packages Name : systemd Version : 250.4 Release : 1.an23 Architecture : x86_64 Size : 14 M Source : systemd-250.4-1.an23.src.rpm Repository : @System Summary : System and Service Manager URL : https://www.freedesktop.org/wiki/Software/systemd License : LGPLv2+ and MIT and GPLv2+ Description : systemd is a system and service manager that runs as PID 1 and starts the rest : of the system. It provides aggressive parallelization capabilities, uses socket : and D-Bus activation for starting services, offers on-demand starting of : daemons, keeps track of processes using Linux control groups, maintains mount : and automount points, and implements an elaborate transactional dependency-based : service control logic. systemd supports SysV and LSB init scripts and works as a : replacement for sysvinit. Other parts of this package are a logging daemon, : utilities to control basic system configuration like the hostname, date, locale, : maintain a list of logged-in users, system accounts, runtime directories and : settings, and a logging daemons. [问题发生概率]:必现 [期望结果]: 命令正常执行,成功把记录下入/var/log/wtmp [实际结果]: 并没有把记录下入/var/log/wtmp [复现步骤]: 1、reboot --wtmp-only 2、last reboot