Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmbootstrap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
postmarketOS
pmbootstrap
Merge requests
!2456
install: losetup: check if the back-file attribute for a loop device is null
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
install: losetup: check if the back-file attribute for a loop device is null
sixthkrum/pmbootstrap:losetup-bad-loopdevice-fix
into
master
Overview
7
Commits
1
Pipelines
3
Changes
1
All threads resolved!
Hide all comments
Merged
Vikram Alagh
requested to merge
sixthkrum/pmbootstrap:losetup-bad-loopdevice-fix
into
master
5 months ago
Overview
7
Commits
1
Pipelines
3
Changes
1
All threads resolved!
Hide all comments
Expand
1
0
Merge request reports
Compare
master
version 2
dc4e2668
5 months ago
version 1
5f0712f2
5 months ago
master (base)
and
latest version
latest version
8ac2e48a
1 commit,
5 months ago
version 2
dc4e2668
1 commit,
5 months ago
version 1
5f0712f2
1 commit,
5 months ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
pmb/install/losetup.py
+
1
−
1
Options
@@ -72,7 +72,7 @@ def device_by_back_file(back_file: Path) -> Path:
# Find the back_file
losetup
=
json
.
loads
(
losetup_output
)
for
loopdevice
in
losetup
[
"
loopdevices
"
]:
if
Path
(
loopdevice
[
"
back-file
"
])
==
back_file
:
if
loopdevice
[
"
back-file
"
]
is
not
None
and
Path
(
loopdevice
[
"
back-file
"
])
==
back_file
:
return
Path
(
loopdevice
[
"
name
"
])
raise
RuntimeError
(
f
"
Failed to find loop device for
{
back_file
}
"
)
Loading