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:
parent
2d9a56a9ec
commit
562be7eaec
@ -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
|
|
||||||
|
|
@ -175,8 +175,6 @@ class TreeBuilder(object):
|
|||||||
"--nomdadmconf", "--nolvmconf"] + add_args
|
"--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")]
|
|
||||||
hook_commands = self.copy_dracut_hooks(hooks)
|
|
||||||
|
|
||||||
# Hush some dracut warnings. TODO: bind-mount proc in place?
|
# Hush some dracut warnings. TODO: bind-mount proc in place?
|
||||||
open(joinpaths(self.vars.inroot,"/proc/modules"),"w")
|
open(joinpaths(self.vars.inroot,"/proc/modules"),"w")
|
||||||
@ -186,7 +184,7 @@ class TreeBuilder(object):
|
|||||||
initrd = joinpaths(self.vars.inroot, kernel.initrd.path)
|
initrd = joinpaths(self.vars.inroot, kernel.initrd.path)
|
||||||
os.rename(initrd, initrd + backup)
|
os.rename(initrd, initrd + backup)
|
||||||
check_call(["chroot", self.vars.inroot] + \
|
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"))
|
os.unlink(joinpaths(self.vars.inroot,"/proc/modules"))
|
||||||
|
|
||||||
def build(self):
|
def build(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user