Skip to content

Commit 9719023

Browse files
committed
Ensure that all changes of previous commit are constrained to rr runs
1 parent d941cdd commit 9719023

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

run

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -818,8 +818,15 @@ Extra options to append at the end of the emulator command line.
818818
driveif = 'none'
819819
rrid = ',id=img-direct'
820820
rrid2 = ',id=img-direct2'
821-
root = 'root=/dev/sda'
821+
if self.env['is_arm']:
822+
root = 'root=/dev/vda'
823+
else:
824+
root = 'root=/dev/sda'
822825
snapshot = ',snapshot'
826+
if self.env['is_arm']:
827+
hd_dev = 'virtio-blk-device'
828+
else:
829+
hd_dev = 'ide-hd'
823830
else:
824831
driveif = 'virtio'
825832
root = 'root=/dev/vda'
@@ -847,10 +854,6 @@ Extra options to append at the end of the emulator command line.
847854
),
848855
LF,
849856
])
850-
hd_dev = 'ide-hd'
851-
if self.env['is_arm']:
852-
hd_dev = 'virtio-blk-device'
853-
root = 'root=/dev/vda'
854857
if rr:
855858
extra_emulator_args.extend([
856859
'-drive', 'driver=blkreplay,if=none,image=img-direct,id=img-blkreplay', LF,

0 commit comments

Comments
 (0)