ignore system drives as live image
This commit is contained in:
parent
4b33fb6fdb
commit
4ff1888333
@ -8,7 +8,7 @@
|
||||
#ifndef REHDD_H_
|
||||
#define REHDD_H_
|
||||
|
||||
#define REHDD_VERSION "V1.1.2"
|
||||
#define REHDD_VERSION "V1.1.3"
|
||||
|
||||
// Drive handling Settings
|
||||
#define WORSE_HOURS 19200 // mark drive if at this limit or beyond
|
||||
|
@ -665,6 +665,12 @@ bool reHDD::getSystemDrive(string &systemDrive)
|
||||
break;
|
||||
}
|
||||
|
||||
if (currentLine.ends_with(" /run/overlay/live\n"s))
|
||||
{
|
||||
systemDriveFound = true;
|
||||
break;
|
||||
}
|
||||
|
||||
if (currentLine.ends_with(" /\n"s))
|
||||
{
|
||||
systemDriveFound = true;
|
||||
|
Loading…
Reference in New Issue
Block a user