How to make a Fedora Live media
The significant change in Fedora 21 was extended to February November, meaning that the ora user base will have to stick to the ora 20, which was released at the end of last year for up to a year. However, what if the kernel in the old Live media is too early to support new hardware?
Do it yourself! In fact, it is very easy to build a Fedora Live media that includes the latest updates.
This article is based on the official Wiki (also available in Chinese.
Install necessary tools
pkcon install livecd-tools spin-kickstarts
livecd-tools
The tool that creates LiveCD and makes LiveCD into USB.spin-kickstarts
Contains a large number of KS templates for building.
Unlike the installation media, the Live media build idea is to install the specified software package to a specific directory, and then convert the directory to the running root directory. Therefore, this process is customized using the KS file that is the same as the unattended installation of Fedora.
Preparations
To build LiveCD, uselivecd-creator
However, this tool has a special working process and needs to temporarily disable SELinux before it starts.
su -c 'setenforce 0'
If you are interested, you can carefully browse the KS templates:/usr/share/spin-kickstarts/
Contains a variety of Live media, from the name can be seen to contain dependencies, the more important basic categories of KS are: fedora-live-desktop.ks, fedora-live-base.ks and fedora-repo.ks.
Start building
If you want to directly import the topic and construct a LiveCD that contains the latest updates, go to the directory where you want to store the generated ISO file and run the following command:
su -c 'livecd-creator --verbose --config=/usr/share/spin-kickstarts/fedora-livecd-desktop.ks --fslabel=F20x8664-Latest --cache =/var/cache/live'
The purpose of the parameter can be seen from the name, and there is no need to explain it. After changing the cache directory, you can also run it with a common user,
From the output, we can see that it first creates and mounts multiple pseudo ext partitions in the/tmp temporary directory, then crawls the RPM package from the image through yum Based on the KS file, and then installs it to the pseudo partition, some script operations such as cleanup of man databases will be executed. The size of the F20 Desktop image is about 1 GB, so the specific time depends on the network speed.
Next, the process of converting pseudo partition to squashfs is relatively time-consuming, because it involves compression, in my A10-5800K machine, full five minutes to complete, it is worthy of being the hot summer warm best ......
Write USB
After a patient wait, a new LiveCD ISO is complete. If you directly rely on the official KS file, you do not need to worry about it, you can directly make it into LiveUSB.
Insert a FAT32 partition format U disk, umount drop the automatically mounted partition, execute the following command
Su-c 'livecd-iso-to-disk -- reset-mbr F20X8664-Latest.iso/dev/sdb1'
The above command assumes that the U disk corresponds to sdb1, please replace according to the actual situation.
Conclusion
In fact, after Linus sp ora does not release an updated version of the installation image, Fedora starts to provide Live-Respins. There is not a fixed update cycle for the Respins, and there will be an update every month. So if you can't wait, please refer to the methods in this article to build your own ~
To get started, you can also try to integrate the ks of rpmfusion to achieve more customization, and stay for your own research.
Fedora 21 will use GNOME 3.14 to use Wayland as the default display Server
Wayland is almost ready to support Fedora 21
Fedora 21 will be released three weeks later