Skip to content

Commit

Permalink
persistent timesync
Browse files Browse the repository at this point in the history
  • Loading branch information
andiradulescu committed Sep 18, 2024
1 parent f83aafb commit 5d47fad
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile.agnos
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,12 @@ COPY ./userspace/files/apt.conf /etc/apt/apt.conf
# copy version file
COPY VERSION /VERSION

# The modification time ("mtime") of this file is used for advancing the system clock in case /var/lib/systemd/timesync/clock does not exist yet
# Sets initial boot time (as build time) and fixes fstab warning #374 (system time > fstab mtime)
RUN touch /usr/lib/clock-epoch

# ################## #
# #### Cleaunup #### #
# #### Cleanup #### #
# ################## #

RUN rm -rf /usr/share/icons/* && \
Expand Down
6 changes: 6 additions & 0 deletions userspace/usr/comma/fs_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ touch /data/etc/timezone
touch /data/etc/localtime
mkdir -p /data/etc/NetworkManager/system-connections

# /var
mkdir -p /data/var/lib/systemd/timesync
rm -rf /var/lib/systemd/timesync
mkdir -p /var/lib/systemd
ln -s /data/var/lib/systemd/timesync /var/lib/systemd

# /data/media - NVME mount point
mkdir -p /data/media

Expand Down

0 comments on commit 5d47fad

Please sign in to comment.