Fedora 22 Review Supplement: After Installation Fixes and Enhancements

May 1, 2015, 6 p.m.

by ORDINATECHNIC

As usual there are some small problems to fix and some convenience adjustments to make after installing a Linux distribution. The fix that has always been necessary for me on this laptop with an Intel integrated graphics card has been to fix a problem with backlight control, where changing the backlight level by any method built into the desktop environment may indicate that the backlight level is changing but doesn't actually change.

The only other issue requiring attention was enabling hibernation (suspend to disk). Most other things I did were minor, including creating polkit rules for convenience, adding repositories for proprietary software, using a workaround to add chromium-pepper-flash for the Opera browser, installing tlp, setting the hardware clock to UTC, and improving visual polish during boot when using the GRUB installed to the EFI partition by another distribution.

The last correction involving the GRUB required editing the other distribution's grub.cfg file therby modifying how the GRUB menu works and appears. It has the added benefit of making the booting fo Fedora behave exactly as it had been booted with Fedora's own GRUB, therby including the kernal command line parameters secified in Fedora.

A more involved enhancement I made was to install Fedora's packaging tools and methods, which included rpmbuild. I did this so I could use rpmbuild to package the Synapse tool, which is similar to KDE's krunner, to have it available for use with the Cinnamon desktop.

Backlight Control

As usual on this computer, (a Lenovo V570 with Phoenix Technologies EFI v 2.0, an Intel Core-i5 2450M processor, integrated Intel Graphics HD3000, and an Intel Centrino® Wireless-N + WiMAX 6150 wireless network interface), backlight control does not work, although all methods of controlling the backlight show the desktop environment specific on-screen feedback of the screen backlight level changing. The best fix in this situation is to use the kernel command line parameter video.use_native_backlight=1. in the /etc/default/grub file as an argument to GRUB_CMDLINE_LINUX_DEFAULT as shown in the following code block displaying /etc/default/grub.


GRUB_DEFAULT=0
GRUB_TIMEOUT=60

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"

GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f splash=silent quiet video.use_native_backlight=1"
GRUB_CMDLINE_LINUX=""

GRUB_TERMINAL_INPUT="console"
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_DISABLE_RECOVERY="true"
GRUB_THEME=/boot/grub2/themes/rosa/theme.txt
		

This method of solving this backlight control problem usually does not work, but it happens to work in Fedora 22 (maybe because of the very up-to-date kernel), but only when using Fedora's own GRUB to boot it or if not using its own GRUB, modifying the grub.cfg of the GRUB from the distribution being used to boot it, as shown later in this article. Otherwise, the alternative for a laptop with an Intel graphics card is to create the file /usr/share/X11/xorg.conf.d/20-intel.conf and add the following lines to it:


Section "Device"
  Identifier "Intel Graphics"
  Driver "intel"
  Option "AccelMethod" "sna"
  Option "Backlight" "intel_backlight" # instead of acpi
  BusID "PCI:0:2:0"
EndSection
		

Although this method works to solve the backlight issue, when using another distribution's GRUB to boot Fedora, and as is necessary in other distributions where video.use_native_backlight=1 doesn't work, I chose the modifying grub.cfg method mentioned aboce and described below in the section, "Using Another Distribution's GRUB", because it allows the plymouth boot splash to work even when using a different distribution's GRUB. This method also fixes the backlight control problem because it is essentially like using Fedora's own GRUB, thereby including the kernel command lines specified in /etc/defaults/grub, of which the video.use_native_backlight=1 is one.

Incidentally, the reason for this course is because I prefer to use openSUSE's GRUB all the time to boot all of the OSes installed on this system -- with the exception of NixOS -- because it is the only one that will display the option to boot into the openSUSE btrfs/snapper snapshots.

Setting the Hardware Clock to UTC

The hardware clock was set to local time by the installation. Unless I missed it, there wasn't any place in the installer to set this configuration item. Leaving the hardware clock in the local time zone is not a good idea when multi-booting and especially when one of these multi-booting OSes uses btrfs as the root file system. The hardware clock can be set to UTC using:

timedatectl set-local-rtc 0
as root or using sudo. If Windows is one of the OSes on the system, Windows should be set to recognize that the hardware clock is set to UTC also. The Arch wiki shows how to do this.

Polkit Rules

Sleep and Hibernate

The Fedora installation did not enable hibernation by default. The lack of this capability was the result of three configuration items not being properly set in the system. Of all the distributions I have used, only openSUSE is the only one where hibernation works best even bypassing GRUB directly to the login greeter upon resume. After openSUSE, Rosa and Sabayon are the only ones where hibernation works acceptably without any fixes.

  • The installation did not include the resume module in the initramfs generated by the dracut tool.
  • The installation also did not add the resume kernel command line parameter to the /etc/default/grub file. The dracut tool also allows building kernel command line tools into the initramfs which I assume, obviates the need to specify these in the /etc/default/grub file. It didn't do this either.
  • The installation did not add the swap partition to the /etc/fstab file, which is how the location for saving the system state during hibernation is specified.

Editing the /etc/fstab file to include the swap partition by UUID automatically makes subsequent executions of the dracut initramfs generation tool include the resume module into the generated initramfs. Dracut can be run to remake the initramfs for the running kernel version with,


dracut -f -v
		

where the option -f will force overwriting the existing initramfs for the kernel version and the -v option will provide verbose output. If there are kernel versions installed, corresponding initramfs images can be built by specifying the kernel version with the option --kver, as in:

dracut -f -v --kver 4.0.4-301.fc22.x86_64

The inclusion of the resume module can also be explicitly specified in the dracut configuration files in several ways, as well, before running dracut, but since the swap must be specified anyway in the /etc/fstab, this automatic way of ensuring that the resume module is built (by specifying it in the dracut config files) is not necessary. See this ORDINATECHNIC blog post for further information or the dracut documentation.

The first and third missing pieces for enabling hibernation are corrected as indicated above -- by simply adding the swap partition to the fstab and running dracut. The second missing piece requires adding the resume device, which in my case, and as is common, is the swap partition. Add

resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f

to the list of kernel parameters specified as values to the attribute

GRUB_CMDLINE_LINUX_DEFAULT

in the /etc/default/grub file. This line of the grub file will be

GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f rhgb splash=silent quiet video.use_native_backlight=1"
.

The UUID of the swap partition here is the UUID of my swap partition; don't forget to use the UUID of your own swap partition.

After the changes, the relevant files look like those in the following two code blocks, the first is the /etc/fstab file and the second is the /etc/default/grub file.


#
# /etc/fstab
# Created by anaconda on Mon Jun  1 01:26:42 2015
# Modified by me on Tue Jun 16:57 2015 
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=90bed01c-4c76-4c54-90d6-0487433791f8 	/                       	ext4    defaults        			1 	1
UUID=2005-1DB9          			/boot/efi               	vfat    umask=0077,shortname=winnt 0 0
UUID=1a335438-a6be-4065-8a4b-7c59b161f1d5 	/home                   	ext4    defaults        			1 	2
# My additions are below
# 	Entry for SWAP
UUID=69bb9b40-aedd-4278-ac57-0113a7dc816f	none				swap	defaults				0	0
#	Windows Virtual Machine Partition
UUID=85c02911-f6b5-4c35-9edc-5347b9c2bb87 	/home/brook/Windows10 		ext4 	defaults,noauto,x-systemd.automount 	0	0
#	Common EXT4 Data Partition
UUID=41b1494b-f354-4558-913d-f6097b93dc0e 	/home/brook/CommonDataEXT4 	ext4 	rw,suid,dev,exec,auto,relatime,async	0	0
#	NTFS Common Data Partition 
UUID=347C2590613EB6CF 				/home/brook/CommonDataNTFS 	ntfs 	rw,suid,dev,exec,auto,relatime,async	0	0


GRUB_DEFAULT=0
GRUB_TIMEOUT=60

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"

GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f splash=silent quiet video.use_native_backlight=1"
GRUB_CMDLINE_LINUX=""

GRUB_TERMINAL_INPUT="console"
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_DISABLE_RECOVERY="true"
GRUB_THEME=/boot/grub2/themes/rosa/theme.txt
	

The changes above will enable hibernation when using the Fedora GRUB to boot. It does work most of the time when using another distribution's GRUB, but if using another distribution's GRUB, the best way to ensure that hibernation works in this case is the replacement of the relevant entries in the grub.cfg generated by the booting distribution's GRUB grub-mkconfig which uses the scripts in /etc/grub.d/ with the entries generated in grub.cfg by the booted distribution's grub-mkconfig. This is also the method for making the backlight control work with another distribution's GRUB and is described below in the section "Using Another Distribution's GRUB".

Additional Repositories for non-FOSS Packages

Fedora strictly complies with Free and Open Source principles and legal requirements to not distribute any proprietary software. In order to get essential software like Adobe's Flash Player plugin, and other medial codecs, other repositories must be included in the system. Depending on your software desire's other workarounds may be necessary, like in my case, copying the relevant Chromium Pepper Flash plugin from an Arch installation's file system to the appropriate location in the Fedora filesystem.

An alternative method of getting software not distrubuted by Fedora is to enable the Russian Fedora repositories. Although I did this in the past just to get Pepper Flash for Chromium (before I stopped using Chromium) and for Opera, I decided to make the system less complex and not add these respositories, instead I found that I could just symlink to the Flash Player installed from the Adobe repsoitory and as mentioned above, for Pepper Flash, copy the relevant files from another Linux installation to the proper location in the Fedora installation.

RPM Fusion

The most important of the additional repositories for Fedora is provided by RPM Fusion, similar to PackMan for openSUSE, although not nearly as extensive as PackMan, it does provide some essentials. This page on the RPM Fusion website has instructions for adding the repositories graphically by clicking on links in Firefox, and a manual commandline method. I opted for a manual method but different from the method described on the RPM Fusion page because it uses yum which is depricated in favor of dnf. I used prozilla, in my opinion the best command line downloader, which is available in the official repositories.

Downloading and installing the setup packages from RPM Fusion will add and enable its repositories on the Fedora system.

  1. Download repo setup packages from RPM Fusion, one for the free repository and one for the non-free repository. Change directory to where you want to store the downloaded the repository setup packages, the execute the following to download the free repository setup package:
    proz -v http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
    Download the non-free setup package with:
    proz -v http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
  2. Install packages with:
    sudo dnf install ./rpmfusion-free-release-22.noarch.rpm
    sudo dnf install ./rpmfusion-nonfree-release-22.noarch.rpm

Opera Browser

As Opera is my preferred browser, I added the openSUSE OBS repositoies of an Opera developer to get all three co-installable update streams of Opera -- opera-stable, opera-beta, and opera-developer. I may have to packages my own Opera, however, as these repositories have not been updated in a while. To add this repository use one of the dnf plugin commands:

dnf config-manager --add-repo http://download.opensuse.org/repositories/home:ruario:opera/Fedora_21/home:ruario:opera.repo

The three versions of the browser can then be installed as root or using sudo with:

dnf --refresh install opera-stable opera-beta opera-developer

The --refresh option is probably necessary in order to include the newly added repositories in the background search for packages to install.

The method I used to enable Flash in Opera and Vivaldi, the other Chromium based browser I use, is described below in "Essential Software for User"

Adobe Repository

The Adobe Flash Player plugin, for use in none Chrome/Chromium based browsers, can be installed after adding the Adobe repository to the system in a manner similar to how the RPM Fusion repositories were added. Adobe provides a package that can be downloaded and installed, after which the repository will be added and enabled. Download the package using prozilla with the command:

proz http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
From the same directory install the downloaded package with:
dnf install ./adobe-release-x86_64-1.0-1.noarch.rpm
Then install the Flash Player Plugin with:
dnf --refresh install flash-plugin

Essential Software

Essential Software for System

Install tlp

This software will allow you to configure powersaving options. It is also essential for providing persistance to hdparm -B and hdparm -S settings. See the Arch wiki page on tlp.

  1. Install with:
    dnf install tlp
  2. Enable necessary services with:
    systemctl enable tlp.service
     systemctl enable tlp-sleep.service
  3. Mask a conflicting service with:
    systemctl mask systemd-rfkill@.service
  4. tlp will start with the next boot. To start it immediately, use:
    tlp start
  5. Be sure to edit the configuration file /etc/default/tlp with settings appropriate for your system and your use case.

Essential Software for User

The essential software for a user tends to primarily be one's preferred browser. But browsing the web requires Flash video. Unfortunately, because Fedora does not distribute proprietary software, for Chromium based browsers like Opera and Vivaldi -- available as an RPM package from the Vivaldi website which also adds its repositories to Fedora, I had to use a work around to enable Chromium Pepper Flash in Fedora. This workaround was to copy the relevant files from one of my Arch based distributions that distribute the chromium-pepper-flash package through the AUR and place it in the appropriate location on the Fedora filesystem. The relevant file is libpepflashplayer.so which is placed at /lib/PepperFlash in an Arch system (including Antergos and Manjaro) as a result of installing chromium-pepper-flash. I also found this file in openSUSE at /usr/lib64/chromium/PepperFlash, but I don't remember what package installation or method placed it there.

So I copied /lib/PepperFlash/ from my Antergos installation to /usr/lib64/chromium/PepperFlash/ in my Fedora installation. The Chromium based browsers Opera and Vivaldi automatically find that Flash Player is available as shown in the following screenshot.

Chromium based browsers Opera and Vivaldi showing that Flash Player is enabled
Chromium based browsers Opera and Vivaldi showing that Flash Player is enabled.
Entering opera://plugins in Opera and about://plugins in Vivaldi shows installed plugins.

For Firefox which is available from the Fedora official repositories, will use the Adobe Flash Player plugin from the Adobe repository, which is added as shown in a previous section.

Another essential software, for me, is the Synaptic launcher which unfortunately Fedora does not provide. I packaged this myself as an RPM as described in the next section.

Build Packages Unavailable Elsewhere for System

One of Fedora's drawbacks is that software availability is not as good as some other distributions, especially Arch and its derivatives with the AUR and openSUSE with the openSUSE Build Service repositories. Fortunately for those that appreciate Fedora's strengths packaging software for management by the systems package manager is easy on rpm systems using rpmbuild. Fedora provides tools that follow best practices for this task and automates certain parts, like automatically creating the working directories used by rpmbuild and creating a user and an environment specifically for using rpmbuild.

I used the tools and process to package and install the Synapse semantic launcher, for me, a very useful piece of software when not using KDE which has its own very powerful tool for the same function. Building a package using rpmbuild is essentially executing:

rpmbuild -ba synapse.spec

where synapse.spec a spec file or a script with macros that provides instructions on building a package. The spec file I used to build the synapse package is presented below:


# Spec file for synapse package created for personal use based on the openSUSE
# spec for version 0.2.10 (release 0) and 
# https://renich.fedorapeople.org/SPECS/synapse.spec
#
# File has been modified to update Vala version requirement and to conform to
# Fedora conventions and to require zeitgeist and install language.

#
# spec file for package synapse
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           synapse
Version:        0.2.99.1
Release:        1%{?dist}
Summary:        A semantic launcher for GNOME
License:        GPL-3.0+
Group:          System/GUI/GNOME
Url:            http://launchpad.net/synapse-project
Source0:        http://launchpad.net/synapse-project/0.3/%{version}/+download/%{name}-%{version}.tar.xz
BuildArch: 	x86_64
BuildRequires:  vala >= 0.16.0
BuildRequires:  intltool
BuildRequires:  desktop-file-utils
BuildRequires:  libgee-devel
BuildRequires:  gtk2-devel
BuildRequires:  libgtkhotkey-devel
BuildRequires:  json-glib-devel
BuildRequires:  libnotify-devel
BuildRequires:  rest-devel
BuildRequires:  unique-devel
BuildRequires:  libzeitgeist-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Requires:       zeitgeist

%description
Synapse is a semantic launcher written in Vala that you can use to start
applications as well as find and access relevant documents and files by
making use of the Zeitgeist engine.

%lang_package
%prep
%setup -q

%build
%configure --disable-static --enable-zeitgeist=yes --enable-indicator=auto
make V=1 %{?_smp_mflags}

%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
install -d -p -m 755 %{buildroot}%{_datadir}/vala/vapi
instpasswd makerpmall -D -p -m 644 vapi/*.vapi %{buildroot}%{_datadir}/vala/vapi

# language files
%find_lang %{name}

# install desktop files
desktop-file-install --delete-original --dir=%{buildroot}%{_datadir}/applications              \
%{buildroot}%{_datadir}/applications/%{name}.desktop

#  validate desktop file
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop

%check
make test

%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg

%files devel
%defattr(-,root,root,-)
%doc AUTHORS 
%{_datadir}/vala/vapi

%changelog

%changelog
2015-06-02	-Removed previous patches from openSUSE spec for version 0.2.10.
		-Updated source0 url to that for series 0.3 from series 0.2.
		-Updated Vala requirement from version 0.14 to 0.16.

Using Another Distributions GRUB

Usinfg Fedora's GRUB

Change grub theme by copying a favorite theme from another distribution. Copy the theme folder from a distribution's /boot/grub2/themes/ folder to Fedora's /boot/grub2/themes/. I chose to copy the excellent openSUSE grub theme and the ROSA theme. The /etc/default/grub needs to be edited to include the lines:


GRUB_TERMINAL=gfxterm
GRUB_GFXMODE=auto
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_THEME=/boot/grub2/themes/rosa/theme.txt
		

Using Another Distribution's GRUB

When using the GRUB installed by Fedora to start Fedora, it is enough to add the above parameter to the list of kernel parmaters on the GRUB_CMDLINE_LINUX_DEFAULT line of /etc/default/grub. If using another distribution's GRUB to start Fedora, this is not enough. Although I didn't do this, the fix described here has been effective. Instead, I used a better solution which allows the booting of the Fedora installtion to be exactly the same as if I was using Fedora's GRUB, therby using the above kernel commandline parameter and also allowing the Fedora plymouth boot splash to work perfectly. This better solution was to replace the Fedora entries in the grub.cfg generated by GRUB configuration scripts of the distrubtion whose GRUB I am using on the multi-boot to boot all of the OSes with those generated by Fedora's GRUB configuration scripts.

I am using openSUSE's GRUB to boot all of the OSes on this system because it is the only one that will include the btrfs snapshot options in the GRUB menu. But, unfortunately, and as has been the case with all of the distributions I have tried, it can't deal well with the specific idosyncracies of other distributions, for example, the fact that the Arch based distributions don't build microcode updates into the initramfs image but leave it as a separate image. The solution that solves these problems, allowing me to use the GRUB of my choice, and still use the minimum backlight fix I mentioned above, has been to replace the relevant portions of the openSUSE's grub.cfg file at /boot/grub2/grub.cfg with that generated by the other distributions' own GRUB configuration scripts.

For clarity, I should mention that:

  • The grub.cfg file controls the structure and function of the GRUB menu.
  • The grub.cfg file is generated when running grub-mkconfig or depending on the distribution grub2-mkconfig except in Debian based distributions, which use grub-update.
  • The option -o when running grub-mkconfig specifies where the generated grub.cfg file is saved. Most distributions have copies in various locations, but most distributions want the version that is written and used by GRUB at /boot/grub/grub.cfg, openSUSE wants it at /boot/grub2/grub.cfg, and Fedora, most uniquely, wants it at /boot/efi/EFI/fedora/grub.cfg.

The Fedora entries in openSUSE's grub.cfg generated by its grub-mkconfig and those in Fedors's grub.cfg generated by its own grub-mkconfig are listed in the following two code blocks. I copied the contents of the second block over the contents of the second block. (I overwrote the Fedora entries in openSUSE's grub.cfg file with those from Fedora's own grub.cfg file). The drawback of this method is that when there is a kernel update in openSUSE, the update process will run grub-mkconfig ovewriting the grub.cfg file, requiring me to re-edit this file. Also, if there is a kernel update in any of the other distributions which put version numbers in the names of the images, I will have to update the grub.cfg file in openSUSE. Short of learning everything about GRUB and the scripts in /etc/grub.d/ this is the best method to make booting each of these distributions with another distributions GRUB behave as it was being booted with its own GRUB, therby including the kernel command line parameters specified in the distrubutions /etc/default/grub file including the video.use_native_backlight=1, which is the preferrable method of fixing backlight control.


menuentry 'Fedora release 22 (Twenty Two) (on /dev/sda9)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-90bed01c-4c76-4c54-90d6-0487433791f8' {
	insmod part_gpt 
	insmod ext2
	set root='hd0,gpt9'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
	else
	  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
	fi
	linuxefi /boot/vmlinuz-0-rescue-c8afb7b97c11476088c55a7ec860bfed root=/dev/sda9
	initrdefi /boot/initramfs-0-rescue-c8afb7b97c11476088c55a7ec860bfed.img
}
submenu 'Advanced options for Fedora release 22 (Twenty Two) (on /dev/sda9)' $menuentry_id_option 'osprober-gnulinux-advanced-90bed01c-4c76-4c54-90d6-0487433791f8' {
	menuentry 'Fedora release 22 (Twenty Two) (on /dev/sda9)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-0-rescue-c8afb7b97c11476088c55a7ec860bfed--90bed01c-4c76-4c54-90d6-0487433791f8' {
		insmod part_gpt 
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-0-rescue-c8afb7b97c11476088c55a7ec860bfed root=/dev/sda9
		initrdefi /boot/initramfs-0-rescue-c8afb7b97c11476088c55a7ec860bfed.img
	}
	menuentry 'Fedora release 22 (Twenty Two) (on /dev/sda9)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.0.4-301.fc22.x86_64--90bed01c-4c76-4c54-90d6-0487433791f8' {
		insmod part_gpt 
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-4.0.4-301.fc22.x86_64 root=/dev/sda9
		initrdefi /boot/initramfs-4.0.4-301.fc22.x86_64.img
	}
	menuentry 'Fedora release 22 (Twenty Two) (on /dev/sda9)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.0.4-301.fc22.x86_64+debug--90bed01c-4c76-4c54-90d6-0487433791f8' {
		insmod part_gpt 
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-4.0.4-301.fc22.x86_64+debug root=/dev/sda9
		initrdefi /boot/initramfs-4.0.4-301.fc22.x86_64+debug.img
	}
	menuentry 'Fedora release 22 (Twenty Two) (on /dev/sda9)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.0.4-303.fc22.x86_64--90bed01c-4c76-4c54-90d6-0487433791f8' {
		insmod part_gpt 
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-4.0.4-303.fc22.x86_64 root=/dev/sda9
		initrdefi /boot/initramfs-4.0.4-303.fc22.x86_64.img
	}
	menuentry 'Fedora release 22 (Twenty Two) (on /dev/sda9)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-4.0.4-303.fc22.x86_64+debug--90bed01c-4c76-4c54-90d6-0487433791f8' {
		insmod part_gpt 
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-4.0.4-303.fc22.x86_64+debug root=/dev/sda9
		initrdefi /boot/initramfs-4.0.4-303.fc22.x86_64+debug.img
	}
}

menuentry 'Fedora' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-simple-90bed01c-4c76-4c54-90d6-0487433791f8' {
	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt
	insmod ext2
	set root='hd0,gpt9'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
	else
	  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
	fi
	linuxefi /boot/vmlinuz-4.0.5-300.fc22.x86_64 root=UUID=90bed01c-4c76-4c54-90d6-0487433791f8 ro  resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f splash=silent quiet video.use_native_backlight=1
	initrdefi /boot/initramfs-4.0.5-300.fc22.x86_64.img
}
submenu 'Advanced options for Fedora' $menuentry_id_option 'gnulinux-advanced-90bed01c-4c76-4c54-90d6-0487433791f8' {
	menuentry 'Fedora (4.0.5-300.fc22.x86_64) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.0.5-300.fc22.x86_64-advanced-90bed01c-4c76-4c54-90d6-0487433791f8' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-4.0.5-300.fc22.x86_64 root=UUID=90bed01c-4c76-4c54-90d6-0487433791f8 ro  resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f splash=silent quiet video.use_native_backlight=1
		initrdefi /boot/initramfs-4.0.5-300.fc22.x86_64.img
	}
	menuentry 'Fedora (4.0.4-303.fc22.x86_64) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.0.4-303.fc22.x86_64-advanced-90bed01c-4c76-4c54-90d6-0487433791f8' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-4.0.4-303.fc22.x86_64 root=UUID=90bed01c-4c76-4c54-90d6-0487433791f8 ro  resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f splash=silent quiet video.use_native_backlight=1
		initrdefi /boot/initramfs-4.0.4-303.fc22.x86_64.img
	}
	menuentry 'Fedora (4.0.4-301.fc22.x86_64) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.0.4-301.fc22.x86_64-advanced-90bed01c-4c76-4c54-90d6-0487433791f8' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-4.0.4-301.fc22.x86_64 root=UUID=90bed01c-4c76-4c54-90d6-0487433791f8 ro  resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f splash=silent quiet video.use_native_backlight=1
		initrdefi /boot/initramfs-4.0.4-301.fc22.x86_64.img
	}
	menuentry 'Fedora (4.0.5-300.fc22.x86_64+debug) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.0.5-300.fc22.x86_64+debug-advanced-90bed01c-4c76-4c54-90d6-0487433791f8' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-4.0.5-300.fc22.x86_64+debug root=UUID=90bed01c-4c76-4c54-90d6-0487433791f8 ro  resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f splash=silent quiet video.use_native_backlight=1
		initrdefi /boot/initramfs-4.0.5-300.fc22.x86_64+debug.img
	}
	menuentry 'Fedora (4.0.4-303.fc22.x86_64+debug) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.0.4-303.fc22.x86_64+debug-advanced-90bed01c-4c76-4c54-90d6-0487433791f8' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-4.0.4-303.fc22.x86_64+debug root=UUID=90bed01c-4c76-4c54-90d6-0487433791f8 ro  resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f splash=silent quiet video.use_native_backlight=1
		initrdefi /boot/initramfs-4.0.4-303.fc22.x86_64+debug.img
	}
	menuentry 'Fedora (4.0.4-301.fc22.x86_64+debug) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-4.0.4-301.fc22.x86_64+debug-advanced-90bed01c-4c76-4c54-90d6-0487433791f8' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-4.0.4-301.fc22.x86_64+debug root=UUID=90bed01c-4c76-4c54-90d6-0487433791f8 ro  resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f splash=silent quiet video.use_native_backlight=1
		initrdefi /boot/initramfs-4.0.4-301.fc22.x86_64+debug.img
	}
	menuentry 'Fedora (0-rescue-c8afb7b97c11476088c55a7ec860bfed) 22 (Twenty Two)' --class fedora --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-c8afb7b97c11476088c55a7ec860bfed-advanced-90bed01c-4c76-4c54-90d6-0487433791f8' {
		load_video
		set gfxpayload=keep
		insmod gzio
		insmod part_gpt
		insmod ext2
		set root='hd0,gpt9'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt9 --hint-efi=hd0,gpt9 --hint-baremetal=ahci0,gpt9  90bed01c-4c76-4c54-90d6-0487433791f8
		else
		  search --no-floppy --fs-uuid --set=root 90bed01c-4c76-4c54-90d6-0487433791f8
		fi
		linuxefi /boot/vmlinuz-0-rescue-c8afb7b97c11476088c55a7ec860bfed root=UUID=90bed01c-4c76-4c54-90d6-0487433791f8 ro  resume=/dev/disk/by-uuid/69bb9b40-aedd-4278-ac57-0113a7dc816f splash=silent quiet video.use_native_backlight=1
		initrdefi /boot/initramfs-0-rescue-c8afb7b97c11476088c55a7ec860bfed.img
	}
}

Conclusion

blog comments powered by Disqus