Copy shutdown and linuxrc.s390 on s390
This commit is contained in:
parent
e372574f32
commit
a21be14937
@ -355,11 +355,24 @@ class LoraxInstallTree(BaseLoraxClass):
|
|||||||
fobj.write(text)
|
fobj.write(text)
|
||||||
|
|
||||||
def misc_tree_modifications(self):
|
def misc_tree_modifications(self):
|
||||||
# replace init with anaconda init
|
if self.basearch in ("s390", "s390x"):
|
||||||
src = joinpaths(self.root, "usr", self.libdir, "anaconda", "init")
|
# copy shutdown
|
||||||
dst = joinpaths(self.root, "sbin", "init")
|
src = joinpaths(self.root, "usr/libexec/anaconda/shutdown")
|
||||||
os.unlink(dst)
|
dst = joinpaths(self.root, "sbin", "init")
|
||||||
shutil.copy2(src, dst)
|
os.unlink(dst)
|
||||||
|
shutil.copy2(src, dst)
|
||||||
|
|
||||||
|
# copy linuxrc.s390
|
||||||
|
src = joinpaths(self.root, "usr/share/anaconda/linuxrc.s390")
|
||||||
|
dst = joinpaths(self.root, "sbin", "init")
|
||||||
|
os.unlink(dst)
|
||||||
|
shutil.copy2(src, dst)
|
||||||
|
else:
|
||||||
|
# replace init with anaconda init
|
||||||
|
src = joinpaths(self.root, "usr", self.libdir, "anaconda", "init")
|
||||||
|
dst = joinpaths(self.root, "sbin", "init")
|
||||||
|
os.unlink(dst)
|
||||||
|
shutil.copy2(src, dst)
|
||||||
|
|
||||||
# init symlinks
|
# init symlinks
|
||||||
target = "/sbin/init"
|
target = "/sbin/init"
|
||||||
|
Loading…
Reference in New Issue
Block a user