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
16a8d2ad
Commit
16a8d2ad
authored
Sep 01, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm release-upgrade: try replace altlinux-release-sisyphus if target distro is not Sisyphus
parent
b38de5e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
11 deletions
+22
-11
epm-release_upgrade
bin/epm-release_upgrade
+22
-11
No files found.
bin/epm-release_upgrade
View file @
16a8d2ad
...
...
@@ -216,7 +216,7 @@ get_fix_release_pkg()
[
"
$TOINSTALL
"
=
"altlinux-release-sisyphus"
]
&&
TOINSTALL
=
"branding-alt-sisyphus-release"
# update if installed (just print package name here to include in the install list)
epm
--quiet
--short
-q
alt-gpgkeys 2>/dev/null
epm
--quiet
--short
installed
alt-gpgkeys 2>/dev/null
if
epm
--quiet
--short
-q
etersoft-gpgkeys 2>/dev/null
>
/dev/null
;
then
# leave etersoft-gpgkeys only we have LINUX@Etersoft repo
epm rl |
grep
-q
"LINUX@Etersoft"
&&
echo
etersoft-gpgkeys
||
echo
alt-gpgkeys
...
...
@@ -246,11 +246,22 @@ __switch_repo_to()
__check_system
()
{
local
TO
=
"
$1
"
shift
# sure we have systemd if systemd is running
if
is_active_systemd systemd
;
then
docmd epm
--skip-installed
install
systemd
||
fatal
fi
if
[
"
$TO
"
!=
"Sisyphus"
]
;
then
if
epm installed altlinux-release-sisyphus
>
/dev/null
;
then
warning
"Target distro is
$TO
, but altlinux-release-sisyphus package is installed."
warning
"Trying to replace it with altlinux-release-
$TO
"
docmd epm
install
altlinux-release-
$TO
fi
fi
# switch from prefdm: https://bugzilla.altlinux.org/show_bug.cgi?id=26405#c47
if
is_active_systemd systemd
;
then
if
serv display-manager exists
||
serv prefdm exists
;
then
...
...
@@ -342,7 +353,7 @@ __switch_alt_to_distro()
__epm_ru_update
||
fatal
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
__check_system
"
$TO
"
docmd epm update-kernel
||
fatal
info
"Run epm release-upgrade again for update to p9"
;;
...
...
@@ -353,7 +364,7 @@ __switch_alt_to_distro()
__epm_ru_update
||
fatal
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
__check_system
"
$TO
"
docmd epm update-kernel
||
fatal
;;
"p8 c8"
|
"p8 c8.1"
|
"p8 c8.2"
)
...
...
@@ -368,7 +379,7 @@ __switch_alt_to_distro()
fi
docmd epm downgrade
docmd epm upgrade
||
fatal
"Check the errors and run '# epm release-upgrade' again"
__check_system
__check_system
"
$TO
"
docmd epm update-kernel
||
fatal
;;
"p8"
|
"p8 p9"
|
"t8 p9"
|
"c8 c9"
|
"c8 p9"
|
"c8.1 p9"
|
"c8.2 p9"
|
"p9 p9"
)
...
...
@@ -382,7 +393,7 @@ __switch_alt_to_distro()
__epm_ru_update
||
fatal
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
__check_system
"
$TO
"
docmd epm update-kernel
||
fatal
info
"Run epm release-upgrade again for update to p10"
;;
...
...
@@ -396,7 +407,7 @@ __switch_alt_to_distro()
__epm_ru_update
||
fatal
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
__check_system
"
$TO
"
docmd epm update-kernel
-t
std-def
||
fatal
;;
"p9 p8"
|
"c8.1 c8"
|
"c8.1 p8"
|
"p8 p8"
)
...
...
@@ -410,7 +421,7 @@ __switch_alt_to_distro()
docmd epm downgrade apt rpm pam pam0_passwdqc glibc-core libcrypt-
||
fatal
fi
docmd epm downgrade
__check_system
__check_system
"
$TO
"
docmd epm upgrade
||
fatal
;;
"p9 c8"
|
"p9 c8.1"
|
"p9 c8.2"
)
...
...
@@ -424,7 +435,7 @@ __switch_alt_to_distro()
# docmd epm downgrade apt rpm pam pam0_passwdqc glibc-core libcrypt- || fatal
#fi
docmd epm downgrade
__check_system
__check_system
"
$TO
"
docmd epm upgrade
||
fatal
;;
"p10 p9"
)
...
...
@@ -435,7 +446,7 @@ __switch_alt_to_distro()
__epm_ru_update
||
fatal
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
__check_system
"
$TO
"
docmd epm upgrade
||
fatal
;;
"Sisyphus p8"
|
"Sisyphus p9"
|
"Sisyphus p10"
|
"Sisyphus c8"
|
"Sisyphus c8.1"
)
...
...
@@ -446,7 +457,7 @@ __switch_alt_to_distro()
__epm_ru_update
||
fatal
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
__check_system
"
$TO
"
docmd epm upgrade
||
fatal
;;
"p8 Sisyphus"
|
"p9 Sisyphus"
|
"p10 Sisyphus"
|
"Sisyphus Sisyphus"
)
...
...
@@ -462,7 +473,7 @@ __switch_alt_to_distro()
#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 the error and run '# epm release-upgrade' or just '# epm upgrade' again"
__check_system
__check_system
"
$TO
"
docmd epm update-kernel
||
fatal
;;
*
)
...
...
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