Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions build/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
all-local: initrd

if WITH_KMODULES
export INCLUDE_KMODULES=1
endif

if WITH_VBOX
initrd-local:
bash ./make-initrd.sh vbox
Expand Down
13 changes: 8 additions & 5 deletions build/make-initrd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ cp socat /tmp/hyperstart-rootfs/sbin/
cp libm.so.6 /tmp/hyperstart-rootfs/lib64/
cp mount.nfs /tmp/hyperstart-rootfs/sbin/mount.nfs4

if [ "$1"x = "aarch64"x ]; then
echo "build hyperstart for aarch64"
tar -xf modules_aarch64.tar -C /tmp/hyperstart-rootfs/lib/modules
else
tar -xf modules.tar -C /tmp/hyperstart-rootfs/lib/modules
if [ "$INCLUDE_KMODULES"x == "1"x ]; then
if [ "$1"x = "aarch64"x ]; then
echo "build hyperstart for aarch64"
tar -xf modules_aarch64.tar -C \
/tmp/hyperstart-rootfs/lib/modules
else
tar -xf modules.tar -C /tmp/hyperstart-rootfs/lib/modules
fi
fi

# create symlinks to busybox and iptables
Expand Down
9 changes: 9 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@ AS_IF([test "x$enable_daemon" = "xno"],[SYSTEMD_SYSTEMUNIT=no])
AC_SUBST(SYSTEMD_SYSTEMUNIT)
AM_CONDITIONAL(SYSTEMD, test "x${SYSTEMD_SYSTEMUNIT}" != "xno" )

AC_ARG_WITH([kmodules],
AS_HELP_STRING([--without-kmodules],
[Do not include kernel modules in the rootfs]), [],
[])
# by default kernel modules are included
AS_IF([test "x$with_kmodules" = "x"],[with_kmodules=yes])
AM_CONDITIONAL([WITH_KMODULES], [test "x$with_kmodules" = "xyes"])

AC_CHECK_FILE([/usr/include/linux/vm_sockets.h],
[have_vsock=yes], [have_vsock=no])
if test "x$have_vsock" == "xyes"; then
Expand All @@ -94,6 +102,7 @@ AC_MSG_RESULT([

with-vbox: ${with_vbox}
with-aarch64: ${with_aarch64}
with-kmodules: ${with_kmodules}

vsock-support: ${have_vsock}

Expand Down