Skip to content

Commit 6d4643a

Browse files
committed
Build initrd and get kernel
1 parent e27c877 commit 6d4643a

3 files changed

Lines changed: 24 additions & 2 deletions

File tree

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
overlay/**
2-
./overlay
1+
rootfs/**
2+
./rootfs
33
initrd
4+
vmlinux

build-initrd.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
set -xe
2+
3+
IMAGE='onkernel/chromium-headful:74625c3'
4+
5+
docker pull $IMAGE
6+
7+
cid=$(docker create $IMAGE)
8+
rm -rf rootfs || true
9+
mkdir -p rootfs
10+
docker export "$cid" | tar -C rootfs -xf -
11+
docker rm "$cid"
12+
13+
# Uncompressed initrd, faster to boot up
14+
# Unikraft also does uncompressed
15+
find rootfs | cpio -H newc -o > initrd

get-kernel.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
VERSION='ch-release-v6.12.8-20250613'
4+
5+
# https://github.com/cloud-hypervisor/linux/releases
6+
wget https://github.com/cloud-hypervisor/linux/releases/download/$VERSION/vmlinux-x86_64 -O vmlinux

0 commit comments

Comments
 (0)