forked from Mirror/pmbootstrap
pmb.helpers.mount: Rename bind_blockdevice() to bind_file() (!1861)
bind_blockdevice() can be also used to mount --bind files, rename it to bind_file().
This commit is contained in:
parent
f3dc6a55cf
commit
f43d552039
4 changed files with 12 additions and 12 deletions
|
@ -66,10 +66,10 @@ def bind(args, source, destination, create_folders=True, umount=False):
|
|||
raise RuntimeError("Mount failed: " + source + " -> " + destination)
|
||||
|
||||
|
||||
def bind_blockdevice(args, source, destination):
|
||||
def bind_file(args, source, destination):
|
||||
"""
|
||||
Mount a blockdevice with the --bind option, and create the destination
|
||||
file, if necessary.
|
||||
Mount a file with the --bind option, and create the destination file,
|
||||
if necessary.
|
||||
"""
|
||||
# Skip existing mountpoint
|
||||
if ismount(destination):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue