[unpackfs] Fix typo's introduced in june
This commit is contained in:
parent
45a31a3022
commit
2bc296b468
@ -30,6 +30,7 @@ import sys
|
|||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from libcalamares import *
|
from libcalamares import *
|
||||||
|
from libcalamares.utils import mount
|
||||||
|
|
||||||
import gettext
|
import gettext
|
||||||
_ = gettext.translation("calamares-python",
|
_ = gettext.translation("calamares-python",
|
||||||
@ -288,11 +289,11 @@ class UnpackOperation:
|
|||||||
return
|
return
|
||||||
|
|
||||||
if os.path.isdir(entry.source):
|
if os.path.isdir(entry.source):
|
||||||
r = libcalamares.utils.mount(entry.source, imgmountdir, "", "--bind")
|
r = mount(entry.source, imgmountdir, "", "--bind")
|
||||||
elif os.path.isfile(entry.source):
|
elif os.path.isfile(entry.source):
|
||||||
r = libcalamares.utils.mount(entry.source, imgmountdir, entry.sourcefs, "loop")
|
r = mount(entry.source, imgmountdir, entry.sourcefs, "loop")
|
||||||
else: # entry.source is a device
|
else: # entry.source is a device
|
||||||
r = libcalamares.utils.mount(entry.source, imgmountdir, entry.sourcefs, "")
|
r = mount(entry.source, imgmountdir, entry.sourcefs, "")
|
||||||
|
|
||||||
if r != 0:
|
if r != 0:
|
||||||
raise subprocess.CalledProcessError(r, "mount")
|
raise subprocess.CalledProcessError(r, "mount")
|
||||||
|
Loading…
Reference in New Issue
Block a user