@@ -2,7 +2,7 @@ use camino::Utf8Path;
22use std:: path:: Path ;
33
44use anyhow:: { Context , Result } ;
5- use bootc_blockdev :: PartitionTable ;
5+ use bootc_internal_blockdev :: PartitionTable ;
66use fn_error_context:: context;
77
88#[ context( "get parent devices from mount point boot or sysroot" ) ]
@@ -30,7 +30,7 @@ pub fn get_devices<P: AsRef<Path>>(target_root: P) -> Result<Vec<String>> {
3030 } ;
3131
3232 // Find the parent devices of the source path
33- let parent_devices = bootc_blockdev :: find_parent_devices ( & source)
33+ let parent_devices = bootc_internal_blockdev :: find_parent_devices ( & source)
3434 . with_context ( || format ! ( "While looking for backing devices of {}" , source) ) ?;
3535 log:: debug!( "Found parent devices: {parent_devices:?}" ) ;
3636 Ok ( parent_devices)
@@ -40,7 +40,8 @@ pub fn get_devices<P: AsRef<Path>>(target_root: P) -> Result<Vec<String>> {
4040/// using sfdisk to get partitiontable
4141pub fn get_esp_partition ( device : & str ) -> Result < Option < String > > {
4242 const ESP_TYPE_GUID : & str = "C12A7328-F81F-11D2-BA4B-00A0C93EC93B" ;
43- let device_info: PartitionTable = bootc_blockdev:: partitions_of ( Utf8Path :: new ( device) ) ?;
43+ let device_info: PartitionTable =
44+ bootc_internal_blockdev:: partitions_of ( Utf8Path :: new ( device) ) ?;
4445 let esp = device_info
4546 . partitions
4647 . into_iter ( )
@@ -70,7 +71,7 @@ pub fn find_colocated_esps(devices: &Vec<String>) -> Result<Option<Vec<String>>>
7071/// Find bios_boot partition on the same device
7172pub fn get_bios_boot_partition ( device : & str ) -> Result < Option < String > > {
7273 const BIOS_BOOT_TYPE_GUID : & str = "21686148-6449-6E6F-744E-656564454649" ;
73- let device_info = bootc_blockdev :: partitions_of ( Utf8Path :: new ( device) ) ?;
74+ let device_info = bootc_internal_blockdev :: partitions_of ( Utf8Path :: new ( device) ) ?;
7475 let bios_boot = device_info
7576 . partitions
7677 . into_iter ( )
0 commit comments