fix create_runtime workdir path thinko

I used basename when I meant dirname. Duh.
This commit is contained in:
Will Woods 2011-06-23 12:12:37 -04:00
parent b73132af75
commit 5ebaccef4d
1 changed files with 1 additions and 1 deletions

View File

@ -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"),