[kernel-gwh] xz

This commit is contained in:
Gwenhael Le Moine 2023-04-24 20:25:38 +02:00
parent 322c1d590e
commit fe57bea912
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -34,8 +34,8 @@ else
SRC_URL="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot" SRC_URL="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot"
fi fi
[ ! -e "$CWD"/linux-"$VERSION".tar.gz ] && wget -c "$SRC_URL/linux-$VERSION.tar.gz" -O "$CWD/linux-$VERSION.tar.gz" [ ! -e "$CWD"/linux-"$VERSION".tar.xz ] && wget -c "$SRC_URL/linux-$VERSION.tar.xz" -O "$CWD/linux-$VERSION.tar.xz"
tar xf "$CWD/linux-$VERSION.tar.gz" -C "$PKG/usr/src/" tar xf "$CWD/linux-$VERSION.tar.xz" -C "$PKG/usr/src/"
fi fi
cd "$PKG/usr/src/" || exit 1 cd "$PKG/usr/src/" || exit 1
@ -106,6 +106,7 @@ grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub
echo OK echo OK
echo -n "building initrd… " echo -n "building initrd… "
cd /
eval \$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -k $VERSION -r | sed "s|/boot/initrd.gz|/boot/initrd-gwh-${VERSION}.gz|") eval \$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -k $VERSION -r | sed "s|/boot/initrd.gz|/boot/initrd-gwh-${VERSION}.gz|")
echo "OK" echo "OK"