]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
installer: Fix using BTRFS mount options when mounting the layout
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 26 Feb 2024 17:40:32 +0000 (18:40 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Mon, 26 Feb 2024 17:40:32 +0000 (18:40 +0100)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
src/installer/hw.c

index 7868cbb23dab47fdfd884729a0bac04c4554bb6b..1c4adc24b8d41cfb304152b3de7d839b9f8a9f93 100644 (file)
@@ -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);