@@ -75,17 +75,6 @@ pub(crate) struct InstallTargetOpts {
75
75
76
76
#[ derive( clap:: Args , Debug , Clone , Serialize , Deserialize ) ]
77
77
pub ( crate ) struct InstallConfigOpts {
78
- /// Path to an Ignition config file
79
- #[ clap( long, value_parser) ]
80
- pub ( crate ) ignition_file : Option < Utf8PathBuf > ,
81
-
82
- /// Digest (type-value) of the Ignition config
83
- ///
84
- /// Verify that the Ignition config matches the specified digest,
85
- /// formatted as <type>-<hexvalue>. <type> can be sha256 or sha512.
86
- #[ clap( long, value_name = "digest" , value_parser) ]
87
- pub ( crate ) ignition_hash : Option < crate :: ignition:: IgnitionHash > ,
88
-
89
78
/// Disable SELinux in the target (installed) system.
90
79
///
91
80
/// This is currently necessary to install *from* a system with SELinux disabled
@@ -207,6 +196,7 @@ pub(crate) struct State {
207
196
pub ( crate ) skopeo_supports_containers_storage : bool ,
208
197
#[ allow( dead_code) ]
209
198
pub ( crate ) setenforce_guard : Option < crate :: lsm:: SetEnforceGuard > ,
199
+ #[ allow( dead_code) ]
210
200
pub ( crate ) config_opts : InstallConfigOpts ,
211
201
pub ( crate ) target_opts : InstallTargetOpts ,
212
202
pub ( crate ) install_config : config:: InstallConfiguration ,
@@ -844,15 +834,6 @@ async fn install_to_filesystem_impl(state: &State, rootfs: &mut RootSetup) -> Re
844
834
if state. override_disable_selinux {
845
835
rootfs. kargs . push ( "selinux=0" . to_string ( ) ) ;
846
836
}
847
- // This is interpreted by our GRUB fragment
848
- if state. config_opts . ignition_file . is_some ( ) {
849
- rootfs
850
- . kargs
851
- . push ( crate :: ignition:: PLATFORM_METAL_KARG . to_string ( ) ) ;
852
- rootfs
853
- . kargs
854
- . push ( crate :: bootloader:: IGNITION_VARIABLE . to_string ( ) ) ;
855
- }
856
837
857
838
// Write the aleph data that captures the system state at the time of provisioning for aid in future debugging.
858
839
{
@@ -878,16 +859,6 @@ async fn install_to_filesystem_impl(state: &State, rootfs: &mut RootSetup) -> Re
878
859
) ?;
879
860
tracing:: debug!( "Installed bootloader" ) ;
880
861
881
- // If Ignition is specified, enable it
882
- if let Some ( ignition_file) = state. config_opts . ignition_file . as_deref ( ) {
883
- let src = std:: fs:: File :: open ( ignition_file)
884
- . with_context ( || format ! ( "Opening {ignition_file}" ) ) ?;
885
- let bootfs = rootfs. rootfs . join ( "boot" ) ;
886
- crate :: ignition:: write_ignition ( & bootfs, & state. config_opts . ignition_hash , & src) ?;
887
- crate :: ignition:: enable_firstboot ( & bootfs) ?;
888
- println ! ( "Installed Ignition config from {ignition_file}" ) ;
889
- }
890
-
891
862
// ostree likes to have the immutable bit on the physical sysroot to ensure
892
863
// that it doesn't accumulate junk; all system state should be in deployments.
893
864
Task :: new ( "Setting root immutable bit" , "chattr" )
0 commit comments