[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

AW: Packaging Add-on in ISO



Hello,


I use following for Fedora:



== ISO Repo Update ==


groupsXmlTemplate=$(ls -1 ${LINUX_MEDIUM_RESOURCE}/repodata/*comps.xml)
groupsXml=$TEMPS/$(basename $groupsXmlTemplate | sed 's!.*\(Fedora.*\)!\1!g')
packages=$TEMPS/packages.list
rpmdir=$TEMPS/rpms

rm -f $packages
rm -f $groupsXml

cd ${LINUX_MEDIUM_RESOURCE}


# reuse package groups xml file

mkdir -p $(dirname $groupsXml)
cp $groupsXmlTemplate $groupsXml


# move all packages somewhere else and move the actual/latest versions back
mkdir -p $rpmdir
find Packages -type f -name "*.rpm" | xargs mv -t $rpmdir
repomanage --new $rpmdir | xargs mv -t Packages

# update repodata

find Packages -name "*.rpm" >$packages
rm -rf repodata/*
createrepo -g $groupsXml -i $packages .


== ISO Creation ==


mkisofs \
-V "$INSTALL_MEDIUM_LABEL" \
-R -T -iso-level 4 \
-b isolinux/isolinux.bin \
-c isolinux/boot.cat \
-no-emul-boot \
-boot-load-size 4 \
-boot-info-table \
-uid 0 \
-gid 0 \
-o "$INSTALL_MEDIUM_ISO" \
"$LINUX_MEDIUM_RESOURCE"

implantisomd5 "$INSTALL_MEDIUM_ISO"

HINT: ${LINUX_MEDIUM_RESOURCE}/isolinux/isolinux.cfg may contain medium lable name!



== Image?? ==


Do you talk about anaconda version update via image?



Mit freundlichen Grüßen/Best regards
 
Stefan Lauterwasser

Von: anaconda-devel-list-bounces redhat com <anaconda-devel-list-bounces redhat com> im Auftrag von sad man <asadxflow gmail com>
Gesendet: Freitag, 10. Juli 2015 01:34
An: anaconda-devel-list redhat com
Betreff: Packaging Add-on in ISO
 
Hello I am new to add-on development and have a question on how can I create ISO with my custom add-ons.

>From the guide, we can place the .img file in the images directory of ISO and the installer will pickup the add-on automatically.

But the part on creating RPM is a little vague. Once the RPM is created, how/where should we place it in the ISO? and how can we direct anaconda to use the add-on RPM?

--
Cheers, 

Asadullah Hussain

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]