mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
17 lines
748 B
Bash
Executable File
17 lines
748 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (c) Edgeless Systems GmbH
|
|
#
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
set -euxo pipefail
|
|
|
|
# recreate kubelet systemd unit after reboot.
|
|
# tmpfile config has to be written late as it interferes with the systemd-nspawn build environment
|
|
cat >"${BUILDROOT}/usr/lib/tmpfiles.d/kubelet-service.conf" <<EOF
|
|
C /run/systemd/system/kubelet.service - - - - /run/state/systemd/system/kubelet.service
|
|
C /run/systemd/system/kubelet.service.d/10-kubeadm.conf - - - - /run/state/systemd/system/kubelet.service.d/10-kubeadm.conf
|
|
EOF
|
|
|
|
# cleanup dracut generation files (disk-mapper) to save space
|
|
rm -rf "${BUILDROOT}/usr/lib/dracut/modules.d/39constellation-mount/"
|