801e99b087
Since packet sorting is enabled by default, then the order in KFLAVORS has ceased to matter. Kernels are always installed in alphabetical order. Therefore, it makes no sense to sort by buildtime. See-also: https://bugzilla.altlinux.org/show_bug.cgi?id=30806 Also fixed my typo. When creating a symlink, the variable $kver was used, i.e. the entire list of kernels, not the last value $KVER of the list.
20 lines
512 B
Bash
Executable File
20 lines
512 B
Bash
Executable File
#!/bin/sh -x
|
|
|
|
[ -n "$GLOBAL_KFLAVOURS" ] ||
|
|
{ echo "** KFLAVOURS is empty" >&2; exit 0; }
|
|
|
|
kver=
|
|
for KFLAVOUR in $GLOBAL_KFLAVOURS; do
|
|
kver+=" $(rpm -qa 'kernel-image*' \
|
|
--qf '%{version}-%{name}-%{release}\n' \
|
|
| grep "$KFLAVOUR" \
|
|
| sed 's/kernel-image-//')"
|
|
done
|
|
[ ! -z "${kver#"${kver%%[! ]*}"}" ] ||
|
|
{ echo "** unable to deduce kernel version" >&2; exit 1; }
|
|
|
|
for KVER in $kver; do
|
|
/sbin/installkernel --uboot --keep-initrd "$KVER"
|
|
done
|
|
printf 'LABEL=ROOT\t/\text4\tdefaults\t1 1\n' >> /etc/fstab
|