ddab9ec084
See commit 207cec89c4515fefa2b711acd06c645ed3bd0ee8.
15 lines
417 B
Bash
Executable File
15 lines
417 B
Bash
Executable File
#!/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
|
|
printf 'LABEL=ROOT\t/\text4\tdefaults\t1 1\n' >> /etc/fstab
|