alphacc / eight-livecd

Using lorax on el8
6 stars 1 forks source link

eight-livecd (RHEL8 Beta livecd)

Using lorax on el8 to create livemedia.

Motivation

I am using RHEL and derivatives (CentOS) pretty much everywhere at work and at home.

Building from the beta a livecd allows me to test quickly if my hardware is supported. It lowers the cycle of testing hardware and to be able to report bugs to Red Hat.

The good news : all tools needed are now part of RHEL8 Beta repositories.

As RHEL8 is heavly based on Fedora 28, I reused the kickstart provided by lorax in /usr/share/doc/lorax/. A simple diff will show you what I updated/changed.

Status (WIP)

Version kickstart name Status ISO Status PXE
minimal el8-livemedia-minimal.ks OK OK
workstation el8-livemedia.ks FAIL FAIL

Perequisites

Usage

Warning: using --novirt could crash your local install (from lorax documentationIt may totally trash your host. So far I haven’t had this happen, but the possibility exists that a bug in Anaconda could result in it operating on real devices. I recommend running it in a virt or on a system that you can afford to lose all data from.)

As soon as mock will be available for el8 I will update this documentation.

Now let's start:

Clone this repository:

git clone https://github.com/alphacc/eight-livecd
cd eight-livecd

Run as root livemedia-creator to create an ISO:

livemedia-creator --ks ks/el8-livemedia-minimal.ks --no-virt --resultdir  media/el8 --project RHEL-8-beta-live --make-iso --iso-only --iso-name RHEL-8-beta-live-x86_64.iso --releasever 8 --volid RHEL-8-beta-live --title RHEL-beta-live --macboot

Alternatively, to create PXE files:

livemedia-creator --ks ks/el8-livemedia-minimal.ks --no-virt --resultdir  media/el8 --project RHEL-8-beta-live --make-pxe-live --releasever 8 --volid RHEL-8-beta-live --title RHEL-beta-live

Debugging

lorax stores log in the current directory:

livemedia.log
program.log

Anaconda stores debugging info in /tmp and lorax copies it in ./anaconda in your current directory:

dbus.log
ifcfg.log
storage.log
anaconda.log
hawkey.log
program.log
packaging.log
dnf.cache
dnf.librepo.log

When used with livemedia-creator, yum 4 aka dnf stores his cache in /dnf.package.cache.

Common issues

Contributing

Please send a PR if you find bugs and/or improvement.