From 67e8a2dd4bdc3a38d887dcf78fed3bac1da4ffa9 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 3 Jun 2023 21:06:42 +0200 Subject: [PATCH] kernel: Do not automatically read the MBR partition table from /dev/cdrom Since ff952cfe16 made /dev mounted from userspace, /dev/cdrom does not exist when ATA drives are scanned. --- kernel/src/arch/x86_64/disk/ATA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/src/arch/x86_64/disk/ATA.cpp b/kernel/src/arch/x86_64/disk/ATA.cpp index 3a0d4837..1bcf86bf 100644 --- a/kernel/src/arch/x86_64/disk/ATA.cpp +++ b/kernel/src/arch/x86_64/disk/ATA.cpp @@ -339,8 +339,8 @@ namespace ATA } // FIXME: Do not hardcode the path like this. - auto inode = VFS::resolve_path("/dev/cdrom", Credentials {}).value(); - MBR::identify(inode); + /* auto inode = VFS::resolve_path("/dev/cdrom", Credentials {}).value(); + MBR::identify(inode); */ } }