qemu doc: add modify list/mount instructions to use losetup to map partitions to loop0pX and mount them to get public key

Signed-off-by: Thierry Laurion <insurgo@riseup.net>
This commit is contained in:
Thierry Laurion 2023-10-24 13:16:16 -04:00
parent b2cb9b4997
commit 2b21623bc6
No known key found for this signature in database
GPG Key ID: E7B4A71658E36A93

View File

@ -41,7 +41,8 @@ Bootstrapping a working system
* Then Heads will indicate that there is no TOTP code yet, at this point shut down (Continue to main menu -> Power off) * Then Heads will indicate that there is no TOTP code yet, at this point shut down (Continue to main menu -> Power off)
5. Get the public key that was saved to the virtual USB flash drive 5. Get the public key that was saved to the virtual USB flash drive
* `sudo mkdir /media/fd_heads_gpg` * `sudo mkdir /media/fd_heads_gpg`
* `sudo mount ./build/x86/qemu-coreboot-fbwhiptail-tpm1-hotp/usb_fd.raw /media/fd_heads_gpg` * `sudo losetup --find --partscan ./build/x86/qemu-coreboot-fbwhiptail-tpm1-hotp/usb_fd.raw`
* `sudo mount /dev/loop0p2 /media/fd_heads_gpg` to mount the second partition (public) or if only one partition, /dev/loop0p1
* Look in `/media/fd_heads_gpg` and copy the most recent public key * Look in `/media/fd_heads_gpg` and copy the most recent public key
* `sudo umount /media/fd_heads_gpg` * `sudo umount /media/fd_heads_gpg`
6. Inject the GPG key into the Heads image and run again 6. Inject the GPG key into the Heads image and run again