[09/13] installer: Correctly pass mount flags

Message ID 20240405125942.1803058-9-michael.tremer@ipfire.org
State Staged
Commit 1415e83a3473e864ce4bd683485e02e8f1326961
Headers
Series [01/13] installer: Update language files |

Commit Message

Michael Tremer April 5, 2024, 12:59 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@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 77c2d546e..809a448a0 100644
--- a/src/installer/hw.c
+++ b/src/installer/hw.c
@@ -1010,7 +1010,7 @@  static int hw_mount_btrfs_subvolumes(const char* source) {
 		fprintf(flog, "Mounting subvolume %s to %s\n", subvolume->name, subvolume->mount_path);
 
 		// Try to mount the subvolume.
-		r = mount(source, path, "btrfs", NULL, options);
+		r = mount(source, path, "btrfs", 0, options);
 		if (r)
 			return r;
 	}