Skip to content

Commit

Permalink
v6.35
Browse files Browse the repository at this point in the history
+ DietPi-PREP | Do not force fake-hwclock to lower the system time on load or store timestamps even if those are lower than it's on release date. The chance that the initial system clock is in fact in the future is likely lower than the chance that this messes with other time sync daemons that update the system clock prior to fake-hwclock, e.g. systemd-timesyncd which has the same feature implemented, when being enabled (dietpi-config time sync daemon + drift mode).
  • Loading branch information
MichaIng authored Jan 22, 2021
1 parent 52c348e commit e82ec72
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions PREP_SYSTEM_FOR_DIETPI.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1429,12 +1429,6 @@ left_meter_modes=1 1
right_meters=Memory Swap Tasks LoadAverage Uptime
right_meter_modes=1 1 2 2 2
_EOF_'

G_DIETPI-NOTIFY 2 'Configuring fake-hwclock:'
# Allow times in the past
G_CONFIG_INJECT 'FORCE=' 'FORCE=force' /etc/default/fake-hwclock
systemctl restart fake-hwclock # Failsafe, apply now if date is way far back...

G_DIETPI-NOTIFY 2 'Configuring serial login consoles:'
# On virtual machines, serial consoles are not required
if (( $G_HW_MODEL == 20 )); then
Expand All @@ -1461,11 +1455,11 @@ _EOF_'

fi

G_DIETPI-NOTIFY 2 'Reducing getty count and resource usage:'
systemctl mask --now getty-static
# - logind features disabled by default. Usually not needed and all features besides auto getty creation are not available without libpam-systemd package.
# - It will be unmasked, automatically if libpam-systemd got installed during dietpi-software install, usually with desktops.
systemctl mask --now systemd-logind
G_DIETPI-NOTIFY 2 'Disabling static and automatic login prompts on consoles tty2 to tty6:'
G_EXEC systemctl mask --now getty-static
# - logind features are usually not needed and (aside of automatic getty spawn) require the libpam-systemd package.
# - It will be unmasked automatically if libpam-systemd got installed during dietpi-software install, e.g. with desktops.
G_EXEC systemctl mask --now systemd-logind

#G_DIETPI-NOTIFY 2 'Configuring locales:' # Runs at start of script

Expand Down

0 comments on commit e82ec72

Please sign in to comment.