mkimage-profiles/features.in/uboot/image-scripts.d/90-uboot-config-install

19 lines
452 B
Plaintext
Raw Normal View History

2019-05-30 12:27:25 +03:00
#!/bin/sh -x
[ -n "$GLOBAL_KFLAVOURS" ] ||
{ echo "** KFLAVOURS is empty" >&2; exit 0; }
2019-05-30 12:27:25 +03:00
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; }
2019-05-30 12:27:25 +03:00
for KVER in $kver; do
/sbin/installkernel --uboot --keep-initrd "$KVER"
done