remove anaconda-copy-ks.sh

anaconda-copy-ks.sh is included in the 'anaconda' dracut module, so we
don't need to install it here anymore.
This commit is contained in:
Will Woods 2012-02-16 16:20:17 -05:00 committed by Brian C. Lane
parent 2d9a56a9ec
commit 562be7eaec
2 changed files with 1 additions and 7 deletions

View File

@ -1,4 +0,0 @@
#!/bin/sh
# Copy over kickstart files from the initrd to the sysroot before pivot
cp /*cfg /*ks /sysroot/ 2> /dev/null

View File

@ -175,8 +175,6 @@ class TreeBuilder(object):
"--nomdadmconf", "--nolvmconf"] + add_args
if not backup:
dracut.append("--force")
hooks = [("99anaconda-copy-ks.sh", "/lib/dracut/hooks/pre-pivot")]
hook_commands = self.copy_dracut_hooks(hooks)
# Hush some dracut warnings. TODO: bind-mount proc in place?
open(joinpaths(self.vars.inroot,"/proc/modules"),"w")
@ -186,7 +184,7 @@ class TreeBuilder(object):
initrd = joinpaths(self.vars.inroot, kernel.initrd.path)
os.rename(initrd, initrd + backup)
check_call(["chroot", self.vars.inroot] + \
dracut + hook_commands + [kernel.initrd.path, kernel.version])
dracut + [kernel.initrd.path, kernel.version])
os.unlink(joinpaths(self.vars.inroot,"/proc/modules"))
def build(self):