use --prefix=/run/initramfs when building initramfs
Having the initramfs at /run/initramfs means that it will be retained at /run/initramfs once we switch to the root image. We want that.
This commit is contained in:
parent
8c56e9d261
commit
dcc6a41a31
@ -174,7 +174,8 @@ class TreeBuilder(object):
|
||||
'''Rebuild all the initrds in the tree. If backup is specified, each
|
||||
initrd will be renamed with backup as a suffix before rebuilding.
|
||||
If backup is empty, the existing initrd files will be overwritten.'''
|
||||
dracut = ["dracut", "--noprefix", "--nomdadmconf", "--nolvmconf"] + add_args
|
||||
dracut = ["dracut", "--prefix=/run/initramfs",
|
||||
"--nomdadmconf", "--nolvmconf"] + add_args
|
||||
if not backup:
|
||||
dracut.append("--force")
|
||||
hooks = [("99anaconda-copy-ks.sh", "/lib/dracut/hooks/pre-pivot")]
|
||||
|
Loading…
Reference in New Issue
Block a user