Index: src/platform/update_engine/utils.h |
diff --git a/src/platform/update_engine/utils.h b/src/platform/update_engine/utils.h |
index 7983eecb146dce46e8e13ae48660159dd0ea7c84..e5d099f1c94dccbef9461d7ec70e0b90c986ec08 100644 |
--- a/src/platform/update_engine/utils.h |
+++ b/src/platform/update_engine/utils.h |
@@ -135,11 +135,19 @@ bool VectorIndexOf(const std::vector<T>& vect, const T& value, |
} |
} |
-// Returns the currently booted device. "/dev/sda1", for example. |
+// Returns the currently booted device. "/dev/sda3", for example. |
// This will not interpret LABEL= or UUID=. You'll need to use findfs |
// or something with equivalent funcionality to interpret those. |
const std::string BootDevice(); |
+// Returns the currently booted kernel device, "dev/sda2", for example. |
+// Client must pass in the boot device. The suggested calling convention |
+// is: BootKernelDevice(BootDevice()). |
+// This function works by doing string modification on boot_device. |
+// Returns empty string on failure. |
+const std::string BootKernelDevice(const std::string& boot_device); |
+ |
+ |
} // namespace utils |
// Class to unmount FS when object goes out of scope |