Merge pull request 'Ignore system drives as live image' (#71) from bugfix/systemdrive_live into master

Reviewed-on: #71
This commit is contained in:
Hendrik Schutter 2024-08-19 16:30:09 +02:00
commit 1ceffa56f8
2 changed files with 7 additions and 1 deletions

View File

@ -8,7 +8,7 @@
#ifndef REHDD_H_ #ifndef REHDD_H_
#define REHDD_H_ #define REHDD_H_
#define REHDD_VERSION "V1.1.2" #define REHDD_VERSION "V1.1.3"
// Drive handling Settings // Drive handling Settings
#define WORSE_HOURS 19200 // mark drive if at this limit or beyond #define WORSE_HOURS 19200 // mark drive if at this limit or beyond

View File

@ -665,6 +665,12 @@ bool reHDD::getSystemDrive(string &systemDrive)
break; break;
} }
if (currentLine.ends_with(" /run/overlay/live\n"s))
{
systemDriveFound = true;
break;
}
if (currentLine.ends_with(" /\n"s)) if (currentLine.ends_with(" /\n"s))
{ {
systemDriveFound = true; systemDriveFound = true;