Commit a6516a8 Kernel version should work on Fedora as well

1 file Authored and Committed by rasibley 2 years ago
Kernel version should work on Fedora as well

    
1 @@ -22,7 +22,7 @@
2   keyfile="/root/keyfile"
3   kernel_file=`grubby --default-kernel`
4   initrd_file=`grubby --info=$kernel_file | grep ^initrd= | sed 's/^initrd=//' | head -n1`
5 - kernel_version=`rpm -qf $kernel_file | sed 's/^kernel-//'`
6 + kernel_version=`rpm -qf $kernel_file --qf '%{VERSION}-%{RELEASE}.%{ARCH}\n'`
7   
8   rlJournalStart
9     rlPhaseStartTest "Add luks keys to initramfs"