@@ -327,9 +327,13 @@ func parseSystemdVerityOptions(options string) (imagecustomizerapi.CorruptionOpt
327
327
case "restart-on-corruption" :
328
328
corruptionOption = imagecustomizerapi .CorruptionOptionRestart
329
329
330
- default :
331
- return "" , fmt .Errorf ("unknown verity option (%s)" , option )
330
+ // ToDo: Green light to LG for this non-corruption option `root-hash-signature=`
331
+ /*
332
+ default:
333
+ return "", fmt.Errorf("unknown verity option (%s)", option)
334
+ */
332
335
}
336
+
333
337
}
334
338
335
339
return corruptionOption , nil
@@ -440,30 +444,3 @@ func findIdentifiedPartition(partitions []diskutils.PartitionInfo, ref imagecust
440
444
}
441
445
return partition , nil
442
446
}
443
-
444
- func ParseSystemdVerityOptions (options string ) (imagecustomizerapi.CorruptionOption , error ) {
445
- corruptionOption := imagecustomizerapi .CorruptionOptionIoError
446
-
447
- optionValues := strings .Split (options , "," )
448
- for _ , option := range optionValues {
449
- switch option {
450
- case "" :
451
- // Ignore empty string.
452
-
453
- case "ignore-corruption" :
454
- corruptionOption = imagecustomizerapi .CorruptionOptionIgnore
455
-
456
- case "panic-on-corruption" :
457
- corruptionOption = imagecustomizerapi .CorruptionOptionPanic
458
-
459
- case "restart-on-corruption" :
460
- corruptionOption = imagecustomizerapi .CorruptionOptionRestart
461
-
462
- default :
463
- // ToDo: Ignore unknown options like "root-hash-signature=/boot/root.hash.sig"
464
- logger .Log .Debugf ("Ignoring unknown verity option: %s" , option )
465
- }
466
- }
467
-
468
- return corruptionOption , nil
469
- }
0 commit comments