39fa788ac8
It's probably a good year to get rid of this reference practice resulting in a known sort of misdocumentation over time :-/
14 lines
437 B
Bash
Executable File
14 lines
437 B
Bash
Executable File
#!/bin/sh
|
|
# predictable file locations make bootloader configuration simple;
|
|
# this script relates to features.in/stage2/stage1/scripts.d/81-make-initfs
|
|
|
|
kver="$(rpm -qa 'kernel-image*' \
|
|
--qf '%{installtime} %{version}-%{name}-%{release}\n' \
|
|
| sort -n \
|
|
| tail -n 1 \
|
|
| cut -f 2 -d ' ' \
|
|
| sed 's/kernel-image-//')"
|
|
|
|
ln -s vmlinuz-$kver /boot/vmlinuz
|
|
ln -s initrd-$kver.img /boot/initrd.img
|