Skip to content

T7836: move bind mount of /config to vyos-1x - #8

Merged
c-po merged 1 commit into
vyos:currentfrom
jestabro:simplified-bind-mount
Sep 20, 2025
Merged

T7836: move bind mount of /config to vyos-1x#8
c-po merged 1 commit into
vyos:currentfrom
jestabro:simplified-bind-mount

Conversation

@jestabro

@jestabro jestabro commented Sep 19, 2025

Copy link
Copy Markdown
Contributor

Change Summary

NOTE: This will need to be merged along with vyos/vyos-1x#4732

We are removing the bind mount construction from the initrd components, as:

  • it is not needed before initialization in the vyos-1x vyos-router script
  • does not correctly update inodes on libc rename
  • fails on the livecd: /var/log/live/boot.log on the livecd contains
    Begin: Configuring VyOS config path ... mount: mounting /root/lib/live/rw/config on /root/opt/vyatta/etc/config failed: No such file or directory
    which has necessitated workarounds, e.g., https://vyos.dev/T5524

During the interval between the merges of the two companion PRs, one would expect to see the following:
This PR merged first: an empty /config on installed image --- image will boot and all smoketests pass except for
https://github.com/vyos/vyos-1x/blob/current/smoketest/scripts/cli/test_service_dns_dynamic.py#L206-L212
This PR merged second: one would expect a recurrence of https://vyos.dev/T668

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Other (please describe):

Related Task(s)

Related PR(s)

vyos/vyos-1x#4732

Proposed changes

How to test

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

We are removing the bind mount construction from the initrd components,
as:
(1) it is not needed before initialization in the vyos-1x vyos-router script
(2) does not correctly update inodes on libc rename
(3) fails on the livecd (cf. /var/log/live/boot.log)
@jestabro

jestabro commented Sep 19, 2025

Copy link
Copy Markdown
Contributor Author

Move to draft to investigate tmptest issue with image built from companion PRs.
This will require some discussion with @sarthurdev

@jestabro
jestabro marked this pull request as ready for review September 19, 2025 17:05
@jestabro

Copy link
Copy Markdown
Contributor Author

The companion PR has been updated after discussion with @sarthurdev ; ready for review.

@sarthurdev sarthurdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moves bind mounts to vyos-router

@c-po c-po left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplify code and remove additions to live-boot package. Maybe one day we can return to the upstrem live-boot package and have everything in vyos-1x.

@c-po
c-po merged commit fb90491 into vyos:current Sep 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants