Fix debian build

This commit is contained in:
Ryo Ota 2021-09-20 11:04:46 +09:00 committed by Fabian
commit 51105a6700
3 changed files with 8 additions and 8 deletions

View file

@ -1,4 +1,4 @@
FROM i386/debian
FROM i386/debian:buster
ENV DEBIAN_FRONTEND noninteractive

View file

@ -1,9 +1,9 @@
#!/usr/bin/env bash
set -veu
OUT_ROOTFS_TAR=$(dirname "$0")/../../images/debian-9p-rootfs.tar
OUT_ROOTFS_FLAT=$(dirname "$0")/../../images/debian-9p-rootfs-flat
OUT_FSJSON=$(dirname "$0")/../../images/debian-base-fs.json
OUT_ROOTFS_TAR=$(dirname "$0")/../../../images/debian-9p-rootfs.tar
OUT_ROOTFS_FLAT=$(dirname "$0")/../../../images/debian-9p-rootfs-flat
OUT_FSJSON=$(dirname "$0")/../../../images/debian-base-fs.json
CONTAINER_NAME=debian-full
IMAGE_NAME=i386/debian-full
@ -13,10 +13,10 @@ docker create -t -i --name "$CONTAINER_NAME" "$IMAGE_NAME" bash
docker export "$CONTAINER_NAME" > "$OUT_ROOTFS_TAR"
$(dirname "$0")/../../tools/fs2json.py --out "$OUT_FSJSON" "$OUT_ROOTFS_TAR"
$(dirname "$0")/../../../tools/fs2json.py --out "$OUT_FSJSON" "$OUT_ROOTFS_TAR"
# Note: Not deleting old files here
mkdir -p "$OUT_ROOTFS_FLAT"
$(dirname "$0")/../../tools/copy-to-sha256.py "$OUT_ROOTFS_TAR" "$OUT_ROOTFS_FLAT"
$(dirname "$0")/../../../tools/copy-to-sha256.py "$OUT_ROOTFS_TAR" "$OUT_ROOTFS_FLAT"
echo "$OUT_ROOTFS_TAR", "$OUT_ROOTFS_FLAT" and "$OUT_FSJSON" created.

View file

@ -9,9 +9,9 @@ const path = require("path");
console.log("Don't forget to run `make all` before running this script");
var fs = require("fs");
var V86 = require("./../../build/libv86.js").V86;
var V86 = require("./../../../build/libv86.js").V86;
const V86_ROOT = path.join(__dirname, "../..");
const V86_ROOT = path.join(__dirname, "../../..");
var OUTPUT_FILE = path.join(V86_ROOT, "images/debian-state-base.bin");