Skip to content
This repository has been archived by the owner on Aug 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #334 from hypriot/symlink-fake-hwclock
Browse files Browse the repository at this point in the history
create symlink for fake-hwclock
  • Loading branch information
StefanScherer authored Jan 5, 2020
2 parents 704704c + 3b3ddfd commit 9868b07
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions builder/chroot-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,17 @@ mkdir -p /var/lib/cloud/seed/nocloud-net
ln -s /boot/user-data /var/lib/cloud/seed/nocloud-net/user-data
ln -s /boot/meta-data /var/lib/cloud/seed/nocloud-net/meta-data

mv /etc/fake-hwclock.data /boot/fake-hwclock.data
ln -s /boot/fake-hwclock.data /etc/fake-hwclock.data
mkdir -p /etc/systemd/system/fake-hwclock.service.d
cat <<EOM |tee /etc/systemd/system/fake-hwclock.service.d/override.conf
[Unit]
After=boot.mount
#Wants=boot.mount
#Requires=boot.mount
EOM
systemctl daemon-reload

# Fix duplicate IP address for eth0, remove file from os-rootfs
rm -f /etc/network/interfaces.d/eth0

Expand Down

0 comments on commit 9868b07

Please sign in to comment.