Hello,

>> when setting up btrfs with setup-storage,
>> is it possible to configure multiple subvolumes
>> in one partition, like I tried to configure
>> with
> 
>     > disk_config btrfs fstabkey:uuid
>     > btrfs single / disk1.3 subvol=@root
>     > btrfs single /var disk1.3 subvol=@root/var
>     > btrfs single /usr disk1.3 subvol=@root/usr
> I think this is related to https://bugs.debian.org/964761
> The output of format.log would help for the bug report.

The bug can be solved with the attached patch.

Regards
  Christoph
--- fai-5.10.3.orig/lib/setup-storage/Commands.pm
+++ fai-5.10.3/lib/setup-storage/Commands.pm
@@ -349,7 +349,7 @@ sub build_btrfs_commands {
     next unless ($config eq "BTRFS");
 
     #create BTRFS RAIDs
-    foreach my $id (keys %{ $FAI::configs{$config}{volumes} }) {
+    foreach my $id (&FAI::numsort(keys %{ $FAI::configs{$config}{volumes} })) {
     #reference to current btrfs volume
     my $vol = (\%FAI::configs)->{$config}->{volumes}->{$id};
 

Attachment: signature.asc
Description: This is a digitally signed message part

Antwort per Email an