File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1081,6 +1081,7 @@ fn installation_complete() {
1081
1081
}
1082
1082
1083
1083
/// Implementation of the `bootc install to-disk` CLI command.
1084
+ #[ context( "Installing to disk" ) ]
1084
1085
pub ( crate ) async fn install_to_disk ( opts : InstallToDiskOpts ) -> Result < ( ) > {
1085
1086
let mut block_opts = opts. block_opts ;
1086
1087
let target_blockdev_meta = block_opts
@@ -1197,11 +1198,14 @@ fn clean_boot_directories(rootfs: &Dir) -> Result<()> {
1197
1198
}
1198
1199
1199
1200
/// Implementation of the `bootc install to-filsystem` CLI command.
1201
+ #[ context( "Installing to filesystem" ) ]
1200
1202
pub ( crate ) async fn install_to_filesystem ( opts : InstallToFilesystemOpts ) -> Result < ( ) > {
1201
1203
let fsopts = opts. filesystem_opts ;
1202
1204
let root_path = & fsopts. root_path ;
1203
1205
1204
- let st = root_path. symlink_metadata ( ) ?;
1206
+ let st = root_path
1207
+ . symlink_metadata ( )
1208
+ . with_context ( || format ! ( "Querying target filesystem {root_path}" ) ) ?;
1205
1209
if !st. is_dir ( ) {
1206
1210
anyhow:: bail!( "Not a directory: {root_path}" ) ;
1207
1211
}
You can’t perform that action at this time.
0 commit comments