Merge pull request #11467 from lifupan/fixblockfile

runtime-rs: fix the issue return the wrong volume
This commit is contained in:
Fabiano Fidêncio 2025-06-25 09:56:28 +02:00 committed by GitHub
commit 4719c08184
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -150,7 +150,7 @@ pub(crate) fn is_block_rootfs(m: &Mount) -> Option<(u64, Mount)> {
//clear the volume resource thus the block device will use the dev_id
//to find the device's host path;
volume.source = String::new();
return Some((dev_id, m.clone()));
return Some((dev_id, volume));
}
if SFlag::from_bits_truncate(fstat.st_mode) == SFlag::S_IFREG