We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c0b7f3 commit 198016eCopy full SHA for 198016e
lib/src/install.rs
@@ -967,6 +967,15 @@ pub(crate) async fn install_to_filesystem(opts: InstallToFilesystemOpts) -> Resu
967
// for GRUB (BIOS) and in the future zipl (I think).
968
let backing_device = {
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
+ }
979
loop {
980
tracing::debug!("Finding parents for {dev}");
981
let mut parents = crate::blockdev::find_parent_devices(&dev)?.into_iter();
0 commit comments