From 0f2b084b32a93741259ec4a02f966d27ee2a25cb Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Tue, 16 Sep 2025 15:33:47 -0500 Subject: T7836: move bind mount of /config to vyos-1x We are removing the bind mount construction from the initrd components in live-boot, as: (1) it is not needed before initialization in the vyos-router script (2) does not correctly update inodes on libc rename (3) fails on the livecd (cf. /var/log/live/boot.log) --- src/init/vyos-router | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/init') diff --git a/src/init/vyos-router b/src/init/vyos-router index 7a02ce564..e6e1f3b9b 100755 --- a/src/init/vyos-router +++ b/src/init/vyos-router @@ -314,6 +314,17 @@ bind_mount_boot () fi } +bind_mount_slash_config () +{ + if [ -d /opt/vyatta/etc/config ] + then + if [ ! -d /config ] ; then + mkdir /config + fi + mount --bind /opt/vyatta/etc/config /config + fi +} + clear_or_override_config_files () { for conf in snmp/snmpd.conf snmp/snmptrapd.conf snmp/snmp.conf \ @@ -587,6 +598,8 @@ start () bind_mount_boot + disabled bind_mount_slash_config || bind_mount_slash_config + disabled configure || load_bootfile || overall_status=1 log_end_msg $? -- cgit v1.2.3