3
0
Fork 0
forked from mirrors/nixpkgs

nixosTests.installer.btrfsSubvolDefault: fix warning

This commit is contained in:
ajs124 2020-08-23 16:10:02 +02:00
parent 3a84452a6e
commit b4fab1cdff

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