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:
Will Woods 2012-02-16 15:03:11 -05:00 committed by Brian C. Lane
parent 8c56e9d261
commit dcc6a41a31

View File

@ -174,7 +174,8 @@ class TreeBuilder(object):
'''Rebuild all the initrds in the tree. If backup is specified, each '''Rebuild all the initrds in the tree. If backup is specified, each
initrd will be renamed with backup as a suffix before rebuilding. initrd will be renamed with backup as a suffix before rebuilding.
If backup is empty, the existing initrd files will be overwritten.''' 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: if not backup:
dracut.append("--force") dracut.append("--force")
hooks = [("99anaconda-copy-ks.sh", "/lib/dracut/hooks/pre-pivot")] hooks = [("99anaconda-copy-ks.sh", "/lib/dracut/hooks/pre-pivot")]