Tag Archives: Fedora

Expendable Fedora 17 default services

      No Comments on Expendable Fedora 17 default services

Based on Harald Hoyer’s great tutorial on boot time optimization for Fedora 17, here’s a list of services I usually disable on my Fedora 17 boxes: This is just a memory hook for myself. YMMV and of course what’s expendable depends on the configuration you use on your box. For an explanation of the systemctl mask command have a look… Read more »

Bootstrapping a Fedora 17 rootserver

      No Comments on Bootstrapping a Fedora 17 rootserver

Quite a few things have changed since I made the Bootstrapping a Fedora 15 rootserver post, e.g. download urls, anaconda options and the way you add boot targets to grub2 (in contrast to legacy grub). So here’s an updated version… Get initial ramdisk and kernel This is basically still the same as with Fedora 15. The download links have changed… Read more »

Change GRUB2 default boot target

      2 Comments on Change GRUB2 default boot target

In GRUB, the default boot menu entry was determined by the order of entries in /boot/grub/menu.lst, the default one being the n-th specified by the default=n parameter. In GRUB2 the main configuration file /boot/grub2/grub.cfg isn’t usually altered manually any more but automatically generated by invoking grub2-mkconfig. You can change the default boot target by changing the GRUB_DEFAULT paramater in /etc/default/grub…. Read more »

How to list rpm packages from certain repository

Usually, rpm –queryformat can be used to generate all sorts of rpm package listing. You could, for example, use the vendor tag to separate the packages that are tagged with RPM Fusion from the list of all installed packages (rpm -qa): Unfortunately, there is no 1:1 mapping between rpm’s vendor tag and the install repository. In some cases, the vendor… Read more »

Error “you have not created a bootloader stage1 target device”

This rather cryptic error may appear during a Fedora 16 installation and simply tries to tell you, that you forgot to create a BIOS boot partition. If you’re doing a kickstart install, a look at Fedora’s Kickstart wiki page may be helpful. A big yellow alert box essentially tells you to add the following line to your kickstart file that… Read more »

Changing rpmbuild working directory

      3 Comments on Changing rpmbuild working directory

Usually, rpmbuild related variables are set in ~/.rpmmacros. To change the current working directory, one could simply alter the default settings: This would change rpmbuild’s working directory on a per-user basis. Sometimes it’s quite convenient to keep the default setting and change the working directory on a per-project basis: To use the current directory as working directory, one could invoke… Read more »

Bootstrapping a Fedora 15 rootserver

      1 Comment on Bootstrapping a Fedora 15 rootserver

In certain situations where you don’t have physical access to your server it can be quite helpful to know how to install a new os without physical media like CD/DVD/USB or pxe. This brief example shows you, how to bootstrap a rootserver (that of course already has a linux os installed that you can access through ssh) to install Fedora… Read more »

Shutting down kvm guest on host shutdown

      No Comments on Shutting down kvm guest on host shutdown

Per default, kvm instances are suspended when the host OS shuts down. This is down through an init scripot (libvirt-guests) that comes out of the box with Fedora and RHEL 6. To change the guests’ shutdown behaviour, have a look at /etc/sysconfig/libvirt-guests. If you would like to send an ACPI system_powerdown event to the guest (i.e. a regular shutdown) instead… Read more »

Installing yum build dependencies with yum-builddep

After fiddling around with rpmbuild for quite a while, I stumbled upon yum-builddep. It’s basically a tool to install all packages required to rebuild an RPM package from the SRPM. So if you want to install all “BuildRequires” mentioned in the spec file of a package, invoke The source RPM for the specified package must be available in the yum… Read more »