It's 2016; why are we using ColdFusion?!
Signed-off-by: RouxAntoine <antoinroux@hotmail.fr>
This commit is contained in:
parent
8fa8bf7e1a
commit
bae4a4eba8
@ -1,4 +1,4 @@
|
|||||||
.PHONY: use-alpine use-arch use-ubuntu
|
.PHONY: use-arch use-ubuntu
|
||||||
|
|
||||||
# aarch64
|
# aarch64
|
||||||
# x86_64
|
# x86_64
|
||||||
@ -7,9 +7,6 @@ ARCH=x86_64
|
|||||||
use-arch: ../out/arch-rootfs.ext4
|
use-arch: ../out/arch-rootfs.ext4
|
||||||
ln -fs $< ../out/rootfs.ext4
|
ln -fs $< ../out/rootfs.ext4
|
||||||
|
|
||||||
use-alpine: ../out/alpine-rootfs.ext4
|
|
||||||
ln -fs $< ../out/rootfs.ext4
|
|
||||||
|
|
||||||
use-ubuntu: ../out/ubuntu-22.04.ext4 ../out/ubuntu-22.04.id_rsa
|
use-ubuntu: ../out/ubuntu-22.04.ext4 ../out/ubuntu-22.04.id_rsa
|
||||||
ln -fs $< ../out/rootfs.ext4
|
ln -fs $< ../out/rootfs.ext4
|
||||||
|
|
||||||
@ -22,9 +19,6 @@ kernel: ../out/vmlinux-5.10.204
|
|||||||
../out/arch-rootfs.ext4: ./arch-rootfs.sh
|
../out/arch-rootfs.ext4: ./arch-rootfs.sh
|
||||||
bash ./arch-rootfs.sh
|
bash ./arch-rootfs.sh
|
||||||
|
|
||||||
../out/alpine-rootfs.ext4: ./alpine-rootfs.sh
|
|
||||||
bash ./alpine-rootfs.sh
|
|
||||||
|
|
||||||
../out/ubuntu-22.04.ext4:
|
../out/ubuntu-22.04.ext4:
|
||||||
wget -O $@ https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.7/$(ARCH)/ubuntu-22.04.ext4
|
wget -O $@ https://s3.amazonaws.com/spec.ccfc.min/firecracker-ci/v1.7/$(ARCH)/ubuntu-22.04.ext4
|
||||||
|
|
||||||
|
@ -1,24 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -ex
|
|
||||||
|
|
||||||
DISK_SIZE=10G
|
|
||||||
DISK_FILE=../out/alpine-rootfs.ext4
|
|
||||||
DISK_ROOT=../out/mount
|
|
||||||
|
|
||||||
# Allocate rootfs disk
|
|
||||||
fallocate -l "$DISK_SIZE" "$DISK_FILE"
|
|
||||||
mkfs.ext4 -F $DISK_FILE
|
|
||||||
|
|
||||||
# Mount rootfs to mount
|
|
||||||
mkdir -p $DISK_ROOT
|
|
||||||
|
|
||||||
sudo mount $DISK_FILE $DISK_ROOT
|
|
||||||
|
|
||||||
wget -O ../out/alpine-minirootfs-3.19.0-x86_64.tar.gz https://dl-cdn.alpinelinux.org/alpine/v3.19/releases/x86_64/alpine-minirootfs-3.19.0-x86_64.tar.gz
|
|
||||||
|
|
||||||
sudo tar xvf ../out/alpine-minirootfs-3.19.0-x86_64.tar.gz --directory="$DISK_ROOT"
|
|
||||||
rm ../out/alpine-minirootfs-3.19.0-x86_64.tar.gz
|
|
||||||
|
|
||||||
sudo umount $DISK_ROOT
|
|
||||||
rmdir $DISK_ROOT
|
|
Loading…
Reference in New Issue
Block a user