README.md: update

This commit is contained in:
Harald Hoyer 2018-10-24 14:40:18 +02:00
parent b6df47a6be
commit 93ea5e8ace

View file

@ -77,14 +77,11 @@ All configurable files have been whitelisted and moved to /cfg.
## Create ## Create
### Export your GPG Key
```bash
$ gpg2 --export --export-options export-minimal <KEYNAME> > FedoraBook.gpg
```
### Prepare the Image ### Prepare the Image
For reproducible squashfs builds use https://github.com/squashfskit/squashfskit. Clone it in the
main FedoraBook directory and build it.
```bash ```bash
$ sudo ./prepare-root.sh \ $ sudo ./prepare-root.sh \
--pkglist pkglist.txt \ --pkglist pkglist.txt \
@ -96,7 +93,8 @@ $ sudo ./prepare-root.sh \
``` ```
This will create the following files and directories: This will create the following files and directories:
- ```FedoraBook``` - keep this directory around for updates (includes needed passwd/group history) - ```FedoraBook``` - keep this directory around for updates
(includes needed passwd/group history and rpmdb)
- ```FedoraBook-29.<datetime>``` - the resulting <IMGDIR> - ```FedoraBook-29.<datetime>``` - the resulting <IMGDIR>
- ```FedoraBook-latest.json``` - a metadata file for the update server - ```FedoraBook-latest.json``` - a metadata file for the update server
@ -108,6 +106,8 @@ unpack and use this as ```<IMGDIR>```.
Get [efitools](https://github.com/haraldh/efitools.git). Compile and create your keys. Get [efitools](https://github.com/haraldh/efitools.git). Compile and create your keys.
Copy ```LockDown.efi``` ```DB.key``` ```DB.crt``` from efitools to the fedorabook directory. Copy ```LockDown.efi``` ```DB.key``` ```DB.crt``` from efitools to the fedorabook directory.
Rename ```DB.key``` ```DB.crt``` to ```FedoraBook.key``` and ```FedoraBook.crt```
Optionally copy ```Shell.efi``` (might be ```/usr/share/edk2/ovmf/Shell.efi```) to the fedorabook directory. Optionally copy ```Shell.efi``` (might be ```/usr/share/edk2/ovmf/Shell.efi```) to the fedorabook directory.