Merge pull request #431 from dmbaturin/T5624-delete-debian-version

T5624: add a hook for deleting /etc/debian_version
This commit is contained in:
Daniil Baturin 2023-09-29 15:16:04 +01:00 committed by GitHub
commit 986c77ac08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,13 @@
#!/bin/sh
# The /etc/debian_version file contains the Debian release version number.
#Since VyOS uses image-based upgrade, that file serves no useful purpose for us.
#
# However, security scanners love to jump to conclusions
# and declare an "old Debian version" vulnerable
# without checking if there may not be any packages from that version at all.
# Removing that file is an easy way to get fewer false positives.
echo "I: Deleting the Debian version file"
rm -f /etc/debian_version