forked from Mirror/pmbootstrap
I've realized that truncate is provided by busybox anyway, so no need to install coreutils for this. This should fix creating system image files on ZFS, where fallocate is not implemented.
This commit is contained in:
parent
67867a9c6e
commit
0ae6a150e8
1 changed files with 1 additions and 6 deletions
|
@ -70,11 +70,6 @@ def create_and_mount_image(args):
|
||||||
raise RuntimeError("Aborted.")
|
raise RuntimeError("Aborted.")
|
||||||
|
|
||||||
pmb.chroot.user(args, ["mkdir", "-p", "/home/user/rootfs"])
|
pmb.chroot.user(args, ["mkdir", "-p", "/home/user/rootfs"])
|
||||||
pmb.chroot.root(args, ["fallocate", "-l", size, img_path], check=False)
|
|
||||||
if not os.path.exists(img_path_outside):
|
|
||||||
logging.debug("WARNING: fallocate failed, falling back to truncate."
|
|
||||||
" More info: https://github.com/postmarketOS/pmbootstrap/issues/28")
|
|
||||||
pmb.chroot.apk.install(args, ["coreutils"])
|
|
||||||
pmb.chroot.root(args, ["truncate", "-s", size, img_path])
|
pmb.chroot.root(args, ["truncate", "-s", size, img_path])
|
||||||
|
|
||||||
# Mount to /dev/install
|
# Mount to /dev/install
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue