2022-06-30 02:35:18 +00:00
|
|
|
# R9 specific kickstarts
|
2021-11-13 22:29:28 +00:00
|
|
|
|
|
|
|
This branch has Rocky Linux 8 specific kickstarts. These kickstarts vary
|
|
|
|
between cloud images and live images provided in our repositories and
|
|
|
|
mirrors.
|
|
|
|
|
|
|
|
## Building Live Images
|
|
|
|
|
|
|
|
To build live images, you will need to use `livecd-creator` or
|
|
|
|
`livemedia-creator`. The former is simpler to use and generally works without
|
|
|
|
many issues. The latter can be a bit more tricky to work with and typically
|
|
|
|
runs the installer virtually. However, it can be used without a virtual machine
|
|
|
|
like in a mock shell.
|
|
|
|
|
|
|
|
### Using livemedia-creator
|
|
|
|
|
|
|
|
To use livemedia-creator without using virt, you can use a mock shell. To
|
|
|
|
setup a mock chroot for the purpose of building a live image, you would
|
|
|
|
set it up like so:
|
|
|
|
|
|
|
|
```
|
|
|
|
# Install mock if you haven't already
|
|
|
|
% dnf install epel-release -y
|
|
|
|
% dnf install mock -y
|
|
|
|
|
|
|
|
# Add a user to the mock group
|
|
|
|
% usermod -a -G mock user
|
|
|
|
|
|
|
|
# As the user, setup the mock environment
|
2022-06-30 02:35:18 +00:00
|
|
|
% mock -r rocky-9-x86_64 --init
|
|
|
|
% mock -r rocky-9-x86_64 --install lorax-lmc-novirt vim-minimal pykickstart git
|
2021-11-13 22:29:28 +00:00
|
|
|
# You will need to be in permissive mode temporarily
|
|
|
|
% setenforce 0
|
|
|
|
# Enter the shell
|
2022-06-30 02:35:18 +00:00
|
|
|
% mock -r rocky-9-x86_64 --shell --isolation=simple --enable-network
|
2021-11-13 22:29:28 +00:00
|
|
|
|
|
|
|
# Clone the kickstarts and run an installation
|
|
|
|
% git clone https://github.com/rocky-linux/kickstarts
|
|
|
|
% cd kickstarts
|
2022-06-30 02:35:18 +00:00
|
|
|
% livemedia-creator --ks Rocky-9-Workstation.ks \
|
2021-11-13 22:29:28 +00:00
|
|
|
--no-virt \
|
|
|
|
--resultdir /var/lmc \
|
|
|
|
--project="Rocky Linux" \
|
|
|
|
--make-iso \
|
2022-06-30 02:35:18 +00:00
|
|
|
--volid Rocky-Workstation-9 \
|
2021-11-13 22:29:28 +00:00
|
|
|
--iso-only \
|
2022-06-30 02:35:18 +00:00
|
|
|
--iso-name Rocky-Workstation-9-x86_64.iso \
|
2021-11-13 22:29:28 +00:00
|
|
|
--releasever=8 \
|
|
|
|
--nomacboot # This option is important to set, mkfs.hfsplus is not available
|
|
|
|
```
|
|
|
|
|
|
|
|
With the example above, all of the results will appear in
|
2022-06-30 02:35:18 +00:00
|
|
|
`/var/lib/mock/rocky-9-x86_64/root/var/lmc`.
|