mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
commit
5a84a6a841
@ -32,6 +32,7 @@ src_compile() {
|
|||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dosbin ${S}/systemd-rest
|
dosbin ${S}/systemd-rest
|
||||||
|
keepdir /var/lib/${PN}
|
||||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||||
systemd_enable_service multi-user.target ${PN}.service
|
systemd_enable_service multi-user.target ${PN}.service
|
||||||
}
|
}
|
||||||
|
@ -31,6 +31,7 @@ src_compile() {
|
|||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dosbin ${S}/systemd-rest
|
dosbin ${S}/systemd-rest
|
||||||
|
keepdir /var/lib/${PN}
|
||||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||||
systemd_enable_service multi-user.target ${PN}.service
|
systemd_enable_service multi-user.target ${PN}.service
|
||||||
}
|
}
|
||||||
|
@ -32,9 +32,8 @@ src_compile() {
|
|||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dobin ${S}/bin/${PN}
|
dobin ${S}/bin/${PN}
|
||||||
dodir /var/lib/docker
|
keepdir /var/lib/${PN}/graph
|
||||||
dodir /var/lib/docker/graph
|
keepdir /var/lib/${PN}/containers
|
||||||
dodir /var/lib/docker/containers
|
|
||||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||||
systemd_enable_service multi-user.target ${PN}.service
|
systemd_enable_service multi-user.target ${PN}.service
|
||||||
}
|
}
|
||||||
|
@ -118,12 +118,6 @@ src_install() {
|
|||||||
# Insert empty fstab
|
# Insert empty fstab
|
||||||
doins "${FILESDIR}"/fstab
|
doins "${FILESDIR}"/fstab
|
||||||
|
|
||||||
# Enable dhcpcd by default
|
|
||||||
# TODO(ifup): this doesn't work
|
|
||||||
# systemd_enable_service multi-user.target dhcpcd.service
|
|
||||||
dodir /usr/lib/systemd/system/
|
|
||||||
dosym ../dhcpcd.service /usr/lib/systemd/system/multi-user.target.wants/dhcpcd.service
|
|
||||||
|
|
||||||
# Symlink /etc/localtime to something on the stateful partition, which we
|
# Symlink /etc/localtime to something on the stateful partition, which we
|
||||||
# can then change around at runtime.
|
# can then change around at runtime.
|
||||||
dosym /var/lib/timezone/localtime /etc/localtime || die
|
dosym /var/lib/timezone/localtime /etc/localtime || die
|
||||||
@ -139,11 +133,6 @@ src_install() {
|
|||||||
#dosym /usr/bin/vim /usr/libexec/editor || die
|
#dosym /usr/bin/vim /usr/libexec/editor || die
|
||||||
#dosym /bin/more /usr/libexec/pager || die
|
#dosym /bin/more /usr/libexec/pager || die
|
||||||
|
|
||||||
# Install our custom ssh config settings.
|
|
||||||
insinto /etc/ssh
|
|
||||||
doins "${FILESDIR}"/ssh{,d}_config
|
|
||||||
fperms 600 /etc/ssh/sshd_config
|
|
||||||
|
|
||||||
# Custom login shell snippets.
|
# Custom login shell snippets.
|
||||||
insinto /etc/profile.d
|
insinto /etc/profile.d
|
||||||
doins "${FILESDIR}"/cursor.sh
|
doins "${FILESDIR}"/cursor.sh
|
||||||
|
@ -12,4 +12,3 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# <fs> <mountpoint> <type> <opts> <dump/pass>
|
# <fs> <mountpoint> <type> <opts> <dump/pass>
|
||||||
/dev/ROOT / ext3 defaults 0 0
|
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
Host *
|
|
||||||
UserKnownHostsFile /home/core/user/.ssh/known_hosts
|
|
@ -1,13 +0,0 @@
|
|||||||
# Force protocol v2 only
|
|
||||||
Protocol 2
|
|
||||||
|
|
||||||
# /etc is read-only. Fetch keys from stateful partition
|
|
||||||
# Not using v1, so no v1 key
|
|
||||||
HostKey /mnt/stateful_partition/etc/ssh/ssh_host_rsa_key
|
|
||||||
HostKey /mnt/stateful_partition/etc/ssh/ssh_host_dsa_key
|
|
||||||
|
|
||||||
PasswordAuthentication no
|
|
||||||
UsePAM yes
|
|
||||||
PrintMotd no
|
|
||||||
PrintLastLog no
|
|
||||||
Subsystem sftp internal-sftp
|
|
@ -3,7 +3,7 @@
|
|||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI="4"
|
EAPI="4"
|
||||||
CROS_WORKON_COMMIT="ad419999ea478bb60867e9e14f01197b928a5c73"
|
CROS_WORKON_COMMIT="a7bd1042de90900b32b5fdbcb0a9562f152ae822"
|
||||||
CROS_WORKON_PROJECT="coreos/init"
|
CROS_WORKON_PROJECT="coreos/init"
|
||||||
CROS_WORKON_LOCALNAME="init"
|
CROS_WORKON_LOCALNAME="init"
|
||||||
|
|
||||||
@ -18,8 +18,13 @@ SLOT="0"
|
|||||||
KEYWORDS="amd64 arm x86"
|
KEYWORDS="amd64 arm x86"
|
||||||
IUSE="nfs"
|
IUSE="nfs"
|
||||||
|
|
||||||
DEPEND=""
|
# Daemons we enable here must installed during build/install in addition to
|
||||||
RDEPEND="
|
# during runtime so the systemd unit enable step works.
|
||||||
|
DEPEND="
|
||||||
|
net-misc/dhcpcd
|
||||||
|
net-misc/openssh
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
sys-block/parted
|
sys-block/parted
|
||||||
sys-apps/gptfdisk
|
sys-apps/gptfdisk
|
||||||
sys-apps/systemd
|
sys-apps/systemd
|
||||||
@ -32,12 +37,19 @@ src_install() {
|
|||||||
doexe "${script}"
|
doexe "${script}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Install our custom ssh config settings.
|
||||||
|
insinto /etc/ssh
|
||||||
|
doins configs/ssh{,d}_config
|
||||||
|
fperms 600 /etc/ssh/sshd_config
|
||||||
|
|
||||||
|
# List of directories that should be recreated as needed
|
||||||
|
insinto /usr/lib/tmpfiles.d
|
||||||
|
newins configs/tmpfiles.conf zz-${PN}.conf
|
||||||
|
|
||||||
# Install all units, enable the higher-level services
|
# Install all units, enable the higher-level services
|
||||||
for unit in systemd/*; do
|
for unit in systemd/*; do
|
||||||
systemd_dounit "${unit}"
|
systemd_dounit "${unit}"
|
||||||
done
|
done
|
||||||
|
|
||||||
systemd_enable_service basic.target coreos-startup.service
|
systemd_enable_service multi-user.target coreos-startup.target
|
||||||
systemd_enable_service multi-user.target update-engine.service
|
|
||||||
systemd_enable_service multi-user.target sshd.socket
|
|
||||||
}
|
}
|
||||||
|
@ -17,8 +17,13 @@ SLOT="0"
|
|||||||
KEYWORDS="~amd64 ~arm ~x86"
|
KEYWORDS="~amd64 ~arm ~x86"
|
||||||
IUSE="nfs"
|
IUSE="nfs"
|
||||||
|
|
||||||
DEPEND=""
|
# Daemons we enable here must installed during build/install in addition to
|
||||||
RDEPEND="
|
# during runtime so the systemd unit enable step works.
|
||||||
|
DEPEND="
|
||||||
|
net-misc/dhcpcd
|
||||||
|
net-misc/openssh
|
||||||
|
"
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
sys-block/parted
|
sys-block/parted
|
||||||
sys-apps/gptfdisk
|
sys-apps/gptfdisk
|
||||||
sys-apps/systemd
|
sys-apps/systemd
|
||||||
@ -31,12 +36,19 @@ src_install() {
|
|||||||
doexe "${script}"
|
doexe "${script}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Install our custom ssh config settings.
|
||||||
|
insinto /etc/ssh
|
||||||
|
doins configs/ssh{,d}_config
|
||||||
|
fperms 600 /etc/ssh/sshd_config
|
||||||
|
|
||||||
|
# List of directories that should be recreated as needed
|
||||||
|
insinto /usr/lib/tmpfiles.d
|
||||||
|
newins configs/tmpfiles.conf zz-${PN}.conf
|
||||||
|
|
||||||
# Install all units, enable the higher-level services
|
# Install all units, enable the higher-level services
|
||||||
for unit in systemd/*; do
|
for unit in systemd/*; do
|
||||||
systemd_dounit "${unit}"
|
systemd_dounit "${unit}"
|
||||||
done
|
done
|
||||||
|
|
||||||
systemd_enable_service basic.target coreos-startup.service
|
systemd_enable_service multi-user.target coreos-startup.target
|
||||||
systemd_enable_service multi-user.target update-engine.service
|
|
||||||
systemd_enable_service multi-user.target sshd.socket
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user