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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
593269af
Commit
593269af
authored
Feb 16, 2022
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: add CLEANUP_LIVE_PACKAGES
parent
f09ef54e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
README
features.in/cleanup/README
+3
-0
config.mk
features.in/cleanup/config.mk
+1
-0
90-cleanup-pkgs
features.in/cleanup/live/image-scripts.d/90-cleanup-pkgs
+6
-2
No files found.
features.in/cleanup/README
View file @
593269af
...
...
@@ -9,5 +9,8 @@
инсталятором системы, но не из livecd, применяйте переменную
CLEANUP_BASE_PACKAGES.
Для удаления пакетов только из livecd используйте переменную
CLEANUP_LIVE_PACKAGES.
ВНИМАНИЕ: также удаляет rpm, apt и базу по пакетам из livecd,
если в него не был добавлен инсталятор!
features.in/cleanup/config.mk
View file @
593269af
...
...
@@ -4,6 +4,7 @@ use/cleanup:
@$(call xport,LIVE_NO_CLEANUP_DOCS)
@$(call xport,CLEANUP_PACKAGES)
@$(call xport,CLEANUP_BASE_PACKAGES)
@$(call xport,CLEANUP_LIVE_PACKAGES)
use/cleanup/live-no-cleanupdb:
@$(call set,LIVE_NO_CLEANUPDB,yes)
...
...
features.in/cleanup/live/image-scripts.d/90-cleanup-pkgs
View file @
593269af
...
...
@@ -3,9 +3,13 @@
if
[
-n
"
$GLOBAL_VERBOSE
"
]
;
then
echo
"** GLOBAL_CLEANUP_PACKAGES:
$GLOBAL_CLEANUP_PACKAGES
"
echo
"** GLOBAL_CLEANUP_LIVE_PACKAGES:
$GLOBAL_CLEANUP_LIVE_PACKAGES
"
fi
>
&2
[
-n
"
$GLOBAL_CLEANUP_PACKAGES
"
]
||
exit
0
list
=
"
$(
rpmquery
-a
--qf
=
'%{NAME}\n'
$GLOBAL_CLEANUP_PACKAGES
)
"
[
-n
"
$GLOBAL_CLEANUP_PACKAGES
"
$GLOBAL_CLEANUP_LIVE_PACKAGES
]
||
exit
0
CLEANUP_PACKAGES
=
"
$GLOBAL_CLEANUP_PACKAGES
$GLOBAL_CLEANUP_LIVE_PACKAGES
"
list
=
"
$(
rpmquery
-a
--qf
=
'%{NAME}\n'
$CLEANUP_PACKAGES
)
"
[
-z
"
$list
"
]
||
apt-get remove
-f
-y
--
$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