mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 21:22:46 +00:00 
			
		
		
		
	Meta: Make 'run.sh qgrub' work via SERENITY_RUN
It is possible to set the run.sh mode via the SERENITY_RUN environment
variable, but the SERENITY_DISK_IMAGE="grub_disk_image" override for
qgrub mode was only checking $1. This makes qgrub mode work via 'ninja
run' without explicitly setting SERENITY_DISK_IMAGE:
    SERENITY_RUN=qgrub ninja run
			
			
This commit is contained in:
		
							parent
							
								
									b807e725e0
								
							
						
					
					
						commit
						a013a38e24
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -25,6 +25,7 @@ if [ "$(uname)" = "Darwin" ] && [ "$(uname -m)" = "x86_64" ]; then | |||
|     fi | ||||
| fi | ||||
| 
 | ||||
| SERENITY_RUN="${SERENITY_RUN:-$1}" | ||||
| 
 | ||||
| [ -z "$SERENITY_QEMU_BIN" ] && SERENITY_QEMU_BIN="qemu-system-i386" | ||||
| 
 | ||||
|  | @ -35,7 +36,7 @@ fi | |||
| [ -z "$SERENITY_QEMU_CPU" ] && SERENITY_QEMU_CPU="max" | ||||
| 
 | ||||
| [ -z "$SERENITY_DISK_IMAGE" ] && { | ||||
|     if [ "$1" = qgrub ]; then | ||||
|     if [ "$SERENITY_RUN" = qgrub ]; then | ||||
|         SERENITY_DISK_IMAGE="grub_disk_image" | ||||
|     else | ||||
|         SERENITY_DISK_IMAGE="_disk_image" | ||||
|  | @ -79,8 +80,6 @@ export SDL_VIDEO_X11_DGAMOUSE=0 | |||
| : "${SERENITY_BUILD:=.}" | ||||
| cd -P -- "$SERENITY_BUILD" || die "Could not cd to \"$SERENITY_BUILD\"" | ||||
| 
 | ||||
| SERENITY_RUN="${SERENITY_RUN:-$1}" | ||||
| 
 | ||||
| if [ "$SERENITY_RUN" = "b" ]; then | ||||
|     # Meta/run.sh b: bochs | ||||
|     [ -z "$SERENITY_BOCHSRC" ] && { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Linus Groh
						Linus Groh