summaryrefslogtreecommitdiffstats
path: root/scripts/boot.sh
diff options
context:
space:
mode:
authorsalmonik <salmonik@tuta.io>2026-08-01 18:25:55 +0200
committersalmonik <salmonik@tuta.io>2026-08-01 18:25:55 +0200
commit1ea2f68e6a9af135e6cb3274fdf28d4ddc5812d5 (patch)
treef28246586e387293d0c8beaf6b445210aaab8c48 /scripts/boot.sh
parentklog/tty/pager: no more truncated lines — full lines flow, terminal wraps (diff)
downloadrs-dos-1ea2f68e6a9af135e6cb3274fdf28d4ddc5812d5.tar.gz
rs-dos-1ea2f68e6a9af135e6cb3274fdf28d4ddc5812d5.zip
fix pi-lens warnings: unwraps, shell SC2046, dup code (fmtbuf/scripts/hexdump/cat/ahci/pci)
- memory.rs: self-test Layout::from_size_align no longer panics — the test fails cleanly on an invalid layout - fat.rs: v() no longer unwraps the active-volume slot — invariant violation logs + halts instead of panicking mid-disk-io - strbuf: shared FmtBuf replaces the duplicated PanicBuf/FmtBuf (main.rs + sched.rs) - test-disk.sh: SC2046 — conditional --fresh arg no longer relies on word splitting - scripts: boot.sh/boot-image.sh share lib-boot-args.sh (dup args loop) - shell: cat/hexdump stdin pairs unified with Option<&str> marker; hexdump format_row folded into format_partial - ahci: read/write_sectors unified behind dma_sectors - pci: config_read/write share config_addr
Diffstat (limited to 'scripts/boot.sh')
-rwxr-xr-xscripts/boot.sh22
1 files changed, 5 insertions, 17 deletions
diff --git a/scripts/boot.sh b/scripts/boot.sh
index 99fd103..5b8e6fa 100755
--- a/scripts/boot.sh
+++ b/scripts/boot.sh
@@ -45,33 +45,21 @@ GUI=""
45DEBUG="" 45DEBUG=""
46 46
47# ---- args ---- 47# ---- args ----
48while [ $# -gt 0 ]; do 48source "$SCRIPT_DIR/lib-boot-args.sh"
49# boot.sh-specific flags live here; everything else is shared.
50handle_arg() {
49 case "$1" in 51 case "$1" in
50 --gui | -g) GUI="-vga std" ;;
51 --debug | -d) DEBUG="-s -S" ;;
52 --release | -r) 52 --release | -r)
53 PROFILE="release" 53 PROFILE="release"
54 CARGO_FLAGS="--release" 54 CARGO_FLAGS="--release"
55 ;; 55 ;;
56 --mem)
57 shift
58 MEM="$1"
59 ;;
60 --smp)
61 shift
62 SMP="$1"
63 ;;
64 --help | -h)
65 head -20 "$0" | grep "^#" | sed 's/^# //'
66 exit 0
67 ;;
68 *) 56 *)
69 echo "unknown: $1" 57 echo "unknown: $1"
70 exit 1 58 exit 1
71 ;; 59 ;;
72 esac 60 esac
73 shift 61}
74done 62parse_boot_args "$@"
75 63
76OUT_DIR="target/x86_64-unknown-uefi/$PROFILE" 64OUT_DIR="target/x86_64-unknown-uefi/$PROFILE"
77KERNEL="$OUT_DIR/rsdos.efi" 65KERNEL="$OUT_DIR/rsdos.efi"