Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
mkimage-profiles
Commits
d1c947de
Commit
d1c947de
authored
Oct 29, 2020
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
repo: use/repo/main for vm targets
use/repo/main for vm targets will now create and enable the main repository in /ALTLinux on rootfs.
parent
9795eaf8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
53 additions
and
1 deletion
+53
-1
config.mk
features.in/repo/config.mk
+8
-1
01-genbasedir-rootfs
features.in/repo/rootfs/image-scripts.d/01-genbasedir-rootfs
+33
-0
80-repo-rootfs-main
features.in/repo/rootfs/image-scripts.d/80-repo-rootfs-main
+12
-0
No files found.
features.in/repo/config.mk
View file @
d1c947de
use/repo:
@$(call add_feature)
@$(call add,STAGE1_PACKAGES,gnupg)
@$(call xport,ROOTFS_MAIN)
use/repo/main: sub/main use/repo; @:
use/repo/main:: sub/main use/repo; @:
ifeq (vm,$(IMAGE_CLASS))
use/repo/main::
@$(call set,ROOTFS_MAIN,1)
@$(call add,THE_PACKAGES,apt-repo-tools)
endif
use/repo/addon: use/repo/main
@$(call set,MAIN_SUFFIX,addon)
features.in/repo/rootfs/image-scripts.d/01-genbasedir-rootfs
0 → 100755
View file @
d1c947de
#!/bin/sh -eu
[
-n
"
$GLOBAL_ROOTFS_MAIN
"
]
||
exit
0
mv
/ALTLinux /srv/ALT
PREFIX
=
/srv/ALT
cd
"
$PREFIX
"
COMPS
=
"
$(
find
-mindepth
1
-maxdepth
1
-type
d
-name
'RPMS.*'
-printf
'%f\n'
|
sed
's/^RPMS\.//'
)
"
[
-z
"
$GLOBAL_VERBOSE
"
]
||
echo
"** COMPS=
$COMPS
"
>
&2
[
-n
"
$COMPS
"
]
||
exit
1
for
comp
in
$COMPS
;
do
for
f
in
RPMS.
$comp
/
*
rpm
;
do
[
"
$f
"
=
"RPMS.
$comp
/
$(
rpm
-qp
$f
)
.rpm"
]
||
mv
$f
RPMS.
$comp
/
$(
rpm
-qp
$f
)
.rpm
done
done
genbasedir
\
--topdir
=
"/"
\
--no-oldhashfile
\
--partial
\
--xz
\
--bz2
\
--create
\
--notautomatic
=
false
\
$PREFIX
$COMPS
### drop this when genbasedir is fixed (--no-uncompressed)
for
c
in
$COMPS
;
do
rm
-f
base/
{
pkg,src
}
list.
$c
;
done
features.in/repo/rootfs/image-scripts.d/80-repo-rootfs-main
0 → 100755
View file @
d1c947de
#!/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
[
-n
"
$GLOBAL_ROOTFS_MAIN
"
]
||
exit
0
DIR
=
/etc/apt/sources.list.d
mkdir
-p
$DIR
&&
{
echo
"# for real stuff you'll need full repo, see apt-repo"
echo
"rpm file:/srv/ ALT main"
}
>
$DIR
/main.list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment