From 1dd6345561db3086c54b4cd0f8b8ba69abdb5f10 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Sun, 6 Sep 2009 23:15:23 +0000 Subject: [PATCH] If the boot volume is BFS and read-only mount it with the write_overlay. This allows for BFS based LiveCDs. Still this whole name matching feels hacky. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32976 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/fs/vfs_boot.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system/kernel/fs/vfs_boot.cpp b/src/system/kernel/fs/vfs_boot.cpp index dc43af9e9a..3f79973791 100644 --- a/src/system/kernel/fs/vfs_boot.cpp +++ b/src/system/kernel/fs/vfs_boot.cpp @@ -452,6 +452,10 @@ vfs_mount_boot_file_system(kernel_args* args) if (strcmp(bootPartition->ContentType(), "ISO9660 File System") == 0) { fsName = "iso9660:write_overlay:attribute_overlay"; readOnly = true; + } else if (bootPartition->IsReadOnly() + && strcmp(bootPartition->ContentType(), "Be File System") == 0) { + fsName = "bfs:write_overlay"; + readOnly = true; } TRACE(("trying to mount boot partition: %s\n", path.Path()));