Skip to content

Commit

Permalink
Make kernel version check a little more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
sakaki- committed Jan 7, 2016
1 parent 9b98612 commit 64bbaa7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions buildkernel
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Build kernel, modules and initial ramdisk in correct sequence, ensuring kernel
# config is conformed, then sign if possible and copy to EFI boot partition.
#
# Copyright (c) 2014-2015 sakaki <[email protected]>
# Copyright (c) 2014-2016 sakaki <[email protected]>
#
# License (GPL v3.0)
# ------------------
Expand Down Expand Up @@ -31,15 +31,15 @@ shopt -s nullglob
# ********************** variables *********************
PROGNAME="$(basename "${0}")"
CONFFILE="/etc/${PROGNAME}.conf"
VERSION="1.0.13"
VERSION="1.0.14"
ETCPROFILE="/etc/profile"
DEFAULTEFIBOOTFILE="bootx64.efi"
EFIBOOTFILE="${DEFAULTEFIBOOTFILE}"
NEWVERSION="linux-$(cat /usr/src/linux/include/config/kernel.release)"
LINUXDIR="/usr/src/linux"
NEWVERSION="linux-$(cd "${LINUXDIR}" && make -s kernelversion)"
INITRAMFSNAME="$(echo $NEWVERSION | sed "s/linux/initramfs-genkernel-x86_64/g")"
VMLINUZNAME="$(echo $NEWVERSION | sed "s/linux/vmlinuz/g")"
CURRENTVERSION="linux-$(uname -r)"
LINUXDIR="/usr/src/linux"
CURRENTCONFIG="/proc/config.gz"
TARGETCONFIG="${LINUXDIR}/.config"
BOOTDIR="/boot"
Expand Down
4 changes: 2 additions & 2 deletions buildkernel.8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH BUILDKERNEL 8 "Version 1.0.13: November 2015"
.TH BUILDKERNEL 8 "Version 1.0.14: January 2016"
.SH NAME
buildkernel \- build secure boot kernel, save to EFI system partition
.SH SYNOPSIS
Expand Down Expand Up @@ -231,7 +231,7 @@ A post-reboot run of \fBgenup\fR(8) will achieve this.

.SH COPYRIGHT
.nf
Copyright \(co 2014-2015 sakaki
Copyright \(co 2014-2016 sakaki
License GPLv3+ (GNU GPL version 3 or later)
<http://gnu.org/licenses/gpl.html>

Expand Down
4 changes: 2 additions & 2 deletions buildkernel.conf.5
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH BUILDKERNEL 5 "Version 1.0.13: November 2015"
.TH BUILDKERNEL 5 "Version 1.0.14: January 2016"
.SH NAME
buildkernel.conf \- a configuration file for \fBbuildkernel\fR(8)
.SH SYNOPSIS
Expand Down Expand Up @@ -162,7 +162,7 @@ function exit.
.RE
.SH COPYRIGHT
.nf
Copyright \(co 2014-2015 sakaki
Copyright \(co 2014-2016 sakaki
License GPLv3+ (GNU GPL version 3 or later)
<http://gnu.org/licenses/gpl.html>

Expand Down

0 comments on commit 64bbaa7

Please sign in to comment.