From ab728d3ae7089d46baaa9a2df496bfba3020a689 Mon Sep 17 00:00:00 2001 From: whoalin1 Date: Wed, 7 Oct 2026 01:28:25 +0300 Subject: [PATCH 1/2] fix(linux): hide /boot and /boot/efi from disk list Signed-off-by: whoalin1 --- lib/OperatingSystems/Linux.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OperatingSystems/Linux.php b/lib/OperatingSystems/Linux.php index be1537a0..017cde0b 100644 --- a/lib/OperatingSystems/Linux.php +++ b/lib/OperatingSystems/Linux.php @@ -528,7 +528,7 @@ public function getDiskInfo(): array { foreach ($matches['Filesystem'] as $i => $filesystem) { if (in_array($matches['Type'][$i], ['tmpfs', 'devtmpfs', 'squashfs', 'overlay', 'efivarfs'], false)) { continue; - } elseif (in_array($matches['Mounted'][$i], ['/etc/hostname', '/etc/hosts'], false)) { + } elseif (in_array($matches['Mounted'][$i], ['/etc/hostname', '/etc/hosts', '/boot', '/boot/efi'], false)) { continue; } From 112af8922aeded7678c0045c1a2290d73b197c7d Mon Sep 17 00:00:00 2001 From: whoalin1 Date: Wed, 7 Oct 2026 01:28:35 +0300 Subject: [PATCH 2/2] test: add /boot and /boot/efi rows to linux_df_tp fixture Signed-off-by: whoalin1 --- tests/data/linux_df_tp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/data/linux_df_tp b/tests/data/linux_df_tp index e277e53b..7147d888 100644 --- a/tests/data/linux_df_tp +++ b/tests/data/linux_df_tp @@ -2,6 +2,8 @@ Filesystem Type 1024-blocks Used Available udev devtmpfs 4052408 0 4052408 0% /dev tmpfs tmpfs 816800 7592 809208 1% /run /dev/mapper/homestead--vg-root ext4 56422560 6205468 47321220 12% / +/dev/sda2 vfat 524272 34864 489408 7% /boot/efi +/dev/sda1 ext4 999320 245108 685400 27% /boot tmpfs tmpfs 4084000 8 4083992 1% /dev/shm tmpfs tmpfs 5120 0 5120 0% /run/lock tmpfs tmpfs 4084000 0 4084000 0% /sys/fs/cgroup