Missing initramfs images on Fedora Rawhide

Wth Dracut it is possible to generate initramfs images on Fedora. The configuration of Dracut is available in /etc/dracut.conf. To overwrite an existing initramfs image add the parameter --force

dracut /boot/initramfs-3.15.0-1.fc21.x86_64.img 3.15.0-1.fc21.x86_64

The Grub2 configuration should be regenerated afterward using grub2-mkconfig -o /boot/grub2/grub.cfg.

To simplify your life use the following script.


# author: Christian Berendt <mail@cberendt.net>

set -x

for kernel in $(find /boot/vmlinuz*); do
    version=$(basename $kernel)
    if [ ! -e /boot/initramfs-$version.img ]; then
        sudo /usr/bin/dracut /boot/initramfs-$version.img $version

for image in $(find /boot/initramfs*); do
    if [ ! -e /boot/vmlinuz-$version ]; then
        sudo rm $image

sudo /usr/sbin/grub2-mkconfig -o /boot/grub2/grub.cfg

Also posted on Stack Overflow.

Google Chrome and Fedora 21

At the moment it is not possible to use Google Chrome with Fedora 21 out of the box.

It is not possible to install the provided RPM package because of a missing dependency libgcrypt.so.11.

% sudo rpm -Uvh google-chrome-stable_current_x86_64.rpm
error: Failed dependencies:
	libgcrypt.so.11()(64bit) is needed by google-chrome-stable-35.0.1916.114-1.x86_64

When installing the RPM package using the paremter --nodeps it is also not possible to run google-chrome.

% sudo rpm -Uvh --nodeps google-chrome-stable_current_x86_64.rpm

% google-chrome
/usr/bin/google-chrome: /lib64/libgcrypt.so.11: version `GCRYPT_1.2' not found (required by /usr/bin/google-chrome)

To be able to use Google Chrome with Fedora 21 you have to install the package compat-libgcrypt provided at http://copr.fedoraproject.org/coprs/red/libgcrypt.so.11.

% sudo wget -O /etc/yum.repos.d/red-libgcrypt.so.11-fedora-rawhide-i386.repo http://copr.fedoraproject.org/coprs/red/libgcrypt.so.11/repo/fedora-rawhide-i386/red-libgcrypt.so.11-fedora-rawhide-i386.repo

% sudo yum install compat-libgcrypt

An other Vagrant box with Devstack and Ubuntu 14.04

Like Sean Dague I really like Vagrant and created a box with Ubuntu 14.04 and Devstack a few days ago. The box is available for use with VirtualBox on the Vagrant Cloud. The used Vagrantfile and Puppet manifest is available on Github in the repository berendt/vagrant-devstack. Hava a look in the used local.conf for enabled services and available images.

To use the prepared box simply install Vagrant and fetch the box with vagrant box add berendt/devstack-ubuntu-14.04-amd64. Now you can use the box with the following Vagrantfile. After typing vagrant up the start of the box will take appr. 10 minutes. Afterwards you can login with vagrant ssh. The dashboard is available at http://localhost:8080/. Add openstack.site to /etc/hosts to be able to use the VNC sessions.


Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  config.vm.box = "berendt/devstack-ubuntu-14.04-amd64"

  config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: ""
  config.vm.network "forwarded_port", guest: 6080, host: 6080, host_ip: ""

  config.vm.provider "virtualbox" do |vb|
      vb.customize ["modifyvm", :id, "--memory", "16384"]
      vb.customize ["modifyvm", :id, "--cpus", "8"]

  config.vm.provision "shell", privileged: false, inline: "/home/vagrant/devstack/stack.sh"