From b0775ebf2c776c7133cf74c6259de9dc9573786c Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 10 Jan 2023 16:41:45 +0400 Subject: [PATCH] feat: add ISO wipe GRUB boot option This simply uses existing `talos.experimental.wipe` kernel flag to wipe the currently installed Talos. This allows to use Talos ISO to reset the system disk and revert back to maintenance mode. Signed-off-by: Andrey Smirnov --- cmd/installer/cmd/grub.iso.cfg | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmd/installer/cmd/grub.iso.cfg b/cmd/installer/cmd/grub.iso.cfg index 03e8f0a5d..d2c3d1052 100644 --- a/cmd/installer/cmd/grub.iso.cfg +++ b/cmd/installer/cmd/grub.iso.cfg @@ -12,3 +12,10 @@ menuentry "Talos ISO" { linux /boot/vmlinuz {{ .Cmdline }} initrd /boot/initramfs.xz } + +menuentry "Reset Talos installation" { + set gfxmode=auto + set gfxpayload=text + linux /boot/vmlinuz {{ .Cmdline }} talos.experimental.wipe=system + initrd /boot/initramfs.xz +}