Gist 34752444d7ee747cabaddcb4715a5b10
✓ Published0🌍 Public
MMistyBlunch
Last edited Jun 1, 2020
Created on Jun 1, 2020
This example shows the boot-menu entries detected by `os-prober` for a dual-boot system with Grub on Linux and Windows, visualizing them as a collapsible tree of all available boot options. The code reads the detected operating systems from the `os-prober` package’s output, parsing the command-line data to build a hierarchical layout. It uses `d3.hierarchy` and `d3.tree` to position nodes, with `d3.forceSimulation` for optional drag behavior and `d3.select` to render SVG elements like circles and text labels. The visualization highlights the relationship between the main bootloader and the two OS partitions, with color-coded branches for each system’s entry.
AI-generated description