fastboop-schema 0.0.1-rc.21

Schema types for fastboop device and boot profiles.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
#![cfg_attr(not(feature = "std"), no_std)]

extern crate alloc;

use alloc::collections::BTreeMap;
use alloc::string::String;
use alloc::vec::Vec;
pub use gibblox_pipeline::{
    PipelineSource as BootProfileArtifactSource,
    PipelineSourceAndroidSparseImgSource as BootProfileArtifactSourceAndroidSparseImgSource,
    PipelineSourceCasync as BootProfileArtifactSourceCasync,
    PipelineSourceCasyncSource as BootProfileArtifactSourceCasyncSource,
    PipelineSourceFileSource as BootProfileArtifactSourceFileSource,
    PipelineSourceGpt as BootProfileArtifactSourceGpt,
    PipelineSourceGptSource as BootProfileArtifactSourceGptSource,
    PipelineSourceHttpSource as BootProfileArtifactSourceHttpSource,
    PipelineSourceMbr as BootProfileArtifactSourceMbr,
    PipelineSourceMbrSource as BootProfileArtifactSourceMbrSource,
    PipelineSourceTar as BootProfileArtifactSourceTar,
    PipelineSourceTarSource as BootProfileArtifactSourceTarSource,
    PipelineSourceXzSource as BootProfileArtifactSourceXzSource,
};
use serde::{Deserialize, Serialize};

#[cfg(feature = "schema")]
use schemars::JsonSchema;

/// DevPro v0 schema root.
#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct DeviceProfile {
    pub id: String,
    pub display_name: Option<String>,
    pub devicetree_name: String,
    pub r#match: Vec<MatchRule>,
    pub probe: Vec<ProbeStep>,
    pub boot: Boot,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct MatchRule {
    pub fastboot: FastbootMatch,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct FastbootMatch {
    pub vid: u16,
    pub pid: u16,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub enum ProbeStep {
    #[serde(untagged)]
    FastbootGetvarEq(FastbootGetvarEq),
    #[serde(untagged)]
    FastbootGetvarStartsWith(FastbootGetvarStartsWith),
    #[serde(untagged)]
    FastbootGetvarNotEq(FastbootGetvarNotEq),
    #[serde(untagged)]
    FastbootGetvarExists(FastbootGetvarExists),
    #[serde(untagged)]
    FastbootGetvarNotExists(FastbootGetvarNotExists),
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct FastbootGetvarEq {
    #[serde(rename = "fastboot.getvar")]
    pub name: String,
    pub equals: String,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct FastbootGetvarStartsWith {
    #[serde(rename = "fastboot.getvar")]
    pub name: String,
    pub starts_with: String,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct FastbootGetvarNotEq {
    #[serde(rename = "fastboot.getvar")]
    pub name: String,
    pub not_equals: String,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct FastbootGetvarExists {
    #[serde(rename = "fastboot.getvar")]
    pub name: String,
    /// presence of the key means "exists" check
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub exists: Option<ExistsFlag>,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct FastbootGetvarNotExists {
    #[serde(rename = "fastboot.getvar")]
    pub name: String,
    /// presence of the key means "not_exists" check
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub not_exists: Option<NotExistsFlag>,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct ExistsFlag;

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct NotExistsFlag;

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct Boot {
    pub fastboot_boot: BootPayload,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct BootPayload {
    #[serde(alias = "bootimg")]
    pub android_bootimg: AndroidBootImage,
}

#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct InjectMac {
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub wifi: Option<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bluetooth: Option<String>,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct AndroidBootImage {
    pub header_version: u32,
    pub page_size: u32,
    #[serde(default)]
    pub base: Option<u64>,
    #[serde(default)]
    pub kernel_offset: Option<u64>,
    #[serde(default)]
    pub dtb_offset: Option<u64>,
    #[serde(default)]
    pub limits: Option<BootLimits>,
    pub kernel: AndroidKernel,
    #[serde(default)]
    pub initrd: Option<AndroidInitrd>,
    #[serde(default)]
    pub cmdline_append: Option<String>,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct BootLimits {
    pub max_kernel_bytes: Option<u64>,
    pub max_initrd_bytes: Option<u64>,
    pub max_total_bytes: Option<u64>,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct AndroidKernel {
    pub encoding: KernelEncoding,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(rename_all = "kebab-case")]
pub enum KernelEncoding {
    #[serde(rename = "image")]
    Image,
    #[serde(rename = "image+dtb")]
    ImageDtb,
    #[serde(rename = "image.gz")]
    ImageGzip,
    #[serde(rename = "image.gz+dtb")]
    ImageGzipDtb,
    #[serde(rename = "image.lz4")]
    ImageLz4,
    #[serde(rename = "image.lz4+dtb")]
    ImageLz4Dtb,
    #[serde(rename = "image.zst")]
    ImageZstd,
    #[serde(rename = "image.zst+dtb")]
    ImageZstdDtb,
}

impl KernelEncoding {
    pub fn compression(&self) -> Compression {
        match self {
            KernelEncoding::Image | KernelEncoding::ImageDtb => Compression::None,
            KernelEncoding::ImageGzip | KernelEncoding::ImageGzipDtb => Compression::Gzip,
            KernelEncoding::ImageLz4 | KernelEncoding::ImageLz4Dtb => Compression::Lz4,
            KernelEncoding::ImageZstd | KernelEncoding::ImageZstdDtb => Compression::Zstd,
        }
    }

    pub fn append_dtb(&self) -> bool {
        matches!(
            self,
            KernelEncoding::ImageDtb
                | KernelEncoding::ImageGzipDtb
                | KernelEncoding::ImageLz4Dtb
                | KernelEncoding::ImageZstdDtb
        )
    }
}

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(rename_all = "kebab-case")]
pub enum Compression {
    None,
    Gzip,
    Lz4,
    Zstd,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct AndroidInitrd {
    #[serde(default)]
    pub compress: Option<Compression>,
}

/// Authoring schema for boot profiles (YAML/JSON).
///
/// This shape keeps DT overlays as inline DTS/DTSO text. Runtime code should consume
/// [`BootProfile`], where overlays are compiled DTB/DTBO blobs.
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfileManifest {
    pub id: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub display_name: Option<String>,
    pub rootfs: BootProfileRootfs,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kernel: Option<BootProfileArtifactPathSource>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dtbs: Option<BootProfileArtifactPathSource>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub dt_overlays: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub extra_cmdline: Option<String>,
    #[serde(default, skip_serializing_if = "BootProfileManifestStage0::is_empty")]
    pub stage0: BootProfileManifestStage0,
}

impl BootProfileManifest {
    pub fn compile_dt_overlays<E, F>(&self, mut compile: F) -> Result<BootProfile, E>
    where
        F: FnMut(&str) -> Result<Vec<u8>, E>,
    {
        let mut dt_overlays = Vec::with_capacity(self.dt_overlays.len());
        for overlay in &self.dt_overlays {
            dt_overlays.push(compile(overlay)?);
        }

        let mut devices = BTreeMap::new();
        for (device_id, device) in &self.stage0.devices {
            let mut device_overlays = Vec::with_capacity(device.dt_overlays.len());
            for overlay in &device.dt_overlays {
                device_overlays.push(compile(overlay)?);
            }
            devices.insert(
                device_id.clone(),
                BootProfileDevice {
                    dt_overlays: device_overlays,
                    extra_cmdline: device.extra_cmdline.clone(),
                    stage0: BootProfileDeviceStage0 {
                        kernel_modules: device.stage0.kernel_modules.clone(),
                        inject_mac: device.stage0.inject_mac.clone(),
                    },
                },
            );
        }

        Ok(BootProfile {
            id: self.id.clone(),
            display_name: self.display_name.clone(),
            rootfs: self.rootfs.clone(),
            kernel: self.kernel.clone(),
            dtbs: self.dtbs.clone(),
            dt_overlays,
            extra_cmdline: self.extra_cmdline.clone(),
            stage0: BootProfileStage0 {
                kernel_modules: self.stage0.kernel_modules.clone(),
                devices,
            },
        })
    }
}

#[derive(Clone, Debug, Default, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfileManifestStage0 {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub kernel_modules: Vec<String>,
    #[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
    pub devices: BTreeMap<String, BootProfileManifestDevice>,
}

impl BootProfileManifestStage0 {
    pub fn is_empty(&self) -> bool {
        self.kernel_modules.is_empty() && self.devices.is_empty()
    }
}

#[derive(Clone, Debug, Default, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfileManifestDevice {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub dt_overlays: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub extra_cmdline: Option<String>,
    #[serde(
        default,
        skip_serializing_if = "BootProfileManifestDeviceStage0::is_empty"
    )]
    pub stage0: BootProfileManifestDeviceStage0,
}

#[derive(Clone, Debug, Default, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfileManifestDeviceStage0 {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub kernel_modules: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inject_mac: Option<InjectMac>,
}

impl BootProfileManifestDeviceStage0 {
    pub fn is_empty(&self) -> bool {
        self.kernel_modules.is_empty() && self.inject_mac.is_none()
    }
}

/// Runtime boot profile with precompiled DT overlays.
#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfile {
    pub id: String,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub display_name: Option<String>,
    pub rootfs: BootProfileRootfs,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub kernel: Option<BootProfileArtifactPathSource>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub dtbs: Option<BootProfileArtifactPathSource>,
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub dt_overlays: Vec<Vec<u8>>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub extra_cmdline: Option<String>,
    #[serde(default, skip_serializing_if = "BootProfileStage0::is_empty")]
    pub stage0: BootProfileStage0,
}

impl BootProfile {
    pub fn decompile_dt_overlays<E, F>(&self, mut decompile: F) -> Result<BootProfileManifest, E>
    where
        F: FnMut(&[u8]) -> Result<String, E>,
    {
        let mut dt_overlays = Vec::with_capacity(self.dt_overlays.len());
        for overlay in &self.dt_overlays {
            dt_overlays.push(decompile(overlay)?);
        }

        let mut devices = BTreeMap::new();
        for (device_id, device) in &self.stage0.devices {
            let mut device_overlays = Vec::with_capacity(device.dt_overlays.len());
            for overlay in &device.dt_overlays {
                device_overlays.push(decompile(overlay)?);
            }
            devices.insert(
                device_id.clone(),
                BootProfileManifestDevice {
                    dt_overlays: device_overlays,
                    extra_cmdline: device.extra_cmdline.clone(),
                    stage0: BootProfileManifestDeviceStage0 {
                        kernel_modules: device.stage0.kernel_modules.clone(),
                        inject_mac: device.stage0.inject_mac.clone(),
                    },
                },
            );
        }

        Ok(BootProfileManifest {
            id: self.id.clone(),
            display_name: self.display_name.clone(),
            rootfs: self.rootfs.clone(),
            kernel: self.kernel.clone(),
            dtbs: self.dtbs.clone(),
            dt_overlays,
            extra_cmdline: self.extra_cmdline.clone(),
            stage0: BootProfileManifestStage0 {
                kernel_modules: self.stage0.kernel_modules.clone(),
                devices,
            },
        })
    }
}

#[derive(Clone, Debug, Default, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfileStage0 {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub kernel_modules: Vec<String>,
    #[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
    pub devices: BTreeMap<String, BootProfileDevice>,
}

impl BootProfileStage0 {
    pub fn is_empty(&self) -> bool {
        self.kernel_modules.is_empty() && self.devices.is_empty()
    }
}

#[derive(Clone, Debug, Default, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfileDevice {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub dt_overlays: Vec<Vec<u8>>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub extra_cmdline: Option<String>,
    #[serde(default, skip_serializing_if = "BootProfileDeviceStage0::is_empty")]
    pub stage0: BootProfileDeviceStage0,
}

#[derive(Clone, Debug, Default, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfileDeviceStage0 {
    #[serde(default, skip_serializing_if = "Vec::is_empty")]
    pub kernel_modules: Vec<String>,
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub inject_mac: Option<InjectMac>,
}

impl BootProfileDeviceStage0 {
    pub fn is_empty(&self) -> bool {
        self.kernel_modules.is_empty() && self.inject_mac.is_none()
    }
}

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(untagged)]
pub enum BootProfileRootfs {
    Ostree(BootProfileRootfsOstreeSource),
    Erofs(BootProfileRootfsErofsSource),
    Ext4(BootProfileRootfsExt4Source),
    Fat(BootProfileRootfsFatSource),
}

impl BootProfileRootfs {
    pub fn source(&self) -> &BootProfileArtifactSource {
        match self {
            Self::Ostree(source) => source.source(),
            Self::Erofs(source) => &source.erofs,
            Self::Ext4(source) => &source.ext4,
            Self::Fat(source) => &source.fat,
        }
    }

    pub fn source_mut(&mut self) -> &mut BootProfileArtifactSource {
        match self {
            Self::Ostree(source) => source.source_mut(),
            Self::Erofs(source) => &mut source.erofs,
            Self::Ext4(source) => &mut source.ext4,
            Self::Fat(source) => &mut source.fat,
        }
    }

    pub fn is_ostree(&self) -> bool {
        matches!(self, Self::Ostree(_))
    }
}

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfileRootfsOstreeSource {
    pub ostree: BootProfileRootfsFilesystemSource,
}

impl BootProfileRootfsOstreeSource {
    pub fn source(&self) -> &BootProfileArtifactSource {
        self.ostree.source()
    }

    pub fn source_mut(&mut self) -> &mut BootProfileArtifactSource {
        self.ostree.source_mut()
    }
}

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(untagged)]
pub enum BootProfileRootfsFilesystemSource {
    Erofs(BootProfileRootfsErofsSource),
    Ext4(BootProfileRootfsExt4Source),
    Fat(BootProfileRootfsFatSource),
}

impl BootProfileRootfsFilesystemSource {
    pub fn source(&self) -> &BootProfileArtifactSource {
        match self {
            Self::Erofs(source) => &source.erofs,
            Self::Ext4(source) => &source.ext4,
            Self::Fat(source) => &source.fat,
        }
    }

    pub fn source_mut(&mut self) -> &mut BootProfileArtifactSource {
        match self {
            Self::Erofs(source) => &mut source.erofs,
            Self::Ext4(source) => &mut source.ext4,
            Self::Fat(source) => &mut source.fat,
        }
    }
}

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
pub struct BootProfileArtifactPathSource {
    pub path: String,
    #[serde(flatten)]
    pub source: BootProfileRootfs,
}

impl BootProfileArtifactPathSource {
    pub fn artifact_source(&self) -> &BootProfileArtifactSource {
        self.source.source()
    }

    pub fn artifact_source_mut(&mut self) -> &mut BootProfileArtifactSource {
        self.source.source_mut()
    }
}

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfileRootfsErofsSource {
    pub erofs: BootProfileArtifactSource,
}

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfileRootfsExt4Source {
    pub ext4: BootProfileArtifactSource,
}

#[derive(Clone, Debug, Deserialize, Serialize, PartialEq, Eq)]
#[cfg_attr(feature = "schema", derive(JsonSchema))]
#[serde(deny_unknown_fields)]
pub struct BootProfileRootfsFatSource {
    pub fat: BootProfileArtifactSource,
}

pub mod bin;