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:
parent
34f5397768
commit
2d9a56a9ec
@ -21,7 +21,7 @@ removepkg plymouth*
|
|||||||
removefrom ${product.name}-logos /usr/share/plymouth/*
|
removefrom ${product.name}-logos /usr/share/plymouth/*
|
||||||
## we don't create new initramfs/bootloader conf inside anaconda
|
## we don't create new initramfs/bootloader conf inside anaconda
|
||||||
## (that happens inside the target system after we install dracut/grubby)
|
## (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
|
## 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
|
removefrom dracut --allbut /usr/lib/dracut/modules.d/30convertfs/convertfs.sh
|
||||||
## we don't run SELinux (not in enforcing, anyway)
|
## we don't run SELinux (not in enforcing, anyway)
|
||||||
|
@ -34,10 +34,12 @@ installpkg kernel
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
## extra dracut modules
|
## extra dracut modules
|
||||||
installpkg dracut-network
|
installpkg dracut-network anaconda-dracut
|
||||||
|
|
||||||
## required for dracut
|
## required for dracut
|
||||||
installpkg kbd kbd-misc
|
installpkg kbd kbd-misc
|
||||||
|
## required for anaconda-dracut (img-lib etc.)
|
||||||
|
installpkg tar xz dmidecode curl
|
||||||
|
|
||||||
## basic system stuff
|
## basic system stuff
|
||||||
installpkg systemd-sysv systemd-units
|
installpkg systemd-sysv systemd-units
|
||||||
|
@ -248,7 +248,8 @@ class Lorax(BaseLoraxClass):
|
|||||||
templatedir=templatedir)
|
templatedir=templatedir)
|
||||||
|
|
||||||
logger.info("rebuilding initramfs images")
|
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)
|
treebuilder.rebuild_initrds(add_args=dracut_args)
|
||||||
|
|
||||||
logger.info("populating output tree and building boot images")
|
logger.info("populating output tree and building boot images")
|
||||||
|
Loading…
Reference in New Issue
Block a user