[06/17] installer: Correctly umount main BTRFS partition.

Message ID 20240315191442.3951-7-stefan.schantl@ipfire.org
State Superseded
Headers
Series BTRFS support on IPFire 2.x (experimental) |

Commit Message

Stefan Schantl March 15, 2024, 7:14 p.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 src/installer/hw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/src/installer/hw.c b/src/installer/hw.c
index 420feaca7..205d40d21 100644
--- a/src/installer/hw.c
+++ b/src/installer/hw.c
@@ -916,7 +916,7 @@  int hw_create_btrfs_layout(const char* path, const char* output) {
 	}
 
 	// Umount the main BTRFS after subvolume creation.
-	r = hw_umount(path, 0);
+	r = hw_umount(DESTINATION_MOUNT_PATH, 0);
 
 	if (r)
 		return r;