mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-26 02:43:24 +00:00
Adapt Docker environment and minor fixes
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
47a51eb423
commit
d407d85e70
@ -1,5 +1,8 @@
|
|||||||
|
set timeout_style=menu
|
||||||
|
set timeout=1
|
||||||
|
|
||||||
menuentry 'jinux' {
|
menuentry 'jinux' {
|
||||||
multiboot2 /jinux
|
multiboot2 /boot/jinux
|
||||||
module2 --nounzip /ramdisk.cpio.gz
|
module2 --nounzip /boot/ramdisk.cpio.gz
|
||||||
boot
|
boot
|
||||||
}
|
}
|
||||||
|
@ -1,16 +1,17 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
set -eux
|
||||||
|
|
||||||
# Cargo passes the path to the built executable as the first argument.
|
# Cargo passes the path to the built executable as the first argument.
|
||||||
KERNEL=$1
|
KERNEL=$1
|
||||||
|
|
||||||
# Copy the needed files into an ISO image.
|
# Copy the needed files into an ISO image.
|
||||||
mkdir -p target/iso_root
|
mkdir -p target/iso_root
|
||||||
cp $KERNEL target/iso_root/jinux
|
cp $KERNEL target/iso_root/boot/jinux
|
||||||
mkdir -p target/iso_root/boot/grub
|
mkdir -p target/iso_root/boot/grub
|
||||||
cp build/grub/conf/grub.cfg target/iso_root/boot/grub
|
cp build/grub/conf/grub.cfg target/iso_root/boot/grub
|
||||||
|
|
||||||
# Copy ramdisk
|
# Copy ramdisk
|
||||||
cp regression/build/ramdisk.cpio.gz target/iso_root
|
cp regression/build/ramdisk.cpio.gz target/iso_root/boot
|
||||||
|
|
||||||
# Make boot device .iso image
|
# Make boot device .iso image
|
||||||
grub-mkrescue -o $KERNEL.iso target/iso_root
|
grub-mkrescue -o $KERNEL.iso target/iso_root
|
||||||
|
@ -101,6 +101,7 @@ fn main() -> anyhow::Result<()> {
|
|||||||
qemu_args.push("-drive");
|
qemu_args.push("-drive");
|
||||||
let binding = create_fs_image(kernel_binary_path.as_path())?;
|
let binding = create_fs_image(kernel_binary_path.as_path())?;
|
||||||
qemu_args.push(binding.as_str());
|
qemu_args.push(binding.as_str());
|
||||||
|
qemu_cmd.arg("-cdrom");
|
||||||
qemu_cmd.arg(kernel_iso_path.to_str().unwrap());
|
qemu_cmd.arg(kernel_iso_path.to_str().unwrap());
|
||||||
if binary_kind.is_test() {
|
if binary_kind.is_test() {
|
||||||
qemu_args.append(&mut TEST_ARGS.to_vec());
|
qemu_args.append(&mut TEST_ARGS.to_vec());
|
||||||
|
@ -15,6 +15,7 @@ RUN apt update && apt-get install -y --no-install-recommends \
|
|||||||
git-core \
|
git-core \
|
||||||
gnupg \
|
gnupg \
|
||||||
grub-common \
|
grub-common \
|
||||||
|
grub-pc \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
net-tools \
|
net-tools \
|
||||||
openssh-server \
|
openssh-server \
|
||||||
|
Reference in New Issue
Block a user