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

15 lines
417 B
Plaintext
Raw Normal View History

2019-05-30 12:27:25 +03:00
#!/bin/sh -x
kver="$(rpm -qa 'kernel-image*' \
--qf '%{installtime} %{version}-%{name}-%{release}\n' \
| sort -n \
| cut -f 2 -d ' ' \
| sed 's/kernel-image-//')"
[ -n "$kver" ] || { echo "** unable to deduce kernel version" >&2; exit 1; }
for KVER in $kver; do
/sbin/installkernel --uboot --keep-initrd "$KVER"
done
2019-05-30 12:27:25 +03:00
printf 'LABEL=ROOT\t/\text4\tdefaults\t1 1\n' >> /etc/fstab