Disk (Haiku): fixes /boot being removed by hideFolders

This commit is contained in:
Carter Li
2026-10-02 21:18:20 +08:00
parent 782b7b8fd1
commit 109644ec77
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -15,6 +15,10 @@ const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks) {
continue;
}
if (!ffStrSet(fs.device_name)) {
continue;
}
node_ref node(fs.dev, fs.root);
BDirectory dir(&node);
BPath path(&dir);
+2
View File
@@ -435,6 +435,8 @@ void ffInitDiskOptions(FFDiskOptions* options) {
ffStrbufInit(&options->folders);
#if _WIN32 || __APPLE__ || __ANDROID__
ffStrbufInit(&options->hideFolders);
#elif __HAIKU__
ffStrbufInitS(&options->hideFolders, "/esp"); // /boot on haiku is the system volume
#else
ffStrbufInitS(&options->hideFolders, "/efi:/boot:/boot/*");
#endif