• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/usr/bin/env bash
2# shellcheck disable=SC1091 # The relative paths in this file only become valid at runtime.
3# When changing this file, you need to bump the following
4# .gitlab-ci/image-tags.yml tags:
5# KERNEL_ROOTFS_TAG
6set -ex
7
8. setup-test-env.sh
9
10export DEBIAN_FRONTEND=noninteractive
11
12# Needed for ci-fairy, this revision is able to upload files to
13# MinIO and doesn't depend on git
14pip3 install --break-system-packages git+http://gitlab.freedesktop.org/freedesktop/ci-templates@ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2
15
16# Needed for manipulation with traces yaml files.
17pip3 install --break-system-packages yq
18
19passwd root -d
20chsh -s /bin/sh
21
22cat > /init <<EOF
23#!/bin/sh
24export PS1=lava-shell:
25exec sh
26EOF
27chmod +x  /init
28
29# Copy timezone file and remove tzdata package
30rm -rf /etc/localtime
31cp /usr/share/zoneinfo/Etc/UTC /etc/localtime
32
33. strip-rootfs.sh
34