From fe57bea912acb330610ff4744b6b2a78cc4c681a Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 24 Apr 2023 20:25:38 +0200 Subject: [PATCH] [kernel-gwh] xz --- a/kernel-gwh/SlackBuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/a/kernel-gwh/SlackBuild b/a/kernel-gwh/SlackBuild index 650384e6..b8cf913c 100755 --- a/a/kernel-gwh/SlackBuild +++ b/a/kernel-gwh/SlackBuild @@ -34,8 +34,8 @@ else SRC_URL="https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/snapshot" fi - [ ! -e "$CWD"/linux-"$VERSION".tar.gz ] && wget -c "$SRC_URL/linux-$VERSION.tar.gz" -O "$CWD/linux-$VERSION.tar.gz" - tar xf "$CWD/linux-$VERSION.tar.gz" -C "$PKG/usr/src/" + [ ! -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.xz" -C "$PKG/usr/src/" fi 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 -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|") echo "OK"