fix networking.
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
cd "$(dirname "$0")"
|
||||
cd ..
|
||||
disk="./outputs/boot_image.img"
|
||||
qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -drive format=raw,file=$disk -m 12G -smp 8 -vga none -usb -device usb-tablet --display sdl,gl=off --device virtio-gpu-pci -enable-kvm -machine type=pc-q35-3.1,accel=kvm,kernel_irqchip=on
|
||||
qemu-system-x86_64 -bios /usr/share/ovmf/OVMF.fd -drive format=raw,file=$disk -m 16G -smp 8 -vga virtio -usb -device usb-tablet --display gtk,gl=off --device virtio-gpu-pci -enable-kvm -machine type=pc-q35-3.1,accel=kvm,kernel_irqchip=on
|
||||
|
||||
@@ -9,6 +9,9 @@ cd "$(dirname "$0")"
|
||||
DIR="$(dirname "$0")"
|
||||
cd ..
|
||||
echo $PWD
|
||||
if mountpoint -q "./outputs/chroot/proc/"; then
|
||||
umount -lf "./outputs/chroot/proc/"
|
||||
fi
|
||||
|
||||
if [ ! -d ./outputs/root/bin ]; then
|
||||
rm -rf './outputs/root'
|
||||
@@ -25,6 +28,8 @@ if mountpoint -q "./outputs/chroot/proc/"; then
|
||||
fi
|
||||
mount --bind /proc ./outputs/chroot/proc
|
||||
cp ./config/filesystem_chroot_install.sh ./outputs/chroot/filesystem_chroot_install.sh
|
||||
cp ./config/interfaces.network ./outputs/chroot/etc/systemd/network/10-all.network
|
||||
cp ./config/resolved.conf ./outputs/chroot/etc/systemd/resolved.conf
|
||||
chmod +x ./outputs/chroot/filesystem_chroot_install.sh
|
||||
chroot ./outputs/chroot /bin/bash -c "/filesystem_chroot_install.sh"
|
||||
cd $DIR
|
||||
|
||||
@@ -20,11 +20,7 @@ cp ./config/init.sh ./dependencies/initram/init
|
||||
chmod +x ./dependencies/initram/init
|
||||
echo "copying kernel"
|
||||
cp ./dependencies/linux/arch/x86_64/boot/bzImage ./outputs/bzImage.efi
|
||||
cd ./dependencies/initram
|
||||
cd "$(dirname "$0")"
|
||||
cd ..
|
||||
cd ./dependencies/initram
|
||||
echo $PWD
|
||||
cd ./dependencies/initram/
|
||||
find . -type f -name "*" -exec chmod +x {} +
|
||||
find . -print0 | cpio --null -ov --format=newc | gzip -9 > ../../outputs/initramfs.cpio.gz
|
||||
echo "created initramfs."
|
||||
|
||||
Reference in New Issue
Block a user