Bug 1988 - [Anolis23-iso][anck][x86_64]reboot --wtmp-only 写入/var/log/wtmp失败
Summary: [Anolis23-iso][anck][x86_64]reboot --wtmp-only 写入/var/log/wtmp失败
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.0
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: happy_orange
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-25 15:29 UTC by gitpush
Modified: 2023-05-04 10:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gitpush alibaba_cloud_group 2022-08-25 15:29:36 UTC
[问题描述]:
执行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