diff options
Diffstat (limited to 'init/src/mounts/rescue.rs')
| -rw-r--r-- | init/src/mounts/rescue.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/init/src/mounts/rescue.rs b/init/src/mounts/rescue.rs index ad80a84..078984d 100644 --- a/init/src/mounts/rescue.rs +++ b/init/src/mounts/rescue.rs @@ -31,11 +31,10 @@ pub fn mount_system() -> Result<(), Box<dyn std::error::Error>> { ); if ret != 0 { - let errno = errno::errno().0; return Err(format!( "Failed to mount {}: {}", target, - std::io::Error::from_raw_os_error(errno) + std::io::Error::last_os_error() ) .into()); } |
