Changes

Jump to navigation Jump to search
no edit summary
Line 81: Line 81:     
I forget the solution to the beta-nag. Either I modified the build script on the buildsys. Or I modified anaconda on the buildsys.
 
I forget the solution to the beta-nag. Either I modified the build script on the buildsys. Or I modified anaconda on the buildsys.
 +
 +
== SME10 preparation and build_installer ==
 +
 +
===first for reference ===
 +
* original Red hat doc forc customisation
 +
** https://access.redhat.com/documentation/en/red-hat-enterprise-linux/7/anaconda-customization-guide/anaconda-customization-guide
 +
** https://access.redhat.com/documentation/en/red-hat-enterprise-linux/7/anaconda-customization-guide/4-branding-and-chroming-the-graphical-user-interface
 +
 +
* how to customize centos 7
 +
 +
http://serverfault.com/questions/517908/how-to-create-a-custom-iso-image-in-centos
 +
 +
https://github.com/joyent/mi-centos-7
 +
 +
===Foreword===
 +
Red Hat suggest to create a product.img (https://access.redhat.com/documentation/en/red-hat-enterprise-linux/7/anaconda-customization-guide/2-working-with-iso-images#sect-product-img) and to put it in the folder images at the root of the CD, however, Centos did not use this way, but rather edited directly the anaconda image inside the live image.
 +
 +
Also, we might want to patch Anaconda at least to handle the degraded raid 1
 +
 +
Hence I feel we will have to do the same to hide all Centos branding.[[User:Unnilennium|Unnilennium]] ([[User talk:Unnilennium|talk]]) 17:20, 17 July 2016 (CEST)
 +
 +
=== how to steps  (WIP)===
 +
 +
* first extract the content of Live image, and the image of Anaconda inside
 +
cd /build/smeserver/stage/10.0.alpha1/x86_64/LiveOS/
 +
mkdir squashfs
 +
sudo mount -r -o loop squashfs.img squashfs
 +
mkdir mysquash
 +
cp -ar squashfs mysquash
 +
sudo umount squashfs
 +
rmdir squashfs
 +
mkdir rootfs
 +
sudo mount -r -o loop mysquashfs/LiveOS/rootfs.img rootfs
 +
mkdir myrootfs
 +
cp -ar rootfs myrootfs
 +
umount rootfs
 +
rmdir rootfs
 +
 +
*then we have to modify what we want like usual
 +
 +
WORK IN PROGRESS:
 +
 +
# /usr/share/anaconda/pixmaps/ content (logo, side bar, top bar, etc.)
 +
# /usr/share/anaconda/pixmaps/rnotes/en/ content  (Banners for the installation progress screen)
 +
# /usr/share/anaconda/anaconda-gtk.css (gui stylesheet)
 +
# /run/install/product/pyanaconda/installclasses/ (for changing the product name)
 +
 +
# addons, we do not need for now /usr/share/anaconda/addons/
 +
# we might want to patch anaconda and copy files where necessary (later stage)
 +
 +
 +
* finally rebuild images
 +
cd myrootfs
 +
find . | cpio -c -o | gzip -9cv > ../rootfs.img
 +
cd ../..
 +
mv rootfs.img mysquashfs/LiveOS/
 +
cd mysquashfs
 +
find . | cpio -c -o | gzip -9cv > ../squashfs.img
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu