mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-18 02:39:59 +00:00
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:
parent
b2cb9b4997
commit
2b21623bc6
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user