File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1093,13 +1093,18 @@ fn installation_complete() {
1093
1093
1094
1094
/// Implementation of the `bootc install to-disk` CLI command.
1095
1095
#[ context( "Installing to disk" ) ]
1096
- pub ( crate ) async fn install_to_disk ( opts : InstallToDiskOpts ) -> Result < ( ) > {
1096
+ pub ( crate ) async fn install_to_disk ( mut opts : InstallToDiskOpts ) -> Result < ( ) > {
1097
1097
let mut block_opts = opts. block_opts ;
1098
1098
let target_blockdev_meta = block_opts
1099
1099
. device
1100
1100
. metadata ( )
1101
1101
. with_context ( || format ! ( "Querying {}" , & block_opts. device) ) ?;
1102
1102
if opts. via_loopback {
1103
+ if !opts. config_opts . generic_image {
1104
+ eprintln ! ( "Automatically enabling --generic-image when installing via loopback" ) ;
1105
+ std:: thread:: sleep ( std:: time:: Duration :: from_secs ( 2 ) ) ;
1106
+ opts. config_opts . generic_image = true ;
1107
+ }
1103
1108
if !target_blockdev_meta. file_type ( ) . is_file ( ) {
1104
1109
anyhow:: bail!(
1105
1110
"Not a regular file (to be used via loopback): {}" ,
You can’t perform that action at this time.
0 commit comments