diff options
author | Daniil Baturin <daniil@baturin.org> | 2016-12-21 22:30:06 +0100 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2016-12-21 22:30:06 +0100 |
commit | cc81ba8861a22501dc4b7460161368e4c5b18c66 (patch) | |
tree | 1be8aa857fa7ef647e93472225bb2d426c066bac /data/live-build-config/hooks | |
parent | 53a878bb2d18a450f4096403d80461dd566ef29e (diff) | |
parent | ae66df2b8b764df7bf2b3b6d3895358012791feb (diff) | |
download | vyos-build-cc81ba8861a22501dc4b7460161368e4c5b18c66.tar.gz vyos-build-cc81ba8861a22501dc4b7460161368e4c5b18c66.zip |
Merge branch 'current' of github.com:vyos/vyos-build into current
Diffstat (limited to 'data/live-build-config/hooks')
-rwxr-xr-x | data/live-build-config/hooks/04-locale.chroot | 1 | ||||
-rwxr-xr-x | data/live-build-config/hooks/09-live.chroot | 5 | ||||
-rwxr-xr-x | data/live-build-config/hooks/18-enable-disable_services.chroot (renamed from data/live-build-config/hooks/18-disable_services.chroot) | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/data/live-build-config/hooks/04-locale.chroot b/data/live-build-config/hooks/04-locale.chroot index 1c02db02..89a5f954 100755 --- a/data/live-build-config/hooks/04-locale.chroot +++ b/data/live-build-config/hooks/04-locale.chroot @@ -6,3 +6,4 @@ LANG=en_US.UTF-8 LC_ALL=C EOF +sed -i 's/AcceptEnv LANG LC_\*/# AcceptEnv LANG LC_\*/g' /etc/ssh/sshd_config diff --git a/data/live-build-config/hooks/09-live.chroot b/data/live-build-config/hooks/09-live.chroot index e2f95ff3..f19f0ae6 100755 --- a/data/live-build-config/hooks/09-live.chroot +++ b/data/live-build-config/hooks/09-live.chroot @@ -1,6 +1,11 @@ #!/bin/sh # hack live script that tries to mount ext[23] floppies as root +# remove user settings live config scripts sed -e '/ln -s "${devname}"/,/return 0/ s/^/: FIXME/' \ -i /usr/share/initramfs-tools/scripts/live + +rm -rf /lib/live/config/0030-live-debconfig_passwd +rm -rf /lib/live/config/0030-user-setup +rm -rf /lib/live/config/0040-sudo diff --git a/data/live-build-config/hooks/18-disable_services.chroot b/data/live-build-config/hooks/18-enable-disable_services.chroot index c68a6b3d..68971405 100755 --- a/data/live-build-config/hooks/18-disable_services.chroot +++ b/data/live-build-config/hooks/18-enable-disable_services.chroot @@ -1,6 +1,6 @@ #!/bin/sh -echo I: Disabling services. +echo I: Enabling/Disabling services. systemctl disable exim4 /usr/sbin/update-rc.d -f exim4 remove systemctl disable isc-dhcp-server @@ -25,3 +25,4 @@ systemctl disable dnsmasq /usr/sbin/update-rc.d -f dnsmasq remove systemctl disable lldpd /usr/sbin/update-rc.d -f lldpd remove +systemctl enable ssh-session-cleanup |