From abb2767e129d516017297e850aa1d188b5092175 Mon Sep 17 00:00:00 2001 From: RouxAntoine Date: Fri, 5 Jan 2024 19:47:19 +0100 Subject: [PATCH] Commit committed.... Signed-off-by: RouxAntoine --- cmd/main.go | 6 +++--- rootf-kernel/alpine-rootfs.sh | 7 +++---- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 7c1c360..59193b7 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -132,9 +132,9 @@ func setupEnv() int { firecracker.VMCommandBuilder{}. WithBin("firecracker"). WithSocketPath(socketPath). - //WithStdin(os.Stdin). - //WithStdout(os.Stdout). - //WithStderr(os.Stderr). + WithStdin(os.Stdin). + WithStdout(os.Stdout). + WithStderr(os.Stderr). Build(ctx), ), firecracker.WithLogger(logrus.NewEntry(log)), diff --git a/rootf-kernel/alpine-rootfs.sh b/rootf-kernel/alpine-rootfs.sh index 010ebd0..92cb8c2 100755 --- a/rootf-kernel/alpine-rootfs.sh +++ b/rootf-kernel/alpine-rootfs.sh @@ -17,8 +17,7 @@ sudo mount $DISK_FILE $DISK_ROOT wget -O ../out/alpine-minirootfs-3.19.0-x86_64.tar.gz https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/x86_64/alpine-minirootfs-3.19.0-x86_64.tar.gz -tar xvf ../out/alpine-minirootfs-3.19.0-x86_64.tar.gz --directory="$DISK_ROOT" +sudo tar xvf ../out/alpine-minirootfs-3.19.0-x86_64.tar.gz --directory="$DISK_ROOT" - -#sudo umount $DISK_ROOT -#rmdir $DISK_ROOT +sudo umount $DISK_ROOT +rmdir $DISK_ROOT