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
85a7258d
Commit
85a7258d
authored
May 03, 2017
by
Mikhail Efremov
Committed by
Michael Shigorin
Jul 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: Add GLOBAL_LIVE_NO_CLEANUPDB support
If set then don't remove apt and rpm from live images.
parent
2af6d0be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
config.mk
features.in/cleanup/config.mk
+1
-0
99-cleanupdb
features.in/cleanup/live/image-scripts.d/99-cleanupdb
+5
-2
No files found.
features.in/cleanup/config.mk
View file @
85a7258d
use/cleanup:
@$(call add_feature)
@$(call xport,GLOBAL_LIVE_NO_CLEANUPDB)
@$(call xport,CLEANUP_PACKAGES)
@$(call xport,CLEANUP_BASE_PACKAGES)
...
...
features.in/cleanup/live/image-scripts.d/99-cleanupdb
View file @
85a7258d
#!/bin/sh
# don't cripple the image to be copied over
[
-x
/usr/sbin/live-install
-o
-x
/usr/sbin/livecd-install
]
&&
exit
0
# don't cripple the image to be copied over or explicitly requested
# not to do this
[
-n
"
$GLOBAL_LIVE_NO_CLEANUPDB
"
]
||
\
[
-x
/usr/sbin/live-install
]
||
\
[
-x
/usr/sbin/livecd-install
]
&&
exit
0
# dump what's here by this point
echo
"** live packages before rpmdb purge:"
...
...
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