Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
calamares
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
17
Issues
17
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Applications
calamares
Commits
ee72adcf
Commit
ee72adcf
authored
May 12, 2018
by
Philip Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[partition] Only bootloader model should ignore devices that are not of Disk_Device type #950
parent
e59e6abc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
src/modules/partition/core/DeviceList.cpp
src/modules/partition/core/DeviceList.cpp
+1
-6
src/modules/partition/core/PartitionCoreModule.cpp
src/modules/partition/core/PartitionCoreModule.cpp
+12
-1
No files found.
src/modules/partition/core/DeviceList.cpp
View file @
ee72adcf
...
...
@@ -129,12 +129,7 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize )
// Remove the device which contains / from the list
for
(
DeviceList
::
iterator
it
=
devices
.
begin
();
it
!=
devices
.
end
();
)
if
(
(
*
it
)
->
type
()
!=
Device
::
Type
::
Disk_Device
)
{
cDebug
()
<<
" .. Removing device that is not a Disk_Device from list "
<<
it
;
it
=
erase
(
devices
,
it
);
}
else
if
(
!
(
*
it
)
||
if
(
!
(
*
it
)
||
(
*
it
)
->
deviceNode
().
startsWith
(
"/dev/zram"
)
)
{
...
...
src/modules/partition/core/PartitionCoreModule.cpp
View file @
ee72adcf
...
...
@@ -164,7 +164,18 @@ PartitionCoreModule::doInit()
for
(
auto
deviceInfo
:
m_deviceInfos
)
deviceInfo
->
partitionModel
->
init
(
deviceInfo
->
device
.
data
(),
m_osproberLines
);
m_bootLoaderModel
->
init
(
devices
);
DeviceList
bootLoaderDevices
;
for
(
DeviceList
::
Iterator
it
=
devices
.
begin
();
it
!=
devices
.
end
();
++
it
)
if
(
(
*
it
)
->
type
()
!=
Device
::
Type
::
Disk_Device
)
{
cDebug
()
<<
"Ignoring device that is not Disk_Device to bootLoaderDevices list."
;
continue
;
}
else
bootLoaderDevices
.
append
(
*
it
);
m_bootLoaderModel
->
init
(
bootLoaderDevices
);
//FIXME: this should be removed in favor of
// proper KPM support for EFI
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment