fix create_runtime workdir path thinko
I used basename when I meant dirname. Duh.
This commit is contained in:
parent
b73132af75
commit
5ebaccef4d
@ -130,7 +130,7 @@ class RuntimeBuilder(object):
|
||||
|
||||
def create_runtime(self, outfile="/tmp/squashfs.img"):
|
||||
# make live rootfs image - must be named "LiveOS/rootfs.img" for dracut
|
||||
workdir = joinpaths(basename(outfile), "runtime-workdir")
|
||||
workdir = joinpaths(os.path.dirname(outfile), "runtime-workdir")
|
||||
fssize = 2 * (1024*1024*1024) # 2GB sparse file compresses down to nothin'
|
||||
os.makedirs(joinpaths(workdir, "LiveOS"))
|
||||
imgutils.mkext4img(self.vars.root, joinpaths(workdir, "LiveOS/rootfs.img"),
|
||||
|
Loading…
Reference in New Issue
Block a user