Commit 8e1dd12f authored by Anton Midyukov's avatar Anton Midyukov Committed by Michael Shigorin

kernel, tar2fs: do not create /boot/.origver

parent 938820ac
......@@ -217,11 +217,11 @@ pushd $ROOTFS/boot
get_label() { echo "${1# *}" | sed -r 's,.*elbrus-([0-9a-z]+)-.*$,\1,'; }
KVERSIONS=
if [ -s .origver ]; then
while read kver; do
KVERSIONS="$KVERSIONS $kver"
done < .origver
fi
KVERSIONS="$(chroot "$ROOTFS" rpm -qa 'kernel-image*' \
--qf '%{installtime} %{version}-%{name}-%{release}\n' \
| sort -n \
| cut -f 2 -d ' ' \
| sed 's/kernel-image-//')"
[ -n "$KVERSIONS" ] || fatal "unable to deduce kernel version"
rm -f .origver
......
......@@ -11,7 +11,6 @@ kver="$(rpm -qa 'kernel-image*' \
[ -n "$kver" ] || { echo "** unable to deduce kernel version" >&2; exit 1; }
cd /boot
echo "$kver" > .origver # for tar2fs
make-initrd -N -k "$kver" AUTODETECT= \
FEATURES+="$GLOBAL_VM_INITRDFEATURES" \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment