From 0f8d40d7f61a9f7b5f69214b0929b98fa3977285 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Thu, 12 Jul 2018 09:27:32 +0200 Subject: [PATCH] add /update/mbr --- update.go | 1 + 1 file changed, 1 insertion(+) diff --git a/update.go b/update.go index cda7c26..95aca61 100644 --- a/update.go +++ b/update.go @@ -148,6 +148,7 @@ func initUpdate() error { } http.HandleFunc("/update/boot", nonConcurrentUpdateHandler(mustFindRootDevice()+"1")) + http.HandleFunc("/update/mbr", nonConcurrentUpdateHandler(mustFindRootDevice())) http.HandleFunc("/update/root", nonConcurrentUpdateHandler(mustFindRootDevice()+inactiveRootPartition)) http.HandleFunc("/update/switch", nonConcurrentSwitchHandler(inactiveRootPartition)) // bakery updates only the boot partition, which would reset the active root