Page MenuHomeVyOS Platform

Deprecate vyatta-biosdevname package
Open, NormalPublicFEATURE REQUEST

Description

Package Content

[email protected]:~$ dpkg -L vyatta-biosdevname
/.
/lib
/lib/udev
/sbin
/sbin/biosdevname
/usr
/usr/share
/usr/share/doc
/usr/share/doc/vyatta-biosdevname
/usr/share/doc/vyatta-biosdevname/README
/usr/share/doc/vyatta-biosdevname/changelog.Debian.gz
/usr/share/doc/vyatta-biosdevname/changelog.gz
/usr/share/doc/vyatta-biosdevname/copyright
/usr/share/lintian
/usr/share/lintian/overrides
/usr/share/lintian/overrides/vyatta-biosdevname
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/biosdevname.1.gz

References

[email protected]:~$ grep -r biosdevname /opt
grep: /opt/vyatta/etc/config/auth/eapol_test_server.key: Permission denied
/opt/vyatta/etc/grub/default-union-grub-entry:        linux /boot//vmlinuz boot=live quiet rootdelay=5 noautologin net.ifnames=0 biosdevname=0 udev.exec_delay=3 vyos-union=/boot/ console=ttyS0,115200 console=tty0
/opt/vyatta/etc/grub/default-union-grub-entry:        linux /boot//vmlinuz boot=live quiet rootdelay=5 noautologin net.ifnames=0 biosdevname=0 udev.exec_delay=3 vyos-union=/boot/ console=tty0 console=ttyS0,115200
/opt/vyatta/etc/grub/default-union-grub-entry:        linux /boot//vmlinuz boot=live quiet rootdelay=5 noautologin net.ifnames=0 biosdevname=0 udev.exec_delay=3 vyos-union=/boot/ console=ttyS0,115200 console=tty0 init=/opt/vyatta/sbin/standalone_root_pw_reset
/opt/vyatta/etc/grub/default-union-grub-entry:        linux /boot//vmlinuz boot=live quiet rootdelay=5 noautologin net.ifnames=0 biosdevname=0 udev.exec_delay=3 vyos-union=/boot/ console=tty0 console=ttyS0,115200 init=/opt/vyatta/sbin/standalone_root_pw_reset
/opt/vyatta/sbin/vyatta-grub-setup:    GRUB_OPTIONS="boot=live rootdelay=5 noautologin net.ifnames=0 biosdevname=0 vyos-union=/boot/$livedir"

Seems there is only a stale reference on the Kernel commandline

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Unspecified (please specify)

Event Timeline

c-po claimed this task.

Findings:

  • biosdevname is called by scripts in the initrd, so we can't remove it just yet.
  • it's not completely abandoned and had quite a few releases since the point when Vyatta forked it.
  • I sent a PR to allow biosdevname to run in VMs (that's the only thing that vyatta-biosdevname has and that's used in scripts): https://github.com/dell/biosdevname/pull/12

If they merge the PR, we can switch to using the upstream version.

Viacheslav triaged this task as Normal priority.Jan 20 2024, 1:26 PM

Code is only used in vyos-1x

lnx01:~/vyos-1x [current] # git grep vyos_net_name
debian/rules:   cp src/helpers/vyos_net_name $(DIR)/usr/lib/udev
src/etc/udev/rules.d/65-vyos-net.rules:# These rules use vyos_net_name to persistently name network interfaces
src/etc/udev/rules.d/65-vyos-net.rules:DRIVERS=="?*", PROGRAM="vyos_net_name %k $attr{address} $env{VYOS_IFNAME}", NAME="%c", GOTO="vyos_net_end"
src/etc/udev/rules.d/65-vyos-net.rules:DRIVERS=="?*", PROGRAM="vyos_net_name %k $attr{address}", NAME="%c"
src/helpers/vyos-interface-rescan.py:    """ Read any new interface data left in /run/udev/vyos by vyos_net_name