From b553de025eb543dfcb8dac0a7b938f6fe6b84e0f Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 6 Sep 2026 18:35:04 +0200 Subject: hooks: T9283: remove obsolete sysconf hook Only two actions were left in this hook and neither is needed. - /etc/pam_radius_auth.conf is created empty at image build time, but vyos-1x renders the file from its own Jinja2 template and the router init script removes it on every boot when restoring PAM to its virgin state. - kernel.printk was patched into /etc/sysctl.conf. The setting now ships in vyos-1x as part of /etc/sysctl.d/30-vyos-router.conf, next to the other kernel defaults. --- .../live-build-config/hooks/live/08-sysconf.chroot | 31 ---------------------- 1 file changed, 31 deletions(-) delete mode 100755 data/live-build-config/hooks/live/08-sysconf.chroot (limited to 'data') diff --git a/data/live-build-config/hooks/live/08-sysconf.chroot b/data/live-build-config/hooks/live/08-sysconf.chroot deleted file mode 100755 index f05ea6dc..00000000 --- a/data/live-build-config/hooks/live/08-sysconf.chroot +++ /dev/null @@ -1,31 +0,0 @@ -#!/bin/sh - ->/etc/pam_radius_auth.conf - -update_sysctl_conf () -{ - var=$1 - val=$2 - comment=$3 - sysctl_conf=/etc/sysctl.conf - - if grep -q "^${var}[[:space:]]*=" $sysctl_conf ; then - sed -i "/^${var}[[:space:]]*=/ s,=.*,= ${val}," $sysctl_conf - elif grep -q "^#[[:space:]]*${var}[[:space:]]*=" $sysctl_conf ; then - sed -i "/^#[[:space:]]*${var}[[:space:]]*=/ { s,^#[[:space:]]*,, ; s,[[:space:]]*=.*, = ${val},} " $sysctl_conf - else - cat <<-EOF >> $sysctl_conf - - # $comment - $var = $val - EOF - fi -} - -update_sysctl_conf kernel.printk "4 4 1 7" \ - "the following stops low-level messages on console" - -# Local Variables: -# mode: shell-script -# sh-indentation: 4 -# End: -- cgit v1.2.3