disk: remove RootPartitionIndex
This method was only used by `updateRootPartition` which got removed as well so this method is unused now.
This commit is contained in:
parent
fb7f92aa95
commit
74f6c59c93
1 changed files with 0 additions and 13 deletions
|
|
@ -176,19 +176,6 @@ func (pt *PartitionTable) BootPartitionIndex() int {
|
|||
return rootIdx
|
||||
}
|
||||
|
||||
func (pt *PartitionTable) RootPartitionIndex() int {
|
||||
rootIdx := -1
|
||||
for idx, part := range pt.Partitions {
|
||||
if part.Filesystem == nil {
|
||||
continue
|
||||
}
|
||||
if part.Filesystem.Mountpoint == "/" {
|
||||
rootIdx = idx
|
||||
}
|
||||
}
|
||||
return rootIdx
|
||||
}
|
||||
|
||||
// Returns the Filesystem instance for a given mountpoint, if it exists.
|
||||
func (pt *PartitionTable) FindFilesystemForMountpoint(mountpoint string) *Filesystem {
|
||||
for _, part := range pt.Partitions {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue