tail, not head

This commit is contained in:
Krish Jain 2023-07-18 16:12:42 +05:30 committed by Thilo Fromm
parent 9709a64239
commit 4b00bc14a4

View File

@ -628,7 +628,7 @@ finish_image() {
# Ship the docker systemd-sysext image and rip out torcx in same go; TODO: create seperate sysext images for containerd and docker
mkdir -p ${PORTAGE_CONFIGROOT}/etc/portage/profile
echo $(equery -q --no-color list --format '$cpv' -po app-containers/containerd | grep -v 9999 | head -n 1) > ${PORTAGE_CONFIGROOT}/etc/portage/profile/package.provided # use a temporary package.provided to make emerge believe the dependencies are already installed
echo $(equery -q --no-color list --format '$cpv' -po app-containers/containerd | grep -v 9999 | tail -n 1) > ${PORTAGE_CONFIGROOT}/etc/portage/profile/package.provided # use a temporary package.provided to make emerge believe the dependencies are already installed
emerge-"${FLAGS_board}" app-containers/docker
sudo "${SCRIPTS_DIR}/build_sysext" --board="${BOARD}" --image_builddir=${BUILD_DIR} --squashfs_base="${BUILD_DIR}/${image_sysext_base}" --manglefs_script="${SCRIPTS_DIR}/manglefs_docker" docker-flatcar app-containers/docker
sudo install -m 0644 -D "${BUILD_DIR}/docker-flatcar.raw" "${root_fs_dir}"/usr/share/flatcar/