repo: Add main repo when first time run 'live'

Since the config was created in live, it remained after installation.
Now the config will be created at the first start of live and only
if /image/ALTLinux/ is present (it will not be available when
bootloading via http or ftp). After installing live, the package will
be deleted and the config will not be created at the first start.
This commit is contained in:
Anton Midyukov 2022-09-24 21:19:14 +07:00
parent 6fe87e5fad
commit 2b4c02fabd
2 changed files with 2 additions and 11 deletions

View File

@ -5,7 +5,8 @@ use/repo:
@$(call xport,REPO_MAIN) @$(call xport,REPO_MAIN)
@$(call xport,REPO) @$(call xport,REPO)
use/repo/main:: sub/main use/repo; @: use/repo/main:: sub/main use/repo
@$(call add,LIVE_PACKAGES,livecd-main-repo)
ifeq (vm,$(IMAGE_CLASS)) ifeq (vm,$(IMAGE_CLASS))
use/repo/main:: use/repo/main::

View File

@ -1,10 +0,0 @@
#!/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