Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Calamares
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osak
Calamares
Commits
1e5e44e0
Commit
1e5e44e0
authored
10 years ago
by
Teo Mrnjavac
Browse files
Options
Downloads
Plain Diff
Merge pull request #222 from Gormogon/master
Small Python IO Cleanup
parents
83e368fb
6a7e2190
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/modules/bootloader/main.py
+0
-2
0 additions, 2 deletions
src/modules/bootloader/main.py
src/modules/unpackfs/main.py
+8
-12
8 additions, 12 deletions
src/modules/unpackfs/main.py
with
8 additions
and
14 deletions
src/modules/bootloader/main.py
+
0
−
2
View file @
1e5e44e0
...
@@ -106,7 +106,6 @@ def create_systemd_boot_conf(uuid, conf_path, kernel_line):
...
@@ -106,7 +106,6 @@ def create_systemd_boot_conf(uuid, conf_path, kernel_line):
with
open
(
conf_path
,
'
w
'
)
as
f
:
with
open
(
conf_path
,
'
w
'
)
as
f
:
for
l
in
lines
:
for
l
in
lines
:
f
.
write
(
l
)
f
.
write
(
l
)
f
.
close
()
def
create_loader
(
loader_path
):
def
create_loader
(
loader_path
):
...
@@ -126,7 +125,6 @@ def create_loader(loader_path):
...
@@ -126,7 +125,6 @@ def create_loader(loader_path):
with
open
(
loader_path
,
'
w
'
)
as
f
:
with
open
(
loader_path
,
'
w
'
)
as
f
:
for
l
in
lines
:
for
l
in
lines
:
f
.
write
(
l
)
f
.
write
(
l
)
f
.
close
()
def
install_systemd_boot
(
efi_directory
):
def
install_systemd_boot
(
efi_directory
):
...
...
This diff is collapsed.
Click to expand it.
src/modules/unpackfs/main.py
+
8
−
12
View file @
1e5e44e0
...
@@ -264,13 +264,9 @@ def run():
...
@@ -264,13 +264,9 @@ def run():
fs_is_supported
=
False
fs_is_supported
=
False
if
os
.
path
.
isfile
(
PATH_PROCFS
)
and
os
.
access
(
PATH_PROCFS
,
os
.
R_OK
):
if
os
.
path
.
isfile
(
PATH_PROCFS
)
and
os
.
access
(
PATH_PROCFS
,
os
.
R_OK
):
procfile
=
open
(
PATH_PROCFS
,
'
r
'
)
with
open
(
PATH_PROCFS
,
'
r
'
)
as
procfile
:
filesystems
=
procfile
.
read
()
filesystems
=
procfile
.
read
()
procfile
.
close
()
filesystems
=
filesystems
.
replace
(
"
nodev
"
,
""
).
replace
(
"
\t
"
,
""
).
splitlines
()
filesystems
=
filesystems
.
replace
(
"
nodev
"
,
""
)
filesystems
=
filesystems
.
replace
(
"
\t
"
,
""
)
filesystems
=
filesystems
.
splitlines
()
# Check if the source filesystem is supported
# Check if the source filesystem is supported
for
fs
in
filesystems
:
for
fs
in
filesystems
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment