diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-01-15 00:55:32 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2024-01-15 00:55:32 +0000 |
commit | e613983721c48c13c2e6e73e7c4dbdbaa8e9eacf (patch) | |
tree | 1197a223c3fd4dd36b077b3c00f9033a678d5925 | |
parent | c2215e39f134f11903f8c3d1500e79226ad45222 (diff) | |
download | vyos-1x-e613983721c48c13c2e6e73e7c4dbdbaa8e9eacf.tar.gz vyos-1x-e613983721c48c13c2e6e73e7c4dbdbaa8e9eacf.zip |
T5901: Add DHCP base_path dir during first boot
We should create dhclient base_path dir `/run/dhclient` during the
first boot.
It fixes cloud-init boot issues
```
/etc/dhcp/dhclient-exit-hooks.d/03-vyos-dhclient-hook: line 33: /run/dhclient/dhclient_eth0.lease: No such file or directory
```
-rw-r--r-- | src/etc/dhcp/dhclient-exit-hooks.d/03-vyos-dhclient-hook | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/etc/dhcp/dhclient-exit-hooks.d/03-vyos-dhclient-hook b/src/etc/dhcp/dhclient-exit-hooks.d/03-vyos-dhclient-hook index 35721d009..d5e6462ba 100644 --- a/src/etc/dhcp/dhclient-exit-hooks.d/03-vyos-dhclient-hook +++ b/src/etc/dhcp/dhclient-exit-hooks.d/03-vyos-dhclient-hook @@ -29,6 +29,7 @@ fi if [ "$RUN" = "yes" ]; then BASE_PATH=$(python3 -c "from vyos.defaults import directories; print(directories['isc_dhclient_dir'])") + mkdir -p ${BASE_PATH} LOG=${BASE_PATH}/dhclient_"$interface"."$proto"lease echo `date` > $LOG |