Skip to content

Commit

Permalink
fix: non-empty mounts need to be mounted to /mnt/host_
Browse files Browse the repository at this point in the history
  • Loading branch information
MauriceNino committed Jun 20, 2022
1 parent 962ecbe commit f87657a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/api/src/dynamic-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ export const getDynamicServerInfo = () => {
const deviceParts = blocks.filter(
block => block.type === 'part' && block.name.startsWith(device)
);
const isHost = deviceParts.every(({ mount }) => mount === '');
const isHost = deviceParts.every(
({ mount }) => mount == null || !mount.startsWith('/mnt/host_')
);

return isHost
? validMounts.find(({ mount }) => mount === '/')?.used
Expand Down

0 comments on commit f87657a

Please sign in to comment.