Difference between revisions of "Fedora 25"

From Sugar Labs
Jump to: navigation, search
m (livemedia-creator example)
m (LiveOS_image/overlay)
Line 139: Line 139:
 
  rm: remove directory 'lmc'? y
 
  rm: remove directory 'lmc'? y
 
  [root@localhost (user)]#
 
  [root@localhost (user)]#
 +
==LiveOS_image/overlay==
 +
:https://fedoraproject.org/wiki/LiveOS_image/overlay
 +
:https://fedoraproject.org/wiki/LiveOS_image
 +
::"This page shares some critical information about the LiveOS design that helps users take better advantage of their more-limited-than-usual disc resources."

Revision as of 21:00, 5 July 2016

Fedora.jpg Fedora® version page: 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Fedora and the Infinity design logo are trademarks of Red Hat, Inc.

Fedora 25 (Rawhide)

Updated 07/05/2016

Download

http://koji.fedoraproject.org/koji/tasks?method=livemedia&state=all&view=tree&order=-id
x86_64 https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20160704.n.0/compose/Spins/x86_64/iso/Fedora-SoaS-Live-x86_64-Rawhide-20160704.n.0.iso
i386 https://kojipkgs.fedoraproject.org/compose/rawhide/Fedora-Rawhide-20160704.n.0/compose/Spins/i386/iso/Fedora-SoaS-Live-i386-Rawhide-20160704.n.0.iso
https://fedoraproject.org/wiki/Test_Results:Fedora_25_Rawhide_20160704.n.0_Installation#Default_boot_and_install
  • Warning these builds can be unstable Do not use except for testing

livemedia-creator


  • Older posts
https://www.brianlane.com/creating-live-isos-with-livemedia-creator.html
https://jbwillia.wordpress.com/2014/10/29/how-to-build-updated-fedora-live-iso-for-yourself/
  • Examples in f25 root terminal:

Install files

  • livemedia-creator and ksflatten are part of lorax
# dnf install lorax virt-install libvirt-daemon-config-network pykickstart

                                                                                                                                               
  • Must be done first:
You must be in the same fedora version (f24) first. This is so that packages can be installed to livecd without SELinux errors and is relabeled at boot time.
setenforce 0

Notes

  • Jun 28, 2016 at 12:28:27PM -0500, Bruno Wolff III wrote:
"In --no-virt mode it's calling anaconda
directly so kickstart processing of the %include may work, depending on
the location of the files. But if you're using it in virt mode only the
top level ks gets passed into the vm so ksflatten is required in that
case."
  • Link:
https://pagure.io/fedora-kickstarts/tree/27c2ec431dfa70506deef071206b5e42ddc9b42c
https://pagure.io/fedora-kickstarts/releases
alternately: git clone the repo and not get each piece manually
Kickstarts need to flattened before use:
hit raw tab and save-page-as to a local directory (/home/(user)/Downloads/pagure/)
https://pagure.io/fedora-kickstarts/blob/f25/f/fedora-live-soas.ks
https://pagure.io/fedora-kickstarts/blob/f25/f/fedora-live-base.ks
https://pagure.io/fedora-kickstarts/blob/f25/f/fedora-live-minimization.ks
https://pagure.io/fedora-kickstarts/blob/f25/f/fedora-repo.ks
https://pagure.io/fedora-kickstarts/blob/f25/f/fedora-repo-not-rawhide.ks
https://pagure.io/fedora-kickstarts/blob/f25/f/fedora-repo-rawhide.ks
https://pagure.io/fedora-kickstarts/blob/f25/f/fedora-soas-packages.ks
  • switch root terminal to the local directory with the kickstart files (/home/(user)/Downloads/pagure/)

ksflatten

updated 06/28/2016


ksflatten -v, --config fedora-live-soas.ks -o flat-fedora-live-soas.ks --version F25

livemedia-creator example

livemedia-creator --ks /home/(user)/Downloads/pagure/flat-fedora-live-soas.ks --no-virt --resultdir /home/(user)/lmc/ --project Fedora-soas-Live --make-iso --volid Fedora-SoaS-f25-live --iso-only --iso-name Fedora-SoaS-f25-live.iso --releasever 25 --title Fedora-SoaS-f25-live --macboot
note the changes from f24
https://wiki.sugarlabs.org/go/Fedora_24#livemedia-creator
not in /tmp/lmc as root file system runs out of room.
https://bugzilla.redhat.com/show_bug.cgi?id=1352970

Make a remix

  • edit the bottom of the flat-fedora-live-soas.ks
that you produce with ksflatten (above)
in this section of the flattened.ks:

%packages

add a program (add name)
- delete a program ( put - in front)
put # in front of listed program to not install it


Build takes a long time wait for completion
ends with:
..........clip........
..........clip........
2016-07-05 14:46:20,011: Performing post-installation setup tasks
2016-07-05 14:46:20,012: Performing post-installation setup tasks
2016-07-05 14:46:21,970: .
2016-07-05 14:46:21,970:
2016-07-05 14:46:21,971: Configuring installed system
2016-07-05 14:46:22,147: .
2016-07-05 14:46:22,148: Creating users
2016-07-05 14:46:22,149: .
2016-07-05 14:46:22,149: Configuring addons
2016-07-05 14:46:22,151: .BDB2053 Freeing read locks for locker 0x1: 3376/140705511982848
--clip--
2016-07-05 14:47:01,333:
2016-07-05 14:47:01,334: Generating initramfs
2016-07-05 14:47:06,185: .
2016-07-05 14:47:06,186: Running post-installation scripts
2016-07-05 14:47:06,189: .
2016-07-05 14:47:38,953: Shutting down log processing
2016-07-05 14:47:41,246: Disk Image install successful
2016-07-05 14:47:41,247: working dir is /var/tmp/lmc-work-n26biv0m
2016-07-05 14:59:34,529: Rebuilding initrds
2016-07-05 14:59:34,530: dracut args = ['--xz', '--add', 'livenet dmsquash-live convertfs pollcdrom qemu qemu-net', '--omit', 'plymouth', '--no-hostonly', '--debug', '--no-early-microcode']
2016-07-05 14:59:34,532: rebuilding boot/initramfs-4.7.0-0.rc5.git3.1.fc25.x86_64.img
2016-07-05 15:01:36,027: Building boot.iso
2016-07-05 15:01:36,122: running x86.tmpl
2016-07-05 15:01:56,462: Disk image erased
2016-07-05 15:01:59,749: SUMMARY
2016-07-05 15:01:59,750: -------
2016-07-05 15:01:59,750: Logs are in /home/(user/Downloads/pagure
2016-07-05 15:01:59,751: Results are in /home/(user)/lmc
[root@localhost pagure]#

Retrieve finished live.iso

"Results are in /tmp/lmc"

  • start files application
  • click on Files system
open temp folder
open lmc folder
  • click on the .....iso you just built

copy to (mouse right click) Home with files application

  • Check that it is in Home

Clean Up

delete the instance in lmc
delete the lmc directory (cannot run new build unless this is done?)
[root@localhost (user)]# rm -r lmc
rm: descend into directory 'lmc'? y
rm: remove regular file 'lmc/Fedora-SoaS-f25-live.iso'? y
rm: remove directory 'lmc'? y
[root@localhost (user)]#

LiveOS_image/overlay

https://fedoraproject.org/wiki/LiveOS_image/overlay
https://fedoraproject.org/wiki/LiveOS_image
"This page shares some critical information about the LiveOS design that helps users take better advantage of their more-limited-than-usual disc resources."