Fedora 30

Revision as of 20:06, 29 January 2019 by Satellit (talk | contribs) (→‎Install Documents: 8 GB f30 soas USB with persistence)

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

Fedora 30

Download lives

 https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Spins/x86_64/iso/
 https://dl.fedoraproject.org/pub/fedora-secondary/development/rawhide/Spins/i386/iso/  (secondary spins)

Download

https://boot.fedoraproject.org/download


F30-soas.png

Warning to test

bcotton@redhat.com reply to: spins@lists.fedoraproject.org FESco previously approved a requirement that Spin/Labs owners send a keepalive request in order to keep building the spin or lab. I have opened Pagure issues[1] for all Spins and Labs listed on the wiki[2].

If you are the owner of one of those spins and labs, please reply in the appropriate ticket by30 January 2019 to indicate the spin should continue to be produced. If there is a spin or lab that does not have an open ticket, please create one[3].

The reasoning for this is to not ship spins that are not actively maintained. Future improvements to the release process that will allow for teams to self-publish solutions will eventually remove the need for these keepalives.

[1] https://pagure.io/fedora-project-schedule/issues [2] https://fedoraproject.org/wiki/Releases/30/Spins [3] https://pagure.io/fedora-project-schedule/new_issue

*https://pagure.io/fedora-project-schedule/issue/110
*https://pagure.io/fedora-project-schedule/issue/111

-- Ben Cotton Fedora Program Manager TZ=America/Indiana/Indianapolis

Install of Fedora-SoaS-Live-x86_64-Rawhide-20190121.n.0.iso with "liveinst -T" in terminal

0121-fail.png

  • failure of liveinst

Liveinst -T 0121.png

  • text based install
  • After these commands in root terminal, sugar should start
login to user and password set in text based install
su dnf install sddm
 password
sudo systemctl set-default graphical.target
reboot

Install Documents

https://docs.fedoraproject.org/en-US/fedora/f29/install-guide/install/Installing_Using_Anaconda/
https://docs.fedoraproject.org/en-US/fedora/f29/install-guide/advanced/VNC_Installations/

8 GB f30 soas USB with persistence

  • fat format marked bootable (Used gnome disks)
*changed background to show persistence worked after reboot
 

Terminal output

[satellit@localhost ~]$ cd Downloads/rawhide
[satellit@localhost rawhide]$ su
Password: 
[root@localhost rawhide]# 
[root@localhost rawhide]# livecd-iso-to-disk --reset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181212.n.1.iso /dev/sdb1


[root@localhost rawhide]# livecd-iso-to-disk --reset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181212.n.1.iso /dev/sdb1 Verifying image... /home/satellit/Downloads/rawhide/Fedora-SoaS-Live-x86_64-Rawhide-20181212.n.1.iso: 7c45a5171c275ba9185273b7936aa5f7 Fragment sums: 326fafe823b9f5462d8b71baade13d333b817887c1b1a7e24b347f5f9e71 Fragment count: 20 Supported ISO: no Press [Esc] to abort check. Checking: 100.0%

The media check is complete, the result is: PASS.

It is OK to use this media.

Copying LiveOS image to target device... squashfs.img

   898,441,216 100%  201.98MB/s    0:00:04 (xfr#1, to-chk=0/1)

Syncing filesystem writes to disc.

   Please wait, this may take a while...

Setting up /EFI/BOOT Updating boot config files. Initializing persistent overlay... livecd-iso-to-disk --reset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181126.n.0.iso /dev/sdb1livecd-iso-to-disk --reset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181126.n.0.iso /dev/sdb12000+0 records in 2000+0 records out 2097152000 bytes (2.1 GB, 2.0 GiB) copied, 393.404 s, 5.3 MB/s Initializing persistent /home 2000+0 records in 2000+0 records out 2097152000 bytes (2.1 GB, 2.0 GiB) copied, 549.836 s, 3.8 MB/s Formatting unencrypted home.img mke2fs 1.44.3 (10-July-2018) Creating filesystem with 512000 4k blocks and 128000 inodes Filesystem UUID: 01095cb1-d795-4435-8283-2f3c2868160e Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912

Allocating group tables: done Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done

tune2fs 1.44.3 (10-July-2018) Setting maximal mount count to -1 Setting interval between checks to 0 seconds Installing boot loader... Target device is now set up with a Live image! [root@localhost rawhide]# livecd-iso-to-disk --reset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181126.n.0.iso /dev/sdb1livecd-iso-to-disk --reset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181126.n.0.iso /dev/sdb1

Terminal output

[satellit@localhost ~]$ cd Downloads/rawhide
[satellit@localhost rawhide]$ su
Password: 
[root@localhost rawhide]# 
[root@localhost rawhide]# livecd-iso-to-disk --reset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181212.n.1.iso /dev/sdb1


[root@localhost rawhide]# livecd-iso-to-disk --reset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181212.n.1.iso /dev/sdb1 Verifying image... /home/satellit/Downloads/rawhide/Fedora-SoaS-Live-x86_64-Rawhide-20181212.n.1.iso: 7c45a5171c275ba9185273b7936aa5f7 Fragment sums: 326fafe823b9f5462d8b71baade13d333b817887c1b1a7e24b347f5f9e71 Fragment count: 20 Supported ISO: no Press [Esc] to abort check. Checking: 100.0%

The media check is complete, the result is: PASS.

It is OK to use this media.

Copying LiveOS image to target device... squashfs.img

   898,441,216 100%  201.98MB/s    0:00:04 (xfr#1, to-chk=0/1)

Syncing filesystem writes to disc.

   Please wait, this may take a while...

Setting up /EFI/BOOT Updating boot config files. Initializing persistent overlay... livecd-iso-to-disk --reset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181126.n.0.iso /dev/sdb1livecd-iso-to-disk --reset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181126.n.0.iso /dev/sdb12000+0 records in 2000+0 records out 2097152000 bytes (2.1 GB, 2.0 GiB) copied, 393.404 s, 5.3 MB/s Initializing persistent /home 2000+0 records in 2000+0 records out 2097152000 bytes (2.1 GB, 2.0 GiB) copied, 549.836 s, 3.8 MB/s Formatting unencrypted home.img mke2fs 1.44.3 (10-July-2018) Creating filesystem with 512000 4k blocks and 128000 inodes Filesystem UUID: 01095cb1-d795-4435-8283-2f3c2868160e Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912

Allocating group tables: done Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done

tune2fs 1.44.3 (10-July-2018) Setting maximal mount count to -1 Setting interval between checks to 0 seconds Installing boot loader... Target device is now set up with a Live image! [root@localhost rawhide]# livecd-iso-to-disk --reset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181126.n.0.iso /dev/sdb1livecd-iso-to-dieset-mbr --overlay-size-mb 2000 --home-size-mb 2000 --delete-home --unencrypted-home Fedora-SoaS-Live-x86_64-Rawhide-20181126.n.0.iso /dev/sdb1

8 GB and 16 GB Persistent USB's

16 GB Persistent USB at bottom of page :  Talk:Fedora_30

Following content is untested (Copied from f25)

livemedia-creator

  • Examples in f25 root terminal:

mock

you should always do all work in mock, this will allow you to esure that the compose environment matches the target environment

to setup a Fedora 25 x86_64 environment you would run the following

$ mock -r fedora-25-x86_64 --init
$ mock -r fedora-25-x86_64 --install lorax-lmc-novirt git vim-minimal pykickstart

if you wanted a different arch or release you would use the correct mock configuration file


Install files

updated from fedora page 12/15/2016

  • ksflatten is part of pykickstart
# dnf install mock

Documentation

  • Important
https://docs.fedoraproject.org/en-US/docs/
http://lorax.readthedocs.io/en/latest/livemedia-creator.html
https://github.com/rhinstaller/lorax/blob/master/docs/livemedia-creator.rst

mock

you should always do all work in mock, this will allow you to esure that the compose environment matches the target environment

to setup a Fedora 25 x86_64 environment you would run the following

$ mock -r fedora-25-x86_64 --init
$ mock -r fedora-25-x86_64 --install lorax-lmc-novirt git vim-minimal pykickstart

if you wanted a different arch or release you would use the correct mock configuration file

kickstarts

inside the mock chroot, clone the kickstarts

$ git clone https://pagure.io/fedora-kickstarts.git


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 (f25) first. This is so that packages can be installed to livecd without SELinux errors and is relabeled at boot time.
setenforce 0

Notes

  • Important
http://lorax.readthedocs.io/en/latest/livemedia-creator.html
  • 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."

pagure kickstarts Links

https://pagure.io/fedora-kickstarts/tree/f25
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 examples

livemedia-creator --ks /home/(user)/Downloads/pagure/flat-fedora-live-soas.ks  --logfile /var/lmc-logs/livemedia-out.log --no-virt --resultdir /var/lmc --project Fedora-soas-Live --make-iso --volid Fedora-SoaS-flat-live --iso-only --iso-name Fedora-SoaS-flat-live.iso --releasever 25 --title Fedora-SoaS-flat-live --macboot


livemedia-creator --ks /home/(user)/Downloads/pagure/flat-fedora-live-kde.ks --logfile /var/lmc-logs/livemedia-out.log --no-virt --resultdir /var/lmc --project Fedora-kde-Live --make-iso --volid Fedora-kde-f25-live --iso-only --iso-name Fedora-kde-f25-live.iso --releasever 25 --title Fedora-kde-f25-live --macboot
livemedia-creator --ks /home/(user)/Downloads/pagure/flat-fedora-live-cinnamon.ks  --logfile /var/lmc-logs/livemedia-out.log --no-virt --resultdir /var/lmc --project Fedora-cinnamon-Live --make-iso --volid Fedora-cinnamon-live --iso-only --iso-name Fedora-cinnamon-live.iso --releasever 25 --title Fedora-cinnamon-25-live --macboot
  • "If you're using /tmp/lmc you need to make sure you have enough RAM available (assuming it is mounted using tmpfs)"
use /var/lmc if low on memory
  • "Right, if you only have 3.8G then 50% will be assigned to tmpfs and it's likely

you'll run out of ram when using /tmp/ for the resultdir."

Brian Lane - https://bugzilla.redhat.com/show_bug.cgi?id=1352970#c6

warning

12/14/2016
  • There is a problem using LMC this way:

<adamw> satellit: you really *really* shouldn't be running lmc directly on the system with --no-virt anyway <adamw> it's a fundamentally risky thing to do

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

kickstart-docs

https://github.com/rhinstaller/pykickstart/blob/master/docs/kickstart-docs.rst

terminal output of livemedia-creator build

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 /home/(user)/lmc"

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

copy to (mouse right click) pagure with files application

  • Check that it is in pagure

Clean Up

delete the instance in lmc
delete the lmc directory (cannot run new build unless this is done?)
root@localhost pagure]# cd /
[root@localhost /]# cd var
[root@localhost var]# ls
account  adm  cache  crash  db  empty  ftp  games  gopher kerberos  lib  lmc  local  lock  log  mail  nis  opt  preserve run  spool  tmp  www  yp
[root@localhost var]# rm -r lmc
rm: descend into directory 'lmc'? y
rm: remove regular file 'lmc/Fedora-SoaS-var-live.iso'? y
rm: remove directory 'lmc'? y
[root@localhost var]#