diff --git a/src/boot.sh b/src/boot.sh index 741cf45..2ecf50a 100644 --- a/src/boot.sh +++ b/src/boot.sh @@ -99,11 +99,12 @@ else esac fi -SM_BIOS="/run/shm/bios.bin" -rm -f "$SM_BIOS" +SM_BIOS="" +BIOS_SERIAL=$(/dev/null; then - SM_BIOS="" +if [ -n "$BIOS_SERIAL" ]; then + SM_BIOS="-smbios type=1,serial=$BIOS_SERIAL" fi return 0