mirror of
https://github.com/flatcar/scripts.git
synced 2026-03-02 20:11:43 +01:00
overlay coreos-base/misc-files: Reorganize the files a bit
The files directory of the package was getting crowded and the names of the files weren't really saying much.
This commit is contained in:
parent
66811126d1
commit
39bf99b420
@ -122,10 +122,10 @@ src_install() {
|
||||
done
|
||||
|
||||
insinto '/etc/selinux/'
|
||||
newins "${FILESDIR}/selinux-config" config
|
||||
doins "${FILESDIR}/selinux/config"
|
||||
|
||||
insinto '/etc/bash/bashrc.d'
|
||||
doins "${FILESDIR}/99-flatcar-bcc"
|
||||
doins "${FILESDIR}/bash/99-flatcar-bcc"
|
||||
|
||||
insinto '/usr/share/flatcar'
|
||||
# The "oems" folder should contain a file "$OEMID" for each expected OEM sysext and
|
||||
@ -149,29 +149,29 @@ src_install() {
|
||||
fowners --no-dereference 500:500 "${link}"
|
||||
done
|
||||
|
||||
if use ntp; then
|
||||
insinto /etc
|
||||
doins "${FILESDIR}/ntp/ntp.conf"
|
||||
misc_files_install_dropin ntpd.service "${FILESDIR}/ntp/ntpd-always-restart.conf"
|
||||
misc_files_install_dropin ntpdate.service "${FILESDIR}/ntp/ntp-environment.conf"
|
||||
misc_files_install_dropin sntp.service "${FILESDIR}/ntp/ntp-environment.conf"
|
||||
fi
|
||||
|
||||
if use openssh; then
|
||||
# Install our configuration snippets.
|
||||
insinto /etc/ssh/ssh_config.d
|
||||
doins "${FILESDIR}/50-flatcar-ssh.conf"
|
||||
doins "${FILESDIR}/openssh/50-flatcar-ssh.conf"
|
||||
insinto /etc/ssh/sshd_config.d
|
||||
doins "${FILESDIR}/50-flatcar-sshd.conf"
|
||||
doins "${FILESDIR}/openssh/50-flatcar-sshd.conf"
|
||||
|
||||
# Install our socket drop-in file that disables the rate
|
||||
# limiting on the sshd socket.
|
||||
misc_files_install_dropin sshd.socket "${FILESDIR}/no-trigger-limit-burst.conf"
|
||||
misc_files_install_dropin sshd.socket "${FILESDIR}/openssh/no-trigger-limit-burst.conf"
|
||||
|
||||
# Enable some sockets that aren't enabled by their own ebuilds.
|
||||
systemd_enable_service sockets.target sshd.socket
|
||||
fi
|
||||
|
||||
if use ntp; then
|
||||
insinto /etc
|
||||
doins "${FILESDIR}/ntp.conf"
|
||||
misc_files_install_dropin ntpd.service "${FILESDIR}/ntpd-always-restart.conf"
|
||||
misc_files_install_dropin ntpdate.service "${FILESDIR}/ntp-environment.conf"
|
||||
misc_files_install_dropin sntp.service "${FILESDIR}/ntp-environment.conf"
|
||||
fi
|
||||
|
||||
if use policycoreutils; then
|
||||
# Exceptionally, the location for policy definitions is set up
|
||||
# in profiles/coreos/base/profile.bashrc. See the comment for
|
||||
@ -179,7 +179,7 @@ src_install() {
|
||||
#
|
||||
# Recreate the symlink in /var in case of wiping the root
|
||||
# filesystem.
|
||||
dotmpfiles "${FILESDIR}/10-var-lib-selinux.conf"
|
||||
dotmpfiles "${FILESDIR}/selinux/10-var-lib-selinux.conf"
|
||||
fi
|
||||
|
||||
# Create a symlink for Kubernetes to redirect writes from /usr/libexec/... to /var/kubernetes/...
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user