14 lines
590 B
Go
14 lines
590 B
Go
//go:build !linux
|
|
|
|
package main
|
|
|
|
// reinstallBootloader is Linux-only for now. On Windows the recommended path
|
|
// is to preserve the disk signature / partition GUIDs (clone-disk does this by
|
|
// raw-copying the leading sectors) so the existing BCD store still resolves,
|
|
// and otherwise run `bcdboot W:\Windows /s S: /f ALL` from a WinPE/recovery
|
|
// environment by hand.
|
|
func reinstallBootloader(diskPath, optsJSON string) string {
|
|
return "skipped: --reinstall-bootloader is only implemented on Linux; " +
|
|
"run bcdboot from Windows recovery, or grub-install from a Linux rescue system"
|
|
}
|