Giter Club home page Giter Club logo

fedora-image's Introduction

INSTALL

Install mock for chroot environment.

sudo dnf install mock
usermod -a -G mock "$(whoami)"

# Clone repository
git clone https://github.com/hriva/fedora-image.git
cd fedora-image

You can check available mock environment configs in /etc/mock/

Prepare mock environment.

mock -r fedora-40-x86_64 --init
mock -r fedora-40-x86_64 --install lorax-lmc-novirt vim-minimal pykickstart livecd-tools
sudo setenforce 0

This will create a new root with a builddir at /var/lib/mock/<mock-config>/root/builddir/. So you can move ks files here prior to beginning.

Copy the flattened file to the chroot directory.

cp flats/alchemist-live-flat.ks /var/lib/mock/fedora-40-x86_64/root/builddir/

Enter mock environment

mock -r fedora-40-x86_64 --shell --enable-network --isolation=simple

From within the chroot, run:

#<mock-chroot> sh-5.2#
livemedia-creator --ks alchemist-live-flat.ks --no-virt --resultdir /var/lmc --project Fedora-Live --make-iso --volid Fedora --iso-only --iso-name Fedora-40-x86_64.iso --releasever 40 --macboot

After the iso is produced. Exit the mock environment and move the resulting iso to the repository directory.

cp /var/lib/mock/fedora-40-x86_64/root/var/lmc/*.iso .
sudo setenforce 1

Optionally clean the mock environment.

mock -r fedora-40-x86_64 --clean

fedora-image's People

Contributors

hriva avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.