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"