Implement storage device partition rescan (XDRV_PARTITION_RESCAN), Self-hosted installation WIP
This commit is contained in:
@@ -3,20 +3,15 @@
|
||||
make -C boot/limine
|
||||
rm -rf iso_root
|
||||
mkdir -p iso_root/boot/limine
|
||||
mkdir -p iso_root/EFI/BOOT
|
||||
|
||||
cp -v kernel/build/kernel.elf iso_root/boot
|
||||
cp -v boot/limine/limine-bios.sys boot/limine/limine-bios-cd.bin \
|
||||
boot/limine/limine-uefi-cd.bin boot/limine.conf iso_root/boot/limine
|
||||
|
||||
cp -v boot/limine/BOOTX64.EFI boot/limine/BOOTIA32.EFI iso_root/EFI/BOOT
|
||||
boot/limine.conf iso_root/boot/limine
|
||||
|
||||
cp -v mop3dist.tar.lz4 iso_root/boot
|
||||
|
||||
xorriso -as mkisofs -R -r -b boot/limine/limine-bios-cd.bin \
|
||||
-no-emul-boot -boot-load-size 4 -boot-info-table -hfsplus \
|
||||
-apm-block-size 2048 --efi-boot boot/limine/limine-uefi-cd.bin \
|
||||
-efi-boot-part --efi-boot-image --protective-msdos-label \
|
||||
-no-emul-boot -boot-load-size 4 -boot-info-table \
|
||||
iso_root -o mop3.iso
|
||||
|
||||
boot/limine/limine bios-install mop3.iso
|
||||
|
||||
@@ -19,7 +19,7 @@ while [[ $# -gt 0 ]]; do
|
||||
shift
|
||||
;;
|
||||
--test-pci-ide)
|
||||
QEMU_EXTRA+=" -hda $2 "
|
||||
QEMU_EXTRA+=" -drive file=$2,format=raw,if=ide,index=0,media=disk "
|
||||
shift
|
||||
shift
|
||||
;;
|
||||
@@ -43,4 +43,4 @@ done
|
||||
[ "$ENABLE_KVM" -eq 1 ] && KVM_FLAG="-enable-kvm" || KVM_FLAG=""
|
||||
|
||||
qemu-system-x86_64 -M pc -m 4G -serial stdio $KVM_FLAG \
|
||||
-cdrom mop3.iso -smp 4 -boot d $QEMU_EXTRA "${POSITIONAL_ARGS[@]}"
|
||||
-smp 4 -boot menu=on $QEMU_EXTRA "${POSITIONAL_ARGS[@]}"
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
|
||||
set -x
|
||||
|
||||
picocom -b 38400 --imap lfcrlf --omap crlf /dev/ttyUSB0
|
||||
picocom -b 38400 --imap lfcrlf --omap crlf $1
|
||||
|
||||
Reference in New Issue
Block a user