summaryrefslogtreecommitdiff
path: root/Meta/run.sh
diff options
context:
space:
mode:
authorMarco Cutecchia <marco.cutecchia@outlook.it>2023-04-02 01:21:53 +0200
committerAndrew Kaster <andrewdkaster@gmail.com>2023-04-02 12:43:17 -0600
commitf7608ba26900d71cec508c0ab435043d32ab896a (patch)
treea138deaf9bf8c8ba9ec451f560596459f415f931 /Meta/run.sh
parent425acb513e2e102f4d4d2ef5579cec18c3920e1a (diff)
downloadserenity-f7608ba26900d71cec508c0ab435043d32ab896a.zip
Meta: Add SERENITY_USE_SDCARD to boot from an SD card
Diffstat (limited to 'Meta/run.sh')
-rwxr-xr-xMeta/run.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/Meta/run.sh b/Meta/run.sh
index 1a4d9b9667..e9615265e4 100755
--- a/Meta/run.sh
+++ b/Meta/run.sh
@@ -254,6 +254,11 @@ else
fi
fi
+if [ "$SERENITY_USE_SDCARD" -eq 1 ]; then
+ SERENITY_BOOT_DRIVE="-device sdhci-pci -device sd-card,drive=sd-boot-drive -drive id=sd-boot-drive,if=none,format=raw,file=${SERENITY_DISK_IMAGE}"
+ SERENITY_KERNEL_CMDLINE="$SERENITY_KERNEL_CMDLINE root=sd2:0:0"
+fi
+
if [ -z "$SERENITY_HOST_IP" ]; then
SERENITY_HOST_IP="127.0.0.1"
fi