add anaconda dracut module

Install the anaconda dracut module during 'install', use it when
rebuilding initramfs, and clean it up afterward.

Also install '.buildstamp' into the initramfs (the anconda module wants
it).
This commit is contained in:
Will Woods 2012-02-16 14:58:13 -05:00
parent a077587eb8
commit e8894b64fa
3 changed files with 6 additions and 3 deletions

View File

@ -21,7 +21,7 @@ removepkg plymouth*
removefrom ${product.name}-logos /usr/share/plymouth/*
## we don't create new initramfs/bootloader conf inside anaconda
## (that happens inside the target system after we install dracut/grubby)
removepkg dracut-network grubby
removepkg dracut-network grubby anaconda-dracut
## In order to execute the /usr move on upgrades we need convertfs from dracut
removefrom dracut --allbut /usr/lib/dracut/modules.d/30convertfs/convertfs.sh
## we don't run SELinux (not in enforcing, anyway)

View File

@ -33,10 +33,12 @@ installpkg kernel
%endif
## extra dracut modules
installpkg dracut-network
installpkg dracut-network anaconda-dracut
## required for dracut
installpkg kbd kbd-misc
## required for anaconda-dracut (img-lib etc.)
installpkg tar xz dmidecode curl
## basic system stuff
installpkg systemd-sysv systemd-units

View File

@ -248,7 +248,8 @@ class Lorax(BaseLoraxClass):
templatedir=templatedir)
logger.info("rebuilding initramfs images")
dracut_args=["--xz", "--add", "livenet", "--add", "convertfs", "--omit", "plymouth"]
dracut_args=["--xz", "--add", "anaconda", "--omit", "plymouth",
"--install", "/.buildstamp"]
treebuilder.rebuild_initrds(add_args=dracut_args)
logger.info("populating output tree and building boot images")