Merge pull request #96094 from helsinki-systems/fix/test/installer-btrfs-warning

nixosTests.installer.btrfsSubvolDefault: fix warning
This commit is contained in:
Jacek Galowicz 2020-08-23 20:42:07 +02:00 committed by GitHub
commit 7e545bd7f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -799,7 +799,7 @@ in {
"btrfs subvol create /mnt/badpath/boot",
"btrfs subvol create /mnt/nixos",
"btrfs subvol set-default "
+ "$(btrfs subvol list /mnt | grep 'nixos' | awk '{print \$2}') /mnt",
+ "$(btrfs subvol list /mnt | grep 'nixos' | awk '{print $2}') /mnt",
"umount /mnt",
"mount -o defaults LABEL=root /mnt",
"mkdir -p /mnt/badpath/boot", # Help ensure the detection mechanism