mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:57:35 +00:00
Meta: Check if SERENITY_USE_SDCARD is set before checking its value
This avoids a bash complaint for the new option
This commit is contained in:
parent
f7608ba269
commit
875c3d109f
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ else
|
|||
fi
|
||||
fi
|
||||
|
||||
if [ "$SERENITY_USE_SDCARD" -eq 1 ]; then
|
||||
if [ -n "${SERENITY_USE_SDCARD}" ] && [ "${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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue