Skip to content

Commit

Permalink
improve CentOS 6 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Jun 17, 2016
1 parent 01b06e2 commit 13749a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/simple/package_config/CENTOS
Expand Up @@ -9,7 +9,7 @@ gnome-desktop # CentOS 7
PACKAGES yumi
authconfig
kernel
# grub # CentOS 5 and 6
# sysvinit-tools grub # CentOS 5 and 6
grub2 # CentOS 7
less
openssh
Expand Down
7 changes: 6 additions & 1 deletion examples/simple/scripts/CENTOS/30-mkinitrd
Expand Up @@ -54,6 +54,11 @@ if [ -f $target/usr/sbin/dracut ]; then
$ROOTCMD dracut -v --kver $version --force
fi

# for CentOS 6 we do not need to call dracut
# call dracut for CentOS 6
if [ -f $target/sbin/dracut ]; then
# add filesystem driver into initrd
ainsl -av /etc/dracut.conf.d/fai.conf 'filesystems+="ext4"'
$ROOTCMD dracut -v $version
fi

exit $error

0 comments on commit 13749a1

Please sign in to comment.