diff --git a/src/bin/mount.rs b/src/bin/mount.rs index 75427d0168..58391c2620 100644 --- a/src/bin/mount.rs +++ b/src/bin/mount.rs @@ -346,7 +346,7 @@ fn main() { disk if disk_id.is_none() => disk_id = Some(DiskId::Path(disk.to_owned())), - mnt if disk_id.is_some() => mountpoint = Some(mnt.to_owned()), + mnt if disk_id.is_some() && mountpoint.is_none() => mountpoint = Some(mnt.to_owned()), opts if mountpoint.is_some() => match u64::from_str_radix(opts, 16) { Ok(block) => block_opt = Some(block),