live-iso-gnome/generate_roofs_from_docker.sh
Ward from fusion-voyager-3 ac4fd7e191
Some checks failed
Push ISO / build (push) Failing after 56s
chroot attempt 1
2024-08-01 15:29:25 +03:00

32 lines
651 B
Bash
Executable File

#! /bin/bash
set -e
source ./info.sh
mkdir -p "$ROOTFS_PATH"
# Pull and mount docker image
sed -i 's/#mount_program/mount_program/' /etc/containers/storage.conf
podman pull ghcr.io/pikaos-linux/pikaos-base:canaryv3
podman image mount pikaos-linux/pikaos-base:canaryv3 > ./docker-merged-path
DOCKER_MERGED_PATH=$(cat ./docker-merged-path)
# Safely Copy merged path contents to rootfs
rsync -av $DOCKER_MERGED_PATH/* $ROOTFS_PATH/
# Clean up Docker specific things
rm -rfv $ROOTFS_PATH/etc/apt/preferences.d/*docker*
rm -rfv $ROOTFS_PATH/etc/dpkg/dpkg.cfg.d/*docker*
# Setup hostname
echo $LIVE_HOSTNAME | tee "$ROOTFS_PATH/etc/hostname"