doc: fix $disk usage in GSG

The commands in the Getting Started Guide for copying files to and from
the USB stick will fail if the USB stick volume name has a space in it.
Fix this by quoting uses of $disk.

Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
David B. Kinder 2021-12-14 08:48:41 -08:00 committed by David Kinder
parent 60097affd3
commit 7c8004ab0d

View File

@ -317,8 +317,8 @@ Generate a Board Configuration File
cd ~/acrn-work/ cd ~/acrn-work/
disk="/media/$USER/"$(ls /media/$USER) disk="/media/$USER/"$(ls /media/$USER)
cp -r acrn-hypervisor/misc/config_tools/board_inspector/ $disk/ cp -r acrn-hypervisor/misc/config_tools/board_inspector/ "$disk"/
sync && sudo umount $disk sync && sudo umount "$disk"
#. Insert the USB disk into the target system. #. Insert the USB disk into the target system.
@ -328,7 +328,7 @@ Generate a Board Configuration File
mkdir -p ~/acrn-work mkdir -p ~/acrn-work
disk="/media/$USER/"$(ls /media/$USER) disk="/media/$USER/"$(ls /media/$USER)
cp -r $disk/board_inspector ~/acrn-work cp -r "$disk"/board_inspector ~/acrn-work
#. On the target, load the ``msr`` driver, used by the Board Inspector: #. On the target, load the ``msr`` driver, used by the Board Inspector:
@ -360,8 +360,8 @@ Generate a Board Configuration File
.. code-block:: bash .. code-block:: bash
disk="/media/$USER/"$(ls /media/$USER) disk="/media/$USER/"$(ls /media/$USER)
cp ~/acrn-work/board_inspector/my_board.xml $disk/ cp ~/acrn-work/board_inspector/my_board.xml "$disk"/
sync && sudo umount $disk sync && sudo umount "$disk"
#. Insert the USB disk into the development computer. #. Insert the USB disk into the development computer.
@ -370,8 +370,8 @@ Generate a Board Configuration File
.. code-block:: bash .. code-block:: bash
disk="/media/$USER/"$(ls /media/$USER) disk="/media/$USER/"$(ls /media/$USER)
cp $disk/my_board.xml ~/acrn-work cp "$disk"/my_board.xml ~/acrn-work
sudo umount $disk sudo umount "$disk"
.. _gsg-dev-setup: .. _gsg-dev-setup:
@ -526,13 +526,13 @@ Build ACRN
.. code-block:: bash .. code-block:: bash
disk="/media/$USER/"$(ls /media/$USER) disk="/media/$USER/"$(ls /media/$USER)
cp linux-5.10.65-acrn-service-vm-x86.tar.gz $disk/ cp linux-5.10.65-acrn-service-vm-x86.tar.gz "$disk"/
cp ~/acrn-work/acrn-hypervisor/build/hypervisor/acrn.bin $disk/ cp ~/acrn-work/acrn-hypervisor/build/hypervisor/acrn.bin "$disk"/
cp ~/acrn-work/acrn-hypervisor/build/hypervisor/serial.conf $disk/ cp ~/acrn-work/acrn-hypervisor/build/hypervisor/serial.conf "$disk"/
cp ~/acrn-work/my_board/output/launch_user_vm_id3.sh $disk/ cp ~/acrn-work/my_board/output/launch_user_vm_id3.sh "$disk"/
cp ~/acrn-work/acpica-unix-20210105/generate/unix/bin/iasl $disk/ cp ~/acrn-work/acpica-unix-20210105/generate/unix/bin/iasl "$disk"/
cp ~/acrn-work/acrn-hypervisor/build/acrn-2.7-unstable.tar.gz $disk/ cp ~/acrn-work/acrn-hypervisor/build/acrn-2.7-unstable.tar.gz "$disk"/
sync && sudo umount $disk/ sync && sudo umount "$disk"/
Even though our sample default scenario defines six User VMs, we're only Even though our sample default scenario defines six User VMs, we're only
going to launch one of them, so we'll only need the one launch script. going to launch one of them, so we'll only need the one launch script.
@ -547,8 +547,8 @@ Build ACRN
.. code-block:: bash .. code-block:: bash
disk="/media/$USER/"$(ls /media/$USER) disk="/media/$USER/"$(ls /media/$USER)
cp $disk/linux-5.10.65-acrn-service-vm-x86.tar.gz ~/acrn-work cp "$disk"/linux-5.10.65-acrn-service-vm-x86.tar.gz ~/acrn-work
cp $disk/acrn-2.7-unstable.tar.gz ~/acrn-work cp "$disk"/acrn-2.7-unstable.tar.gz ~/acrn-work
#. Extract the Service VM files onto the target system: #. Extract the Service VM files onto the target system:
@ -572,11 +572,11 @@ Build ACRN
.. code-block:: bash .. code-block:: bash
sudo mkdir -p /boot/acrn/ sudo mkdir -p /boot/acrn/
sudo cp $disk/acrn.bin /boot/acrn sudo cp "$disk"/acrn.bin /boot/acrn
sudo cp $disk/serial.conf /etc sudo cp "$disk"/serial.conf /etc
sudo cp $disk/iasl /usr/sbin/ sudo cp "$disk"/iasl /usr/sbin/
cp $disk/launch_user_vm_id3.sh ~/acrn-work cp "$disk"/launch_user_vm_id3.sh ~/acrn-work
sudo umount $disk/ sudo umount "$disk"/
.. rst-class:: numbered-step .. rst-class:: numbered-step