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
Anton Palgunov
mkimage-profiles
Commits
f09ef54e
Commit
f09ef54e
authored
Feb 16, 2022
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: add verbose mode for cleanup-pkgs scripts
parent
0e7eb967
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
90-cleanup-pkgs
features.in/cleanup/image-scripts.d/90-cleanup-pkgs
+4
-0
90-cleanup-pkgs
features.in/cleanup/live/image-scripts.d/90-cleanup-pkgs
+4
-0
No files found.
features.in/cleanup/image-scripts.d/90-cleanup-pkgs
View file @
f09ef54e
#!/bin/sh -efu
#!/bin/sh -efu
# remove temporary packages from the installed system
# remove temporary packages from the installed system
if
[
-n
"
$GLOBAL_VERBOSE
"
]
;
then
echo
"** GLOBAL_CLEANUP_PACKAGES:
$GLOBAL_CLEANUP_PACKAGES
"
fi
>
&2
[
-n
"
$GLOBAL_CLEANUP_PACKAGES
"
]
||
exit
0
[
-n
"
$GLOBAL_CLEANUP_PACKAGES
"
]
||
exit
0
list
=
"
$(
rpmquery
-a
--qf
=
'%{NAME}\n'
$GLOBAL_CLEANUP_PACKAGES
)
"
list
=
"
$(
rpmquery
-a
--qf
=
'%{NAME}\n'
$GLOBAL_CLEANUP_PACKAGES
)
"
...
...
features.in/cleanup/live/image-scripts.d/90-cleanup-pkgs
View file @
f09ef54e
#!/bin/sh -efu
#!/bin/sh -efu
# remove extra packages from a bare livecd
# remove extra packages from a bare livecd
if
[
-n
"
$GLOBAL_VERBOSE
"
]
;
then
echo
"** GLOBAL_CLEANUP_PACKAGES:
$GLOBAL_CLEANUP_PACKAGES
"
fi
>
&2
[
-n
"
$GLOBAL_CLEANUP_PACKAGES
"
]
||
exit
0
[
-n
"
$GLOBAL_CLEANUP_PACKAGES
"
]
||
exit
0
list
=
"
$(
rpmquery
-a
--qf
=
'%{NAME}\n'
$GLOBAL_CLEANUP_PACKAGES
)
"
list
=
"
$(
rpmquery
-a
--qf
=
'%{NAME}\n'
$GLOBAL_CLEANUP_PACKAGES
)
"
[
-z
"
$list
"
]
||
apt-get remove
-f
-y
--
$list
[
-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