Skip to content

Commit d4e1133

Browse files
author
Every Packet Matters Bear
committed
Updated readme with preface and some tweaks
1 parent 1c12edb commit d4e1133

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

README.md

+21-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GentooImgr: Gentoo Image Builder for Cloud and Turnkey ISO installers
33

44
GentooImgr is a python script system to build cloud images based on Gentoo Linux.
55

6-
Huge thanks to https://github.com/travisghansen/gentoo-cloud-image-builder.
6+
Huge thanks to https://github.com/travisghansen/gentoo-cloud-image-builder for providing a foundation to work from.
77

88

99
**Features:**
@@ -17,6 +17,17 @@ Huge thanks to https://github.com/travisghansen/gentoo-cloud-image-builder.
1717

1818
**rename to gentooimgr, upload to pip**
1919

20+
Preface
21+
-------
22+
23+
This project was created so I could spawn off Gentoo OS templates on my Proxmox server for various services while being more efficient than many other Linux OS's and avoiding systemd.
24+
25+
This python module contains all the software needed to download resources, build the image, run the image in qemu, and allow for some extensibility. The built-in functionality includes a base standard gentoo image configuration as well as a cloud-init image that can be run. You can copy the .json config file and optionally a kernel .config file to configure your image to your liking and pass it in with ``--config``.
26+
27+
This software is in beta so please report any issues or feature requests. You are **highly** encouraged to do so.
28+
29+
Thanks!
30+
2031
Roadmap
2132
-------
2233

@@ -25,7 +36,7 @@ Roadmap
2536
- Successfully built a gentoo qcow2 image that can be run in qemu, but it requires using the --dist-kernel flag
2637
as building from source still requires some work.
2738

28-
* [ ] Use gentooimgr to create a usable cloud image
39+
* [X] Use gentooimgr to create a usable cloud image (requires --dist-kernel currently)
2940
* [ ] Use gentooimgr to create Gentoo installations on other non-amd64/non-native architectures (ex: ppc64)
3041

3142

@@ -45,19 +56,15 @@ Usage
4556
```sh
4657
git clone https://github.com/NucleaPeon/gentooimgr.git
4758
python -m gentooimgr build
48-
# python -m gentooimgr --config-_____ build
4959
python -m gentooimgr run
50-
# a basic run will build a default gentoo amd64 system. Use --kernel-dist to get a distribution kernel
51-
# python -m gentooimgr --config-_____ run
52-
# python -m gentooimgr --config-cloud run
5360
```
5461

5562
Once qemu is running, mount the available gentooimgr iso and run the appropriate command:
5663

5764
```sh
58-
mkdir -p /mnt/gentooimgr
59-
mount /dev/disk/by-label/gentooimgr /mnt/gentooimgr
60-
cd /mnt/gentooimgr
65+
mkdir -p /mnt/gi
66+
mount /dev/disk/by-label/gentooimgr /mnt/gi
67+
cd /mnt/gi
6168
python -m gentooimgr --config-cloud install
6269
```
6370

@@ -69,13 +76,16 @@ Then perform any additional procedures, such as shrinking the img from 10G to ~3
6976
python -m gentooimgr shrink gentoo.qcow2
7077
```
7178

79+
**NOTE** Due to how ``gentooimgr`` dynamically finds the most recent portage/stage3 and iso files, if multiples exist in the same directory you may have to specify them using the appropriate flag (ie: ``--iso [path-to-iso]``). Older images can be used in this manner and eventually setting those values in the .json file should be recognized by gentooimgr so there will be no need to specify them on the command line.
80+
81+
7282

7383
Extended Usage
7484
--------------
7585

7686
GentooImgr is flexible in that it can be run on a live running system as well as on a livecd in qemu;
7787

78-
It's possible to automate a new bare-metal Gentoo installation (with some further development) simply by running ``cloud-cfg`` or equivalent command to install and set up everything.
88+
It's possible to automate a new bare-metal Gentoo installation (with some further development) simply by running the ``install`` action or equivalent command to install and set up everything.
7989

8090
Eventually, GentooImgr will be used to build gentoo turnkey OS images automatically.
8191

@@ -96,7 +106,7 @@ Mounts/binds are handled automatically when you chroot, but you will need to ``u
96106

97107
```sh
98108
python -m gentooimgr chroot
99-
ls /usr/src/linux
109+
# do stuff
100110
exit
101111
python -m gentooimgr unchroot
102112
```

0 commit comments

Comments
 (0)