Skip to content

Commit f02111a

Browse files
committed
debian 12 notes
1 parent e4af24d commit f02111a

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

images/chromium-headful/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
bin/
22
recording/
33
.tmp/
4+
.rootfs/
5+
initrd

images/chromium-headful/build-unikernel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ docker rm cnt-"$app_name" || true
2222
docker create --platform linux/amd64 --name cnt-"$app_name" "$IMAGE" /bin/sh
2323
docker cp cnt-"$app_name":/ ./.rootfs
2424
rm -f initrd || true
25-
mkfs.erofs --all-root -d2 -E noinline_data -b 4096 initrd ./.rootfs
25+
sudo mkfs.erofs --all-root -d2 -E noinline_data -b 4096 initrd ./.rootfs
2626

2727
# Package the unikernel (and the new initrd) to KraftCloud
2828
kraft pkg \

shared/erofs-utils.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,14 @@ install_erofs_utils() {
4141
exit 1
4242
fi
4343
}
44+
45+
# on debian 12 you have to grab mkfs.erofs from sid:
46+
# echo "deb http://deb.debian.org/debian unstable main" \
47+
# | sudo tee /etc/apt/sources.list.d/unstable.list
48+
# cat <<'EOF' | sudo tee /etc/apt/preferences.d/90-unstable
49+
# Package: *
50+
# Pin: release a=unstable
51+
# Pin-Priority: 90
52+
# EOF
53+
# sudo apt update
54+
# sudo apt -t unstable install erofs-utils

0 commit comments

Comments
 (0)