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
0e7eb967
Commit
0e7eb967
authored
Feb 16, 2022
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup/install2: do not export GLOABAL_CLEANUP_PACKAGES from script
parent
ef7a6561
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
90-cleanup-pkgs
features.in/cleanup/install2/image-scripts.d/90-cleanup-pkgs
+3
-4
No files found.
features.in/cleanup/install2/image-scripts.d/90-cleanup-pkgs
View file @
0e7eb967
...
...
@@ -9,8 +9,7 @@ fi >&2
[
-n
"
$GLOBAL_CLEANUP_PACKAGES
"
]
||
[
-n
"
$GLOBAL_CLEANUP_BASE_PACKAGES
"
]
||
exit
0
export
GLOBAL_CLEANUP_PACKAGES
=
"
$GLOBAL_CLEANUP_PACKAGES
\
$GLOBAL_CLEANUP_BASE_PACKAGES
"
CLEANUP_PACKAGES
=
"
$GLOBAL_CLEANUP_PACKAGES
$GLOBAL_CLEANUP_BASE_PACKAGES
"
SCRIPT
=
"/usr/share/install2/postinstall.d/01-remove-pkgs"
...
...
@@ -20,10 +19,10 @@ cat > "$SCRIPT" << EOF
. install2-init-functions
# don't override the script start message on the same line
echo "removing
$
GLOBAL_
CLEANUP_PACKAGES
"
echo "removing
$CLEANUP_PACKAGES
"
# remove temporary packages from the installed system
list="\
$(
exec_chroot rpmquery
-a
--qf
=
'%{NAME}\\n'
$
GLOBAL_
CLEANUP_PACKAGES
)
"
list="\
$(
exec_chroot rpmquery
-a
--qf
=
'%{NAME}\\n'
$CLEANUP_PACKAGES
)
"
[ -z "\
$list
" ] || exec_chroot apt-get remove -f -y -- \
$list
EOF
chmod
+x
"
$SCRIPT
"
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