13 lines
389 B
Bash
Executable File
13 lines
389 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; }
|
|
|
|
/sbin/installkernel --uboot --keep-initrd "$kver"
|
|
printf 'LABEL=ROOT\t/\text4\tdefaults\t1 1\n' >> /etc/fstab
|