From 5f0bb44ca0b77e4c3d8a2916daceb2a0b0a8a5f3 Mon Sep 17 00:00:00 2001 From: Christopher Spinrath <christopher.spinrath@rwth-aachen.de> Date: Sat, 21 Mar 2015 22:42:53 +0100 Subject: [PATCH] rootfs_remaster: allow to override/adapt sysctl All files placed in contrib/rootfs/sysctl.d/ will be copied to /etc/sysctl.d in the rootfs as is. --- scripts/rootfs_remaster.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/rootfs_remaster.sh b/scripts/rootfs_remaster.sh index 569c7c0..9b4d444 100755 --- a/scripts/rootfs_remaster.sh +++ b/scripts/rootfs_remaster.sh @@ -124,6 +124,11 @@ function copy_modprobe_d() update-initramfs -u } +function copy_sysctl_d() +{ + cp -r "$SCRIPT_DIR/contrib/sysctl.d/" "/etc/sysctl.d/" +} + function hold_packages() { for PKG in $@; do @@ -146,6 +151,7 @@ hold_packages $PKGS_TO_HOLD prepare_install copy_modprobe_d +copy_sysctl_d install_packages install_kde_defaults -- GitLab