Kernel: Rename cmdline UUID= to PARTUUID=

This makes more sense and behaves more like existing software.
This commit is contained in:
2024-11-21 20:38:50 +02:00
parent 15c55b8c7d
commit 1de6de975a
2 changed files with 4 additions and 4 deletions

View File

@@ -59,14 +59,14 @@ namespace Kernel
BAN::StringView entry;
RootType type;
if (root_path.size() >= 5 && root_path.substring(0, 5) == "UUID="_sv)
if (root_path.starts_with("PARTUUID="_sv))
{
entry = root_path.substring(5);
entry = root_path.substring(9);
if (entry.size() != 36)
panic("Invalid UUID '{}'", entry);
type = RootType::PartitionUUID;
}
else if (root_path.size() >= 5 && root_path.substring(0, 5) == "/dev/"_sv)
else if (root_path.starts_with("/dev/"_sv))
{
entry = root_path.substring(5);
if (entry.empty() || entry.contains('/'))