• 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
8export DEBIAN_FRONTEND=noninteractive
9
10# Needed for ci-fairy, this revision is able to upload files to
11# MinIO and doesn't depend on git
12pip3 install --break-system-packages git+http://gitlab.freedesktop.org/freedesktop/ci-templates@ffe4d1b10aab7534489f0c4bbc4c5899df17d3f2
13
14# Needed for manipulation with traces yaml files.
15pip3 install --break-system-packages yq
16
17passwd root -d
18chsh -s /bin/sh
19
20cat > /init <<EOF
21#!/bin/sh
22export PS1=lava-shell:
23exec sh
24EOF
25chmod +x  /init
26
27# Copy timezone file and remove tzdata package
28rm -rf /etc/localtime
29cp /usr/share/zoneinfo/Etc/UTC /etc/localtime
30
31. strip-rootfs.sh
32