Amahi Anaconda Add-on
Directory Structure :-
root_folder
├─ ks
│ └─ __init__.py
├─ gui
│ ├─ __init__.py
│ └─ spokes
│ └─ __init__.py
├─ tui
| ├─ __init__.py
| └─ spokes
└─ __init__.py
Steps to make iso (everything in su) :-
First execute dnf -y install genisoimage isomd5sum
. Now begin :-
-
Download https://dl.fedoraproject.org/pub/fedora/linux/releases/27/Workstation/x86_64/iso/Fedora-Workstation-netinst-x86_64-27-1.6.iso into your working directory.
-
mkdir /mnt/iso
-
mount -t iso9660 -o loop path/to/image.iso /mnt/iso
-
mkdir ISO
-
cp -pRf /mnt/iso ISO/
-
umount /mnt/iso
-
mkdir -p product/usr/share/
-
git clone https://github.com/amahi/anaconda-addon.git
-
cp anaconda-addon/isolinux.cfg ISO/iso/isolinux/ && cp anaconda-addon/grub.cfg ISO/iso/EFI/BOOT/
Note -
isolinux.cfg
is for BIOS bootmenu andgrub.cfg
is for UEFI bootmenu. Both file contain the following lines beside every option:-a)
inst.ks=hd:LABEL=Fedora-WS-dvd-x86_64-27:/ks.cfg
(to execute the kickstart file saved in installation directory)b)
inst.updates=hd:LABEL=Fedora-WS-dvd-x86_64-27:/amahi.img
(to load amahi.img saved in installation directory, where anaconda addon is saved. We will tell you that how you can create this file later.) -
cp -f anaconda-addon/ks.cfg ISO/iso/
#change $releasever inurl --mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch
to version number of Fedora installing, inks.cfg
file -
chmod +x anaconda-addon/anaconda/addons/org_amahi_setup/hda-install-script.sh && chmod +x anaconda-addon/anaconda/addons/org_amahi_setup/amahi_message && cp -r anaconda-addon/anaconda anaconda-addon/icons product/usr/share/ && cp -r anaconda-addon/lib64 product/usr
-
cd product/ && find . | cpio -c -o | gzip -9cv > ../amahi.img
#this will create amahi.img file where addon is saved -
mv -f ../amahi.img ../ISO/iso
-
cd ../ISO/iso
-
genisoimage -U -r -v -T -J -joliet-long -V "Fedora-WS-dvd-x86_64-27" -volset "Fedora-WS-dvd-x86_64-27" -A "Fedora-WS-dvd-x86_64-27" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -eltorito-alt-boot -e images/efiboot.img -no-emul-boot -o ../'Amahi Express Install Disc 11.iso' . && implantisomd5 ../'Amahi Express Install Disc 11.iso'
#your iso will be in path/to/ISO folder. Now boot it and enjoy.Note - in
org_amahi_setup/ks/amahi_setup.py
:-Check
execute(self, storage, ksdata, instclass, users, payload):
functionfrom where all commands get executed after installion.
lib64/python3.7/site-packages/pyanaconda/installclass.py
is for setting ```Geolocation=True`` for changing language automatically.
Booting into ISO :-
-
Select your language.
-
On next screen, select your TimeZone, Keyboard.
-
Boot into the FEDORA initially for automatic server Setup. FEDORA will reboot automatically after Amahi Server gets setup.
-
Have a cup of coffee. :)