1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00

Kernel: Allow to boot from a partition with partition UUID

Instead of specifying the boot argument to be root=/dev/hdXY, now
one can write root=PARTUUID= with the right UUID, and if the partition
is found, the kernel will boot from it.

This feature is mainly used with GUID partitions, and is considered to
be the most reliable way for the kernel to identify partitions.
This commit is contained in:
Liav A 2020-12-31 13:17:03 +02:00 committed by Andreas Kling
parent d22d29a29a
commit 9dc8bea3e7
9 changed files with 162 additions and 62 deletions

View file

@ -46,7 +46,7 @@ public:
virtual bool is_valid() const override { return m_valid; };
private:
bool is_unused_entry(ByteBuffer) const;
bool is_unused_entry(Array<u8, 16>) const;
const GUIDPartitionHeader& header() const;
bool initialize();