Skip to content

Instantly share code, notes, and snippets.

@M4rtinK
M4rtinK / update_iso.sh v1
Created January 22, 2024 13:16
Automatically update Fedora boot.iso with Anaconda installer changes. v1
#!/bin/bash
# Create a self contained ISO image containing Anaconda changes
# =============================================================
#
# This script fetches a Fedora Rawhide boot.iso, clones the Anaconda
# installer upstream repo, creates an updates image from the repo
# and then produces an output iso that includes and automatically
# applies the updates image.
#
@M4rtinK
M4rtinK / gist:99b3da57812bf9e159ca186ad1dd8883
Created July 3, 2023 15:58
3 useful scripts for Anaconda Web UI development
$ cat webui_setup.sh
#!/bin/bash
echo "### CLEANING UP ###"
rm -rf anaconda/ui/webui/bots
rm -rf anaconda/ui/webui/node_modules
rm -rf anaconda/ui/webui/dist
rm -rf anaconda/result
rm -f anaconda/ui/webui/package-lock.json
commit 2cba492a69411c8857d04432ea5756d726f2d175
Author: Martin Kolman <mkolman@redhat.com>
Date: Fri May 6 12:05:57 2022 +0200
Add boot options to the Web UI
There does not seem to be an easy way to do this other than using a
forked set of templates.
Changes:
toolbox enter
git clone https://github.com/rhinstaller/anaconda
cd anaconda
sudo ./scripts/testing/install_dependencies.sh
./autogen.sh
./configure
make
make rpms
cd ui/webui/
make create-updates.img
af.po:25:"Plural-Forms: nplurals=2; plural=n != 1;\n"
am.po:18:"Plural-Forms: nplurals=2; plural=n > 1;\n"
anaconda.pot:20:"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
anaconda.pot:32:"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
ar.po:43:"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
as.po:29:"Plural-Forms: nplurals=2; plural=(n != 1);\n"
ast.po:24:"Plural-Forms: nplurals=2; plural=n != 1;\n"
be.po:31:"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
cockpit.locale({
"": {
"plural-forms": (n) => n != 1,
"language": "de",
"language-direction": "ltr"
},
"Free": [
null,
"Verfügbar"
],
#!/bin/bash
echo "### CLEANING UP ###"
rm -rf anaconda/ui/webui/bots
rm -rf anaconda/ui/webui/node_modules
rm -rf anaconda/ui/webui/dist
rm -rf anaconda/result
rm -f anaconda/ui/webui/package-lock.json
echo "### BUILDING ANACONDA ###"
How to create updates image with early web ui prototype for the boot iso
git clone https://github.com/rhinstaller/anaconda
cd anaconda
git remote add mkolman https://github.com/M4rtinK/anaconda
git fetch mkolman
git checkout master-cockpit_web_ui_prototype
wget https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20211130.n.0/compose/Everything/x86_64/os/Packages/c/cockpit-ws-258-1.fc36.x86_64.rpm
./scripts/makeupdates -a cockpit-ws-258-1.fc36.x86_64.rpm -t anaconda-36.10-1
@M4rtinK
M4rtinK / gist:80c531547f2f881bebb53a67dd720116
Created July 30, 2018 15:48
Pre install_specs() group & package exclude workflow in Anaconda
Pre install_specs() group & package exclude workflow in Anaconda
================================================================
1) get a list of excluded groups from kickstart
2) when selecting an environment:
2.1) resolve it to a list of groups
2.2) remove excluded groups from the lists
2.3) tell dnf to add the remaining groups to the transaction
3) get a list of groups that should be installed from kickstart and/or UI
3.1) remove any groups that are in the list of excluded groups
@M4rtinK
M4rtinK / gist:83bbcda3569314d26593c105d3b3e985
Created February 7, 2018 16:48
modularity kickstart support example
Example kickstart
repo ... # repo, no changes here
enablemodule --name=nodejs --stream=6 # module default - NEW
%packages
nodejs # package, no changes here
@Gnome Group # groups, no changes here
@httpd:2.4 # module - NEW
@vim/minimal # module - NEW
%end