nixos/boot/stage-1: fix failing nixos-rebuild switch because of blkid output
old version of blkid used to output version information including libblkid version
when invoked with --help parameter
new version does not output libblkid version when invoked with --help parameter
fix is to invoke blkid with -V parameter to output version including libblkid in both cases
commit358470763822d490fb36f8e5e3eca6f1e4c8378f
authorChristian Albrecht <christian.albrecht@mayflower.de>
dateSun 25 Jun 2017, 16:03 (9 years ago)
parent639b74e
nixos/modules/system/boot/stage-1.nix+1−1
@@ -135,7 +135,7 @@ let
135135 $out/bin/ash -c 'echo hello world' | grep "hello world"
136136 export LD_LIBRARY_PATH=$out/lib
137137 $out/bin/mount --help 2>&1 | grep -q "BusyBox"
138− $out/bin/blkid --help 2>&1 | grep -q 'libblkid'
138+ $out/bin/blkid -V 2>&1 | grep -q 'libblkid'
139139 $out/bin/udevadm --version
140140 $out/bin/dmsetup --version 2>&1 | tee -a log | grep -q "version:"
141141 LVM_SYSTEM_DIR=$out $out/bin/lvm version 2>&1 | tee -a log | grep -q "LVM"