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
etersoft
eepm
Commits
d4120392
Commit
d4120392
authored
Aug 26, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-release_upgrade: fix messages
parent
4e3eb821
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
21 deletions
+21
-21
epm-release_upgrade
bin/epm-release_upgrade
+21
-21
No files found.
bin/epm-release_upgrade
View file @
d4120392
...
...
@@ -274,8 +274,8 @@ __switch_alt_to_distro()
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
"
$FROM
"
)
"
||
fatal
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm upgrade
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
docmd epm upgrade
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
docmd epm update-kernel
info
"Run epm release-upgrade again for update to p8"
;;
...
...
@@ -284,8 +284,8 @@ __switch_alt_to_distro()
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
"
$FROM
"
)
"
||
fatal
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm upgrade
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
docmd epm upgrade
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
__check_system
docmd epm update-kernel
||
fatal
info
"Run epm release-upgrade again for update to p9"
...
...
@@ -295,8 +295,8 @@ __switch_alt_to_distro()
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
"
$FROM
"
)
"
||
fatal
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm upgrade
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
docmd epm upgrade
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
__check_system
docmd epm update-kernel
||
fatal
;;
...
...
@@ -305,13 +305,13 @@ __switch_alt_to_distro()
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
"
$FROM
"
)
"
||
fatal
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
if
epm installed libcrypt
>
/dev/null
;
then
# glibc-core coflicts libcrypt
docmd epm downgrade apt pam pam0_passwdqc glibc-core libcrypt-
||
fatal
fi
docmd epm downgrade
docmd epm upgrade
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm upgrade
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
__check_system
docmd epm update-kernel
||
fatal
;;
...
...
@@ -324,8 +324,8 @@ __switch_alt_to_distro()
fi
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm upgrade
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm upgrade
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
__check_system
docmd epm update-kernel
||
fatal
info
"Run epm release-upgrade again for update to p10"
...
...
@@ -338,8 +338,8 @@ __switch_alt_to_distro()
__switch_repo_to
$TO
echo
'%_priority_distbranch p10'
>
/etc/rpm/macros.d/p10
__epm_ru_update
||
fatal
docmd epm upgrade
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
"
$TO
"
)
"
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm upgrade
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
"
$TO
"
)
"
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
__check_system
docmd epm update-kernel
-t
std-def
||
fatal
;;
...
...
@@ -348,7 +348,7 @@ __switch_alt_to_distro()
docmd epm
install
"
$(
get_fix_release_pkg
"
$FROM
"
)
"
||
fatal
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm downgrade rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm downgrade rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
if
epm installed libcrypt
>
/dev/null
;
then
# glibc-core coflicts libcrypt
docmd epm downgrade apt rpm pam pam0_passwdqc glibc-core libcrypt-
||
fatal
...
...
@@ -362,7 +362,7 @@ __switch_alt_to_distro()
docmd epm
install
"
$(
get_fix_release_pkg
"
$FROM
"
)
"
||
fatal
__switch_repo_to
$TO
__epm_ru_update
||
fatal
docmd epm downgrade rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm downgrade rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
#if epm installed libcrypt >/dev/null ; then
# # glibc-core coflicts libcrypt
# docmd epm downgrade apt rpm pam pam0_passwdqc glibc-core libcrypt- || fatal
...
...
@@ -377,7 +377,7 @@ __switch_alt_to_distro()
__switch_repo_to
$TO
rm
-fv
/etc/rpm/macros.d/p10
__epm_ru_update
||
fatal
docmd epm downgrade rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm downgrade rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
docmd epm downgrade
__check_system
docmd epm upgrade
||
fatal
...
...
@@ -388,7 +388,7 @@ __switch_alt_to_distro()
__switch_repo_to
$TO
[
"
$TO
"
=
"p10"
]
&&
echo
'%_priority_distbranch p10'
>
/etc/rpm/macros.d/p10
__epm_ru_update
||
fatal
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
docmd epm downgrade
__check_system
docmd epm upgrade
||
fatal
...
...
@@ -401,11 +401,11 @@ __switch_alt_to_distro()
__alt_repofix
"alt"
[
-s
/etc/rpm/macros.d/p10
]
&&
rm
-fv
/etc/rpm/macros.d/p10
__epm_ru_update
||
fatal
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
an error and run epm release-upgrade
again"
docmd epm
install
rpm apt
"
$(
get_fix_release_pkg
--force
"
$TO
"
)
"
||
fatal
"Check
the errors and run '# epm release-upgrade'
again"
#local ADDPKG
#ADDPKG=$(epm -q --short make-initrd sssd-ad 2>/dev/null)
#docmd epm install librpm7 librpm rpm apt $ADDPKG "$(get_fix_release_pkg --force "$TO")" ConsoleKit2- || fatal "Check an error and run again"
docmd epm upgrade
||
fatal
"Check
an error and run epm release-upgrade or just epm upgrade
again"
docmd epm upgrade
||
fatal
"Check
the error and run '# epm release-upgrade' or just '# epm upgrade'
again"
__check_system
docmd epm update-kernel
||
fatal
;;
...
...
@@ -413,7 +413,7 @@ __switch_alt_to_distro()
if
[
"
$FROM
"
=
"
$TO
"
]
;
then
info
"It seems your system is already updated to newest
$DISTRNAME
$TO
"
else
warning
"Have no idea how to switch from
$DISTRNAME
$FROM
to
$DISTRNAME
$TO
."
warning
"
Unknown distro version.
Have no idea how to switch from
$DISTRNAME
$FROM
to
$DISTRNAME
$TO
."
fi
info
"Try run f.i. # epm release-upgrade p10 or # epm release-upgrade Sisyphus"
info
"Also possible you need install altlinux-release-p? package for correct distro version detecting"
...
...
@@ -421,8 +421,8 @@ __switch_alt_to_distro()
return
1
esac
epm clean
info
"Note:
You can try epm autoremove and epm autoorphans
commands to remove obsoleted and unused packages."
info
"Done. The system has been successfully upgraded to the next release."
info
"Note:
Also you can try '# epm autoremove' and '# epm autoorphans'
commands to remove obsoleted and unused packages."
info
"Done. The system has been successfully upgraded to the next release
'
$TO
'
."
trap
- EXIT
}
...
...
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