[kernel-gwh] xz
This commit is contained in:
parent
322c1d590e
commit
fe57bea912
1 changed files with 3 additions and 2 deletions
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue