Portál AbcLinuxu, 30. dubna 2025 17:48
Čítaj Kexec: rychlý restart bez restartu (root.cz).
apt install kexec-toolsPri otázke zvolíme možnosť áno:
┌───────────────────────┤ Nastavovanie kexec-tools ├────────────────────────┐ │ │ │ If you choose this option, a system reboot will trigger a restart into a │ │ kernel loaded by kexec instead of going through the full system boot │ │ loader process. │ │ │ │ Should kexec-tools handle reboots (sysvinit only)? │ │ │ │ <Áno> <Nie> │ │ │ └───────────────────────────────────────────────────────────────────────────┘
Pri tomto dôjde k ukončeniu služieb, odpojený súborového systému na read-write.
systemctl start kexec.target
Východískovo sa spúšťa pri tomto spúštaní aktuálny systém. Ak chceme iný, tak musíme editovať súbor /etc/default/kexec.
kexec --load /vmlinuz --initrd=/initrd.img --reuse-cmdline kexec --exec
Tiskni
Sdílej:
# systemctl kexec
No entry suitable as default, refusing to guess.
Dá se s tím něco dělat?
Děkuji.
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.