我有个小问题我解决不了。我正在为我的Linux服务器编写一个更新/重新启动的剧本,并且我希望确保只有当另一个主机在同一个剧本中运行时,任务才会被执行。project-live-db01 is in this ansible run >>>
serial: 1 - name: Unconditionally rebootthe machine with all defaults pos
我在运行在hypervs上的Ubuntu20.04焦点Fossa VMS上安装了linux内核。问题是,我还配置了无人值守的升级配置,并注意到它将内核升级为linux-泛型,而不是更新已经安装的linux-azure。因此,在下一次重新启动时,我得到了一台带有linux通用的机器:
reboot system boot 5.4.0-37-generic Wed Jun 24 13:08 still runningreboot system boot 5.4.0-37-ge
我需要使用reboot()系统调用(用ARM重启内核2.6.29 ),并且我尝试了以下代码:#include <linux/reboot.h>int main() reboot(LINUX_REBOOT_CMD_RESTART);它工作得很好!process*/
/* Char dev driver open
使用上一次内核更新(由unattended-upgrades安装),/var/run/reboot-required和/var/run/reboot-required.pkgs文件还没有在Intel系统上创建image for version 5.15.0 on ARMv8 SMP
文件的Cat /var/run/reboot-required和/var/run/reboot-required.pkgs