{"id":255,"date":"2005-12-24T05:08:00","date_gmt":"2005-12-24T05:08:00","guid":{"rendered":""},"modified":"2007-01-07T18:16:16","modified_gmt":"2007-01-08T02:16:16","slug":"building-fedora-dvd","status":"publish","type":"post","link":"https:\/\/znark.com\/blog\/2005\/12\/building-fedora-dvd\/","title":{"rendered":"Rebuilding Fedora DVD"},"content":{"rendered":"<p>I am going home to San Diego tomorrow.  One of the things I do every Christmas is upgrade my Dad&#8217;s computer to the newest version of [Fedora](http:\/\/fedora.redhat.com).  However, FC4 has been out for six months so there is a whole pile of updates.  Instead of downloading all the updates after the upgrade, I wanted to write them to a DVD.  Even better, I made a bootable install DVD with the new packages.<\/p>\n<p>First, I prepared the directory with a copy of the original DVD, and copied the update rpms.  The repomanage utility in the yum-utils package helped remove the duplicates.<\/p>\n<pre>\r\ncp 4\/i386\/os\/* rebuild\/i386\r\ncp updates\/4\/i386\/* rebuild\/i386\/Fedora\/RPMS\r\nrepomanage --old rebuild\/i396\/Fedora\/RPMS | xargs rm\r\n<\/pre>\n<p>Then, it was time to rebuild the installer.  This needs the anaconda and anaconda-runtime packages.  The genhdlist creates the hdlist files in the Fedora\/base directory.  The buildinstall builds all the boot and installer images.<\/p>\n<pre>\r\nexport PYTHONPATH=\/usr\/lib\/anaconda\r\nexport PATH=\"$PATH:\/usr\/lib\/anaconda-runtime\"\r\nexport FCBASE=`pwd`\r\ndate=$(date +%Y-%m-%d)\r\n\r\ngenhdlist --productpath=Fedora $FCBASE\/i386\r\n\r\npkgorder $FCBASE\/i386 i386 Fedora | tee $FCBASE\/pkgfile.$date\r\nsudo buildinstall --comp dist-4.1 --pkgorder $FCBASE\/pkgfile.$date \\\r\n--version 4 --product 'Fedora Core' --release 'Fedora Core 4' \\\r\n--prodpath Fedora $FCBASE\/i386\r\n\r\ngenhdlist --withnumbers --productpath Fedora \\\r\n--fileorder $FCBASE\/pkgfile.2005-12-23 $FCBASE\/i386\r\n<\/pre>\n<p>Finally, write the DVD ISO image.<\/p>\n<pre>\r\nmkisofs -R -J -T -no-emul-boot -boot-load-size 4 -boot-info-table \\\r\n    -V \"FC 4.3 i386 DVD\" \\\r\n    -A \"Fedora Core 4.3 Update $date i386 DVD\" \\\r\n    -P \"Ian Burrell <ianburrell@gmail.com>\" \\\r\n    -p \"Ian Burrell <ianburrell@gmail.com>\" \\\r\n    -b isolinux\/isolinux.bin -c isolinux\/boot.cat -x lost+found \\\r\n    -o FC-4.3-i386-DVD.iso i386\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I am going home to San Diego tomorrow. One of the things I do every Christmas is upgrade my Dad&#8217;s computer to the newest version of [Fedora](http:\/\/fedora.redhat.com). However, FC4 has been out for six months so there is a whole pile of updates. Instead of downloading all the updates after the upgrade, I wanted to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[57],"tags":[],"class_list":["post-255","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/posts\/255","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/comments?post=255"}],"version-history":[{"count":0,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/posts\/255\/revisions"}],"wp:attachment":[{"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/media?parent=255"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/categories?post=255"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/znark.com\/blog\/wp-json\/wp\/v2\/tags?post=255"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}