#!/bin/sh -efu
# configure package repository of the image (provided by sub/main);
# this script will be run iff both live and repo features are used
# from mkimage-profiles/features.in/repo/live/image-scripts.d/80-repo-main

[ -d /image/ALTLinux ] || exit 0

DIR=/etc/apt/sources.list.d
[ -f $DIR/main.list ] && exit 0
{
	echo "# for real stuff you'll need full repo, see apt-repo"
	echo "rpm file:/image ALTLinux main"
} > $DIR/main.list
