Skip to content

Commit

Permalink
Bump version to 1.0.26
Browse files Browse the repository at this point in the history
Add further check for Windows bootloader when using easy-setup.
If using an explicit LINUXBUILDDIR, don't make fresh copy if existing
content present, unless --clean/-c flag is specified.
  • Loading branch information
sakaki- committed Nov 3, 2017
1 parent 39102ae commit b416a5d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
26 changes: 17 additions & 9 deletions buildkernel
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ shopt -s nullglob
# ********************** variables *********************
PROGNAME="$(basename "${0}")"
CONFFILE="/etc/${PROGNAME}.conf"
VERSION="1.0.25"
VERSION="1.0.26"
ETCPROFILE="/etc/profile"
DEFAULTEFIBOOTFILE="bootx64.efi"
EFIBOOTFILE="${DEFAULTEFIBOOTFILE}"
Expand Down Expand Up @@ -631,7 +631,8 @@ find_all_efi_boot_entries() {
# archive whether or not this is a windows bootloader entry
# there can be >1 entry for the same UUID, so this acts like a
# 'dirty' flag
if grep -i -q "Windows" <<<"${NEXTNAME}"; then
if grep -i -q "Windows" <<<"${NEXTNAME}" || \
grep -i -q "Microsoft" <<<"${NEXTPATH}"; then
HASWINBOOTLOADER["${NEXTUUID}"]="1"
fi
# store a lookup from boot ID (4 digit hex string) to index in these
Expand Down Expand Up @@ -1546,14 +1547,21 @@ setup_build_directory() {
else
LINUXBUILDDIR="${LINUXBUILDDIR%/}/${PROGNAME}"
if [ -d "${LINUXBUILDDIR}" ]; then
show "Cleaning ${LINUXBUILDDIR}..."
rm -r "${LINUXBUILDDIR}"
if ((ARG_CLEAN==1)); then
show "Cleaning ${LINUXBUILDDIR}..."
rm -r "${LINUXBUILDDIR}"
show "Copying from ${LINUXDIR} to ${LINUXBUILDDIR}..."
cp -ax "${LINUXDIR}"/ "${LINUXBUILDDIR}"
else
warning "${LINUXBUILDDIR} exists, using it as-is"
warning "Specify the --clean/-c option to override this"
fi
else
# ensure parent directory exists...
mkdir -p "${LINUXBUILDDIR%/*}"
show "Copying from ${LINUXDIR} to ${LINUXBUILDDIR}..."
cp -ax "${LINUXDIR}"/ "${LINUXBUILDDIR}"
fi
# ensure parent directory exists...
mkdir -p "${LINUXBUILDDIR%/*}"

show "Copying from ${LINUXDIR} to ${LINUXBUILDDIR}..."
cp -ax "${LINUXDIR}"/ "${LINUXBUILDDIR}"
fi
}
enter_build_directory() {
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.25: July 2017"
.TH BUILDKERNEL 8 "Version 1.0.26: November 2017"
.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.25: July 2017"
.TH BUILDKERNEL 5 "Version 1.0.26: November 2017"
.SH NAME
buildkernel.conf \- a configuration file for \fBbuildkernel\fR(8)
.SH SYNOPSIS
Expand Down

0 comments on commit b416a5d

Please sign in to comment.