Page MenuHomeVyOS Platform

Saving the system configuration does not always update the bind mount and may destroy the config file
Closed, ResolvedPublicBUG

Description

Today I downloaded the latest rolling release version from the website (2025.08.27-0019-rolling). Installing this image worked as expected without issues.
Consoling onto the device, I enabled ssh and created a user so I could copy and paste some commands onto the machine. The commit and save commands threw no errors, however the config.boot file is now empty

isaac.french@test-device# save
[edit]
isaac.french@test-device# cat /config/config.boot
[edit]
isaac.french@test-device# file /config/config.boot
/config/config.boot: empty
[edit]
isaac.french@test-device#

I was able to run the save command with an explicit path save /config/test.conf which worked. However, replacing the file was not possible

mv test.conf config.boot
mv: cannot move 'test.conf' to 'config.boot': Stale file handle
[edit]

It also could not be removed

sudo rm -rf /config/config.boot
rm: cannot remove '/config/config.boot': Stale file handle
[edit]

Rebooting the machine did not break it, and in fact it kept the configuration changes I had made, so this is not breaking anything as far as I can tell.
After rebooting the machine, I had all of the changes I saved before the reboot, and the config.boot file was re-populated. I assume something in the save functionality had broken and locked the file, but I could not see any process holding it open.

This was tested on a physical machine and a VM. Both were installed over and older image, and then re-flashed entirely with the issue occurring in each instance.

Details

Version
2025.08.27-0019-rolling
Is it a breaking change?
Perfectly compatible
Issue type
Bug (incorrect behavior)

Event Timeline

jestabro triaged this task as High priority.

Thanks for the report: this was a regression due to the introduction of an atomic write on save, which did not respect the bind mount directory /config. Reverting pending a comprehensive solution:
https://github.com/vyos/vyos-1x/pull/4683

jestabro moved this task from Need Triage to Completed on the VyOS Rolling board.
dmbaturin renamed this task from In the latest rolling release, saving configuration empties /config/config.boot to Saving the system configuration does not always update the bind mount and may destroy the config file.Thu, Nov 13, 12:55 AM
dmbaturin edited projects, added VyOS 1.5 Circinus (2025.11); removed VyOS Rolling.
dmbaturin changed Is it a breaking change? from Unspecified (possibly destroys the router) to Perfectly compatible.