# Softlink to netplan

**URL:** <https://hub.mender.io/t/softlink-to-netplan/5485>\
**Category:** General Discussions\
**Created:** [December 12, 2022, 7:54pm UTC](https://hub.mender.io/t/softlink-to-netplan/5485 "2022-12-12T19:54:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pv3](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/pv3/32/1614_2.png) [@pv3](https://hub.mender.io/u/pv3)\
**Post date:** [December 12, 2022, 7:54pm UTC](https://hub.mender.io/t/softlink-to-netplan/5485/1 "2022-12-12T19:54:54Z")

</div>

I’m using ubuntu and use netplan to store static IP configurations. When I softlink netplan and push a release, netplans fails to load after reboot and therefore the update fails due to not being able to checkin.

Im curious, how are you configuring the network stack?

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [December 12, 2022, 8:13pm UTC](https://hub.mender.io/t/softlink-to-netplan/5485/2 "2022-12-12T20:13:15Z")

</div>

Hi @pv3,

Netplan being quite Ubuntu-specific makes it hard to give advice. When you say “softlink”, what do you exactly mean? Putting the config behind a link? Or something else? What do you link where?

Greetz,  
Josef

PS: as you asked, I’m usually using `systemd-networkd`

---

<div class="post-metadata">

**Author:** ![pv3](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/pv3/32/1614_2.png) [@pv3](https://hub.mender.io/u/pv3)\
**Post date:** [December 12, 2022, 9:14pm UTC](https://hub.mender.io/t/softlink-to-netplan/5485/3 "2022-12-12T21:14:23Z")

</div>

Hi Josef,

Thanks for taking a look and giving your setup.

I should have been a bit more clear of my use case in my first post, my images are configured with DHCP which encompasses 90% of deployments. The remaining 10% are static, so if I were to to push the image, it would never work because it needs to check back in. So my thought is to keep the network config in persistent and link the file like so:

```auto
sudo mv /etc/netplan/00-installer-config.yaml /data/00-installer-config.yaml
sudo ln -s /data/00-installer-config.yaml /etc/netplan/00-installer-config.yaml

```

I’m working on building a system configurator for the client but even if it were ready tomorrow, I don’t see how to ‘re-profile’ the client after a deployment, would I create late scripts to pull the configs down or is there a way to store on persistent and just have my configurator app update persistent? As I don’t have a configurator at the moment, I would need to lean towards the latter option today as the config is stored locally.

Thanks again.

-Pat

---

<div class="post-metadata">

**Author:** ![TheYoctoJester](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/theyoctojester/32/1444_2.png) [@TheYoctoJester](https://hub.mender.io/u/TheYoctoJester)\
**Post date:** [December 13, 2022, 8:48am UTC](https://hub.mender.io/t/softlink-to-netplan/5485/4 "2022-12-13T08:48:09Z")

</div>

Hi @pv3

The persistent partition at `/data` is meant for exactly the things you mentioned. A common use case is to store network configuration there, so it certainly works. If netplan falls over, the question to me is: “Why?”. Have you checked the logs? Maybe it tries to access the link before `/data` is mounted?

Greetz,  
Josef

---

<div class="post-metadata">

**Author:** ![pv3](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/pv3/32/1614_2.png) [@pv3](https://hub.mender.io/u/pv3)\
**Post date:** [January 4, 2023, 5:15pm UTC](https://hub.mender.io/t/softlink-to-netplan/5485/5 "2023-01-04T17:15:24Z")

</div>

Thank you Josef. You were right, netplan was trying to apply the config before the partition was mounted.

I created a systemd service to rectify it.
