mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-30 10:55:37 -04:00
[unpackfs] Fix typo's introduced in june
This commit is contained in:
parent
45a31a3022
commit
2bc296b468
1 changed files with 4 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue