From ebab820f63cc548c113e59414b6c0cd72429ab26 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 18 Aug 2022 13:08:31 -0700 Subject: [PATCH] tools/gen_stage2.sh: dont run modprobe on behalf of user --- docs/ci/compatibility.md | 2 ++ tools/gen_stage2.sh | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/ci/compatibility.md b/docs/ci/compatibility.md index a8e4bde..a2e87fe 100644 --- a/docs/ci/compatibility.md +++ b/docs/ci/compatibility.md @@ -10,6 +10,8 @@ Support of a given platform is indicated by a tier system. The tiers are as foll > Note: while some functionality listed below might work, then number is only updated once verified. +> Note: if your kernel does not have support for [network block devices](https://www.kernel.org/doc/Documentation/blockdev/nbd.txt) you may need to run `# modprobe nbd max_part=8`. + 0. The os/arch combo is supported in some official capacity by upstream and a potential candidate. 1. A script exists in [`generate/`](../../generate) that can download and run the OS' installer; the process is documented in [bootstrap_images.md](bootstrap_images.md). 2. [`tools/gen_stage2.sh`](../../tools/gen_stage2.sh) can run the generated stage 1 `.qcow2` image; enables ssh, and dowloads LLVM + Zig. diff --git a/tools/gen_stage2.sh b/tools/gen_stage2.sh index 4b8f3da..160dcd4 100755 --- a/tools/gen_stage2.sh +++ b/tools/gen_stage2.sh @@ -27,7 +27,6 @@ set -x # # mount qcow2 to local file system mkdir -p mnt -sudo modprobe nbd max_part=8 sudo qemu-nbd --connect=/dev/nbd0 $after sudo fdisk /dev/nbd0 -l