[10/17] installer: Fix using BTRFS mount options when mounting the layout

Message ID 20240315191442.3951-11-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 7868cbb23..1c4adc24b 100644
--- a/src/installer/hw.c
+++ b/src/installer/hw.c
@@ -1044,7 +1044,7 @@  int hw_mount_btrfs_subvolumes(const char* source) {
 	// Loop through the remain array of known subvolumes.
 	for ( int i = 1; i < LEN(btrfs_subvolumes); i++ ) {
 		snprintf(path, sizeof(path), "%s%s", DESTINATION_MOUNT_PATH, btrfs_subvolumes[i][1]);
-		snprintf(options, sizeof(options), "subvol=%s,", btrfs_subvolumes[i][0], BTRFS_MOUNT_OPTIONS);
+		snprintf(options, sizeof(options), "subvol=%s,%s", btrfs_subvolumes[i][0], BTRFS_MOUNT_OPTIONS);
 
 		// Create the directory.
 		r = hw_mkdir(path, S_IRWXU|S_IRWXG|S_IRWXO);