GitHubのミラーです
https://github.com/FascodeNet/alterlinux-calamares
修订版 | 2db3b413f47c5420f0d86e3a08d0e7ccb40b825f (tree) |
---|---|
时间 | 2020-02-25 04:58:02 |
作者 | Adriaan de Groot <groot@kde....> |
Commiter | Adriaan de Groot |
[libcalamares] Unmount with mount point, not device
- The manpage for umount says that -R can only be used with
- Existing code tried to unmount -R the device, not the mount point,
@@ -117,7 +117,7 @@ TemporaryMount::~TemporaryMount() | ||
117 | 117 | { |
118 | 118 | if ( m_d ) |
119 | 119 | { |
120 | - int r = unmount( m_d->m_devicePath, { "-R" } ); | |
120 | + int r = unmount( m_d->m_mountDir.path(), { "-R" } ); | |
121 | 121 | if ( r ) |
122 | 122 | { |
123 | 123 | cWarning() << "UnMount of temporary" << m_d->m_devicePath << "on" << m_d->m_mountDir.path() |