ae7139f8b6
We've got some parts of it in build-distro feature, and some went to dev feature for no real reason. But a bare installer might go without package base, and LiveCDs other than live-builder might find local repository useful given aufs2 root overlay. Now the overall scheme is more straightforward: - a distro: + asks that a package repo be included + cares to further add the packages to it - a repo feature: + pulls in sub/main for it to happen + provides genbasedir script to create repo metadata + supplements live feature with repo configuration
11 lines
317 B
Bash
Executable File
11 lines
317 B
Bash
Executable File
#!/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
|
|
|
|
DIR=/etc/apt/sources.list.d
|
|
|
|
mkdir -p $DIR && {
|
|
echo "# for real stuff you'll need full repo, see apt-repo"
|
|
echo "rpm file:/image ALTLinux main"
|
|
} > $DIR/main.list
|