mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-22 20:41:03 +01:00
Simplify variable expansion in attempt to fix the vm-image build.
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
c668010e3f
commit
fa56961588
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=281809
@ -14,9 +14,9 @@ write_partition_layout() {
|
||||
SWAPOPT="-p freebsd-swap/swapfs::1G"
|
||||
fi
|
||||
|
||||
_OBJDIR="$(make -C ${WORLDDIR} -V .OBJDIR)"
|
||||
if [ -d "${_OBJDIR%%/usr/src}/${TARGET}.${TARGET_ARCH}" ]; then
|
||||
BOOTFILES="${_OBJDIR%%/usr/src}/${TARGET}.${TARGET_ARCH}/usr/src/sys/boot"
|
||||
_OBJDIR="$(make -C ${WORLDDIR} -V .OBJDIR | tr -d '/usr/src')"
|
||||
if [ -d "${_OBJDIR}/${TARGET}.${TARGET_ARCH}" ]; then
|
||||
BOOTFILES="${_OBJDIR}/${TARGET}.${TARGET_ARCH}/usr/src/sys/boot"
|
||||
else
|
||||
BOOTFILES="${_OBJDIR}/usr/src/sys/boot"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user