Integrate linien-server to not-os #50

Merged
sb10q merged 1 commits from fsagbuya/nix-servo:linien-server into master 2024-08-17 17:37:24 +08:00
1 changed files with 3 additions and 1 deletions

View File

@ -385,7 +385,9 @@
export PATH=${pkgs.qemu}/bin:$PATH export PATH=${pkgs.qemu}/bin:$PATH
IMGDIR=$(mktemp -d /tmp/not-os-qemu-XXXXXX) IMGDIR=$(mktemp -d /tmp/not-os-qemu-XXXXXX)
BASE=$(realpath $(dirname $0)) BASE=$(realpath $(dirname $0))
qemu-img create -F raw -f qcow2 -b $BASE/sd-image.img $IMGDIR/sd-overlay.qcow2 512M
qemu-img convert -O qcow2 -f raw -o preallocation=metadata $BASE/sd-image.img $IMGDIR/sd-sparse.qcow2
Outdated
Review

That big?

That big?
1015M -r--r--r--  2 root root  1.1G Jan  1  1970 sd-image.img

Will reduce it to 2G.

``` 1015M -r--r--r-- 2 root root 1.1G Jan 1 1970 sd-image.img ``` Will reduce it to 2G.
qemu-img create -F qcow2 -f qcow2 -b $IMGDIR/sd-sparse.qcow2 $IMGDIR/sd-overlay.qcow2 1G
# Some command arguments are based from samples in Xilinx QEMU User Documentation # Some command arguments are based from samples in Xilinx QEMU User Documentation
# See: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821854273/Running+Bare+Metal+Applications+on+QEMU # See: https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/821854273/Running+Bare+Metal+Applications+on+QEMU