From 40db175b415280f242c1848e0cee1bf20d29d6e8 Mon Sep 17 00:00:00 2001
From: Daniel Barlow <dan@telent.net>
Date: Sun, 29 Dec 2024 13:26:45 +0000
Subject: [PATCH] complain if user attempting to tftpboot a ubifs

---
 modules/outputs/tftpboot.nix | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/outputs/tftpboot.nix b/modules/outputs/tftpboot.nix
index e4d6a03..9c6d038 100644
--- a/modules/outputs/tftpboot.nix
+++ b/modules/outputs/tftpboot.nix
@@ -57,6 +57,8 @@ in {
 
     system.outputs = rec {
       tftpboot =
+        # no ubifs on an mtd directly, it needs ubi volumes
+        assert config.rootfsType != "ubifs";
         let
           o = config.system.outputs;
           image = let choices = {