summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-09-06 18:35:04 +0200
committerChristian Breunig <christian@breunig.cc>2026-09-06 18:35:04 +0200
commitb553de025eb543dfcb8dac0a7b938f6fe6b84e0f (patch)
tree90846938114b1c89a0b17329c017375daa3fd169 /data
parent27c96774929340d8bb060fa20c80a126e6b7da03 (diff)
downloadvyos-build-b553de025eb543dfcb8dac0a7b938f6fe6b84e0f.tar.gz
vyos-build-b553de025eb543dfcb8dac0a7b938f6fe6b84e0f.zip
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.
Diffstat (limited to 'data')
-rwxr-xr-xdata/live-build-config/hooks/live/08-sysconf.chroot31
1 files changed, 0 insertions, 31 deletions
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: