File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -967,6 +967,15 @@ pub(crate) async fn install_to_filesystem(opts: InstallToFilesystemOpts) -> Resu
967
967
// for GRUB (BIOS) and in the future zipl (I think).
968
968
let backing_device = {
969
969
let mut dev = inspect. source ;
970
+ // Hack: trim bind mount information from source
971
+ if dev. contains ( '[' ) {
972
+ dev = inspect
973
+ . sources
974
+ . into_iter ( )
975
+ . flatten ( )
976
+ . next ( )
977
+ . ok_or_else ( || anyhow ! ( "Expected `sources` in findmnt output" ) ) ?;
978
+ }
970
979
loop {
971
980
tracing:: debug!( "Finding parents for {dev}" ) ;
972
981
let mut parents = crate :: blockdev:: find_parent_devices ( & dev) ?. into_iter ( ) ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pub(crate) struct Findmnt {
25
25
pub ( crate ) fn inspect_filesystem ( path : & Utf8Path ) -> Result < Filesystem > {
26
26
tracing:: debug!( "Inspecting {path}" ) ;
27
27
let o = Command :: new ( "findmnt" )
28
- . args ( [ "-J" , "--output-all" , path. as_str ( ) ] )
28
+ . args ( [ "-J" , "-v" , "- -output-all", path. as_str ( ) ] )
29
29
. output ( ) ?;
30
30
let st = o. status ;
31
31
if !st. success ( ) {
You can’t perform that action at this time.
0 commit comments