Skip to content

Commit

Permalink
Tweak deblobbing check (to allow hardened-sources)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakaki- committed May 21, 2016
1 parent f8428d6 commit cd44739
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions buildkernel
Original file line number Diff line number Diff line change
Expand Up @@ -1508,9 +1508,11 @@ check_if_deblobbing() {
# run in kernel top-level directory
local EV=$(grep "^EXTRAVERSION =" Makefile)
if grep -q "\-gnu$" <<<"${EV}"; then
# we are deblobbing - fix up the initramfs name
# we are deblobbing - fix up the initramfs name if necessary
show "Using a deblobbed kernel"
INITRAMFSNAME+="-gnu"
if [[ "${INITRAMFSNAME}" != *-gnu ]]; then
INITRAMFSNAME+="-gnu"
fi
fi
}
copy_config_from_proc_if_necessary () {
Expand Down Expand Up @@ -1831,7 +1833,7 @@ backup_prior_efi_kernel_if_present() {
if ((BACKUPOLDKERNEL==1)); then
# now backup any prior kernel
if [ -s "${FULLEFIBOOTDIR}/${EFIBOOTFILE}" ]; then
show "Backing up old bootfile in case of failure..."
show "Backing up bootfile in case of failure..."
cp ${VERBOSITYFLAG} -f "${FULLEFIBOOTDIR}/${EFIBOOTFILE}" "${FULLEFIBOOTDIR}/${FILEPREFIX}${EFIBOOTFILE}${OLDSUFFIX}"
fi
fi
Expand All @@ -1840,7 +1842,7 @@ backup_prior_config_if_present() {
local FILEPREFIX=${1:-""}
if ((BACKUPOLDKERNEL==1)); then
if [ -s "${FULLEFIBOOTDIR}/${EFICONFIGFILE}" ]; then
show "Backing up old config in case of failure..."
show "Backing up config in case of failure..."
cp ${VERBOSITYFLAG} -f "${FULLEFIBOOTDIR}/${EFICONFIGFILE}" "${FULLEFIBOOTDIR}/${FILEPREFIX}${EFICONFIGFILE}${OLDSUFFIX}"
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion buildkernel.8
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH BUILDKERNEL 8 "Version 1.0.15: April 2016"
.TH BUILDKERNEL 8 "Version 1.0.15: May 2016"
.SH NAME
buildkernel \- build secure boot kernel, save to EFI system partition
.SH SYNOPSIS
Expand Down
2 changes: 1 addition & 1 deletion buildkernel.conf.5
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.TH BUILDKERNEL 5 "Version 1.0.15: April 2016"
.TH BUILDKERNEL 5 "Version 1.0.15: May 2016"
.SH NAME
buildkernel.conf \- a configuration file for \fBbuildkernel\fR(8)
.SH SYNOPSIS
Expand Down

0 comments on commit cd44739

Please sign in to comment.