From bff17ab06a447e0dfcac2eef1b4170b7c65d908b Mon Sep 17 00:00:00 2001 From: Daniel Knight Date: Sat, 5 Jan 2019 19:49:46 +0000 Subject: [PATCH] v6.20 + - General | Reduced disk write count: fake-hwclock.dat now stored in RAM. Many thanks to @WolfganP! https://github.com/Fourdee/DietPi/issues/2396 --- CHANGELOG.txt | 1 + PREP_SYSTEM_FOR_DIETPI.sh | 5 +++++ dietpi/patch_file | 6 ++++++ 3 files changed, 12 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 1b60177a1f..de9b3d8999 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -25,6 +25,7 @@ Changes / Improvements / Optimisations: - DietPi-Update | Added optional ability to automatically update DietPi, when updates are available. Please note, this is disabled by default. - DietPi-Sync | Removed the compression option, which has no effect on local sync, since files are not stored compressed, but only transferred compressed through remote sync protocols, which are currently not offered by DietPi-Sync. - General | Moved the remaining conf/* files located on DietPi-RAMdisk to /var/lib/dietpi or into DietPi-PREP, and removed /DietPi/dietpi/conf completely. These files were only used once or never, thus have no business inside the RAMdisk. +- General | Reduced disk write count: fake-hwclock.dat now stored in RAM. Many thanks to @WolfganP! https://github.com/Fourdee/DietPi/issues/2396 Bug Fixes: - DietPi-Software | Nextcloud: Resolved an issue, where the Nextcloud Apache config was not downloaded correctly. Thanks to @Stefan3v for reporting this issue: https://github.com/Fourdee/DietPi/issues/2383 diff --git a/PREP_SYSTEM_FOR_DIETPI.sh b/PREP_SYSTEM_FOR_DIETPI.sh index 066c9f3ac8..fbc78a4b9e 100644 --- a/PREP_SYSTEM_FOR_DIETPI.sh +++ b/PREP_SYSTEM_FOR_DIETPI.sh @@ -1262,6 +1262,11 @@ _EOF_ # - allow times in the past G_CONFIG_INJECT 'FORCE=' 'FORCE=force' /etc/default/fake-hwclock + # Move data store to RAM: https://github.com/Fourdee/DietPi/issues/2396 + systemctl stop fake-hwclock + G_CONFIG_INJECT 'FILE=' 'FILE=/tmp/fake-hwclock.dat' /etc/default/fake-hwclock + rm -f /etc/fake-hwclock.data + systemctl restart fake-hwclock G_DIETPI-NOTIFY 2 'Configuring enable serial console:' diff --git a/dietpi/patch_file b/dietpi/patch_file index adde0e3130..0a70aa31ab 100644 --- a/dietpi/patch_file +++ b/dietpi/patch_file @@ -1521,6 +1521,12 @@ Also have a look at "Sonarr", another alternative TV show manager, available for fi #------------------------------------------------------------------------------- + #Move fake-hwclock data store to RAM: https://github.com/Fourdee/DietPi/issues/2396 + systemctl stop fake-hwclock + G_CONFIG_INJECT 'FILE=' 'FILE=/tmp/fake-hwclock.dat' /etc/default/fake-hwclock + rm -f /etc/fake-hwclock.data + systemctl restart fake-hwclock + #------------------------------------------------------------------------------- fi