Fix Arch kernel image detection

currently, the script tries to use the wrong kernel image on Arch if an
alternative kernel (hardened, zen, or lts) is in use. Fortunately, all
the Arch kernel packages place a symlink to the kernel image as /usr/lib/modules/$(uname -r)/vmlinuz, so simply removing the guess for Arch fixes the issue.
This commit is contained in:
Lily Wilson 2018-12-09 08:58:54 -05:00
parent c45a06f414
commit b946358124
1 changed files with 0 additions and 2 deletions

View File

@ -1558,8 +1558,6 @@ if [ "$opt_live" = 1 ]; then
[ -e "/lib/modules/$(uname -r)/vmlinuz" ] && opt_kernel="/lib/modules/$(uname -r)/vmlinuz"
# Slackare:
[ -e "/boot/vmlinuz" ] && opt_kernel="/boot/vmlinuz"
# Arch:
[ -e "/boot/vmlinuz-linux" ] && opt_kernel="/boot/vmlinuz-linux"
# Arch aarch64:
[ -e "/boot/Image" ] && opt_kernel="/boot/Image"
# Arch armv5/armv7: