Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
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
Vladislav
eepm
Commits
f3fe0d21
Commit
f3fe0d21
authored
2 years ago
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: allow --dry-run for kernel-update/remove-old-kernels
parent
31195704
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
epm-autoremove
bin/epm-autoremove
+2
-2
epm-kernel_update
bin/epm-kernel_update
+1
-1
epm-remove_old_kernels
bin/epm-remove_old_kernels
+3
-1
No files found.
bin/epm-autoremove
View file @
f3fe0d21
...
...
@@ -252,12 +252,12 @@ case $BASEDISTRNAME in
__epm_autoremove_altrpm
"
$@
"
fi
[
-n
"
$dryrun
"
]
&&
return
#
[ -n "$dryrun" ] && return
# remove old kernels only by a default way
[
-n
"
$1
"
]
&&
return
docmd epm remove-old-kernels
$
(
subst_option non_interactive
-y
)
docmd epm remove-old-kernels
$
dryrun
if
[
-z
"
$direct
"
]
;
then
echo
...
...
This diff is collapsed.
Click to expand it.
bin/epm-kernel_update
View file @
f3fe0d21
...
...
@@ -35,7 +35,7 @@ epm_kernel_update()
fi
assure_exists update-kernel update-kernel 0.9.9
update_repo_if_needed
sudocmd update-kernel
$(
subst_option non_interactive
-y
)
"
$@
"
||
return
sudocmd update-kernel
$
dryrun
$
(
subst_option non_interactive
-y
)
"
$@
"
||
return
#docmd epm remove-old-kernels "$@" || fatal
return
;;
esac
...
...
This diff is collapsed.
Click to expand it.
bin/epm-remove_old_kernels
View file @
f3fe0d21
...
...
@@ -32,7 +32,9 @@ epm_remove_old_kernels()
return
fi
assure_exists update-kernel update-kernel 0.9.9
sudocmd remove-old-kernels
$(
subst_option non_interactive
-y
)
"
$@
"
sudocmd remove-old-kernels
$dryrun
$(
subst_option non_interactive
-y
)
"
$@
"
[
-n
"
$dryrun
"
]
&&
return
# remove unused nvidia drivers
if
which nvidia-clean-driver 2>/dev/null
;
then
...
...
This diff is collapsed.
Click to expand it.
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