add support for NixOS kernel

this removes the need to specify the kernel version manually on NixOS
This commit is contained in:
Andreas Rammhold 2018-01-14 16:18:29 +01:00
parent dead0054a4
commit 2964c4ab44
No known key found for this signature in database
GPG Key ID: E432E410B5E48C86
1 changed files with 1 additions and 0 deletions

View File

@ -487,6 +487,7 @@ if [ "$opt_live" = 1 ]; then
[ -e /boot/kernel-$( uname -r) ] && opt_kernel=/boot/kernel-$( uname -r)
[ -e /boot/bzImage-$(uname -r) ] && opt_kernel=/boot/bzImage-$(uname -r)
[ -e /boot/kernel-genkernel-$(uname -m)-$(uname -r) ] && opt_kernel=/boot/kernel-genkernel-$(uname -m)-$(uname -r)
[ -e /run/booted-system/kernel ] && opt_kernel=/run/booted-system/kernel
fi
# system.map