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
3 changes: 2 additions & 1 deletion src/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
AM_CFLAGS = -Wall -Werror
COMMIT=`git describe --dirty --always --tags 2> /dev/null || true`
AM_CFLAGS = -Wall -Werror -DVERSIONCOMMIT=\""$(VERSION), commit: $(COMMIT)"\"
bin_PROGRAMS=hyperstart
hyperstart_SOURCES=init.c jsmn.c net.c util.c parse.c parson.c container.c exec.c event.c portmapping.c
if HAVE_VSOCK
Expand Down
3 changes: 3 additions & 0 deletions src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1460,6 +1460,9 @@ static int hyper_loop(void)
static int hyper_setup_init_process(void)
{
/* mount the base file systems */
printf("\n<**********************************************************************\n");
printf("< Hyperstart Version: %s\n", VERSIONCOMMIT);
printf("<**********************************************************************\n");
if (mount("proc", "/proc", "proc", MS_NOSUID| MS_NODEV| MS_NOEXEC, NULL) == -1) {
perror("mount proc failed");
return -1;
Expand Down