2008-02-18 13:26:34 +03:00
Name : update-kernel
2022-06-19 21:32:49 +03:00
Version : 1.2.2
Release : alt1
2008-02-18 13:26:34 +03:00
Summary : Update kernel and modules
2020-02-12 16:33:45 +03:00
License : GPL-2.0+
2008-02-18 13:26:34 +03:00
Group : System/Kernel and hardware
2009-10-17 12:37:46 +04:00
Source : %name-%version.tar
2008-02-18 13:26:34 +03:00
BuildArch : noarch
2022-04-01 02:04:09 +03:00
BuildRequires : shellcheck
2008-02-18 13:26:34 +03:00
2019-04-01 15:03:13 +03:00
Requires : apt
2008-11-24 21:13:01 +03:00
Requires : /usr/bin/rpmevrcmp
2019-06-05 11:34:26 +03:00
# May use rpm -q with an Epoch in the pkg argument (as well as Buildtime and
# Disttag -- but these are dependent on the output from APT, and APT cares
# about the correct dependencies on such features).
Requires : RPMQ(EPOCH)
2008-03-13 15:42:37 +03:00
2008-02-18 13:26:34 +03:00
%description
This package contains a script to conveniently update
kernel and modules.
It works by installing a new package set along with existing kernel
so that you don't end up without a kernel guaranteed to boot (your
good old one); by default, it will look for the most recent package
2009-10-17 12:37:46 +04:00
of the same flavour (e.g. " s t d - d e f " ) and try to install all the same
2008-02-18 13:26:34 +03:00
modules as already installed for that.
See also:
http://lists.altlinux.org/pipermail/community/2005-November/366618.html
http://lists.altlinux.org/pipermail/sisyphus/2006-November/192226.html
%prep
2008-12-28 15:45:17 +03:00
%setup
2008-02-18 13:26:34 +03:00
%install
2022-04-01 01:58:34 +03:00
mkdir -p %buildroot%_sbindir
install -pm755 update-kernel %buildroot%_sbindir /
2008-12-28 15:45:17 +03:00
install -pm755 remove-old-kernels %buildroot%_sbindir /
2022-04-10 01:28:51 +03:00
install -pm755 analyze-kmodules %buildroot%_sbindir /
2008-02-18 13:26:34 +03:00
2022-04-01 02:04:09 +03:00
%check
make check
2008-02-18 13:26:34 +03:00
%files
2013-07-11 22:58:01 +04:00
%_sbindir /update-kernel
%_sbindir /remove-old-kernels
2022-04-10 01:28:51 +03:00
%_sbindir /analyze-kmodules
2008-02-18 13:26:34 +03:00
%changelog
2022-06-19 21:32:49 +03:00
* Sun Jun 19 2022 Vitaly Chikunov <vt@altlinux.org> 1.2.2-alt1
- update-kernel: Add --add (-A) option(s) to install external module.
2022-05-23 18:21:21 +03:00
* Mon May 23 2022 Vitaly Chikunov <vt@altlinux.org> 1.2.1-alt2
- update-kernel: Minor spelling fixes.
2022-04-12 15:31:20 +03:00
* Tue Apr 12 2022 Vitaly Chikunov <vt@altlinux.org> 1.2.1-alt1
- update-kernel: Do not suggest fresher flavour. (ALT#42400)
2022-04-10 08:38:39 +03:00
* Sun Apr 10 2022 Vitaly Chikunov <vt@altlinux.org> 1.2-alt1
- Improve wording of some messages.
- Add experimental analyze-kmodules tool.
2022-04-10 01:05:53 +03:00
* Sun Apr 10 2022 Vitaly Chikunov <vt@altlinux.org> 1.1.1-alt1
- Minor improvements.
2022-04-08 08:51:46 +03:00
* Fri Apr 08 2022 Vitaly Chikunov <vt@altlinux.org> 1.1-alt1
- Add '--headers' option to update-kernel to install kernel-headers.
- Check presence of external modules in the selected kernel.
2022-04-08 01:27:29 +03:00
* Fri Apr 08 2022 Vitaly Chikunov <vt@altlinux.org> 1.0.1-alt1
- Rework interactive mode UI (ALT#42321).
- '-i' can be used at any time to add new modules to the system.
- Interactive module selection happen before kernel install.
- Install kernel-headers and external modules together with the kernel in one
transaction.
- Colorize & brighten some important messages.
- Call sync after install.
2022-04-04 10:40:20 +03:00
* Mon Apr 04 2022 Vitaly Chikunov <vt@altlinux.org> 0.9.21-alt1
- Tools cannot be used under user anymore because sudo sub-invocation is
removed (call them under root instead).
- Require explicit yes or enter to start installation (previously any key work
work except no).
- Improve package version comparison (ALT#42149).
- Do not show epoch and disttag in package names.
- Warn user if installed package (1 month) or APT database (1 day) are stalled.
- Do not require install of 'apt-scripts' for package availability mark in
list mode.
- Show package age in list mode.
2020-10-12 17:16:24 +03:00
* Thu Nov 19 2020 Vitaly Chikunov <vt@altlinux.org> 0.9.20-alt1
- update-kernel: Fix and improve -r option (closes: #39041).
- update-kernel: Add --list option.
2020-08-03 16:31:22 +03:00
* Mon Aug 03 2020 Sergey Novikov <sotor@altlinux.org> 0.9.19-alt1
- update-kernel: fix incorrect comparison of versions of duplicate modules
(closes: #38772)
2020-02-12 16:33:45 +03:00
* Wed Feb 12 2020 Vitaly Chikunov <vt@altlinux.org> 0.9.18-alt1
- Support for single word kernel flavours (closes: #36835).
- Update license tag to be more specific.
2019-12-30 12:07:28 +03:00
* Mon Dec 30 2019 Sergey Novikov <sotor@altlinux.org> 0.9.17-alt1
- update-kernel: remove duplicates modules entries (Closes: #37690)
2019-12-20 14:49:20 +03:00
* Fri Dec 20 2019 Oleg Solovyov <mcpain@altlinux.org> 0.9.16-alt1
- NMU: do not call apt when there are no kernels to remove
2019-12-19 15:05:13 +03:00
* Thu Dec 19 2019 Oleg Solovyov <mcpain@altlinux.org> 0.9.15-alt1
- NMU: protect latest kernel from removing (Closes: #34314)
- NMU: add " - a | - - a l l " option to remove kernels with all flavours
(Closes: #34141)
2019-06-05 11:44:51 +03:00
* Wed Jun 05 2019 Ivan Zakharyaschev <imz@altlinux.org> 0.9.14-alt1
- update-kernel: fixed in the presence of disttags in package IDs
printed by APT (apt-cache pkgnames).
2019-05-28 14:09:57 +03:00
* Tue May 28 2019 Ivan Zakharyaschev <imz@altlinux.org> 0.9.13-alt1
- remove-old-kernels: APT invocation (to remove installed pkgs) rewritten in
a more portable way. (A preparation for APT with support for disttags.)
2019-05-17 13:23:21 +03:00
* Wed May 15 2019 Ivan Zakharyaschev <imz@altlinux.org> 0.9.12-alt1
2019-05-15 21:07:39 +03:00
- APT invocation (to install the modules) rewritten in a more robust way.
(A preparation for APT with support for disttags.)
2019-04-04 03:12:14 +03:00
* Mon Apr 01 2019 Ivan Zakharyaschev <imz@altlinux.org> 0.9.11-alt2
2019-04-01 18:28:17 +03:00
- Rewritten with another bashism that doesn't require /proc/.
- Requires: apt (important not for real systems, but for testing in hasher).
2018-08-22 16:45:20 +03:00
* Wed Aug 22 2018 Vitaly Lipatov <lav@altlinux.ru> 0.9.11-alt1
- add -y option as alias for -f (force operation) (ALT bug 35283)
2017-08-04 15:22:32 +03:00
* Fri Aug 04 2017 Vitaly Lipatov <lav@altlinux.ru> 0.9.10-alt1
- force select newest kernel module package (ALT bug 22572)
2016-04-24 03:47:14 +03:00
* Sun Apr 24 2016 Vitaly Lipatov <lav@altlinux.ru> 0.9.9-alt1
- remove-old-kernels: check only current flavour (or used with -t) (ALT bug #30717)
- remove-old-kernels: do not delete current or newest kernel(s)
2016-01-23 07:01:43 +03:00
* Sat Jan 23 2016 Terechkov Evgenii <evg@altlinux.org> 0.9.8-alt1
- Add help/force/dry-run options to remove-old-kernels
2015-08-23 21:01:57 +03:00
* Sun Aug 23 2015 Vitaly Lipatov <lav@altlinux.ru> 0.9.7-alt1
2022-04-03 04:40:05 +03:00
- check if we already have latest kernel package (alt bug #26715)
2015-08-23 21:01:57 +03:00
2013-07-11 22:58:01 +04:00
* Thu Jul 11 2013 Vitaly Lipatov <lav@altlinux.ru> 0.9.6-alt1
- skip install if the latest kernel is already installed (ALT bug #26715)
2012-12-25 12:32:17 +04:00
* Tue Dec 25 2012 Terechkov Evgenii <evg@altlinux.org> 0.9.5-alt1
- Add --download-only (--dry-run/-n) support (ALT#25300)
2010-12-16 17:04:52 +03:00
* Thu Dec 16 2010 Anton V. Boyarshinov <boyarsh@altlinux.ru> 0.9.4-alt2
- don't try to install unexistent modules
2010-12-09 10:33:36 +03:00
* Thu Dec 09 2010 Anton Protopopov <aspsk@altlinux.org> 0.9.4-alt1
- Install kernel and modules together
2010-09-28 16:34:22 +04:00
* Tue Sep 28 2010 Vladimir V. Kamarzin <vvk@altlinux.org> 0.9.3-alt1
[Dmitriy Kulik]
2010-09-27 15:41:45 +04:00
- Add interactive mode (-i)
2010-09-28 16:34:22 +04:00
- Add option -a|--all for installing all modules (Closes: #22271)
2010-09-27 15:41:45 +04:00
2009-10-17 12:37:46 +04:00
* Sat Oct 17 2009 Michael Shigorin <mike@altlinux.org> 0.9.2-alt1
- removed warning on x11setupdrv absence due to its obsolescence
(closes: #21872)
2009-08-31 13:30:56 +04:00
* Mon Aug 31 2009 Michael Shigorin <mike@altlinux.org> 0.9.1-alt1
- added one-liner to fix path to x11presetdrv (closes: #21301)
2009-03-10 09:52:12 +03:00
* Thu Mar 05 2009 Vladimir V. Kamarzin <vvk@altlinux.org> 0.9-alt1
- Add x11presetdrv calling (mike)
- Add ldconfig call after x11setupdrv (mike)
- Remove message about updating kernel-headers and kernel-headers-modules
2009-02-26 15:11:10 +03:00
* Thu Feb 26 2009 Vladimir V. Kamarzin <vvk@altlinux.org> 0.8.1-alt1
- update_kernel: run x11setupdrv only if Xorg present
2008-12-28 15:57:12 +03:00
* Sun Dec 28 2008 Vladimir V. Kamarzin <vvk@altlinux.org> 0.8-alt1
- update_kernel: update kernel-headers and kernel-headers-modules also
2008-12-28 16:00:11 +03:00
(me, kipruss) (Closes: #18259)
2008-12-28 15:57:12 +03:00
- Add new script remove-old-kernels. It removes all kernels except current
2008-12-28 16:05:35 +03:00
(Closes: #14764)
2008-12-28 15:57:12 +03:00
2008-11-24 21:18:32 +03:00
* Mon Nov 24 2008 Vladimir V. Kamarzin <vvk@altlinux.org> 0.7-alt1
- Use rpmevrcmp instead of rpmvercmp
- Use only serial/epoch+version+release when comparing versions
2008-09-22 09:23:21 +04:00
* Mon Sep 22 2008 Vladimir V. Kamarzin <vvk@altlinux.org> 0.6-alt1
- Run x11setupdrv if needed (mike)
2008-09-22 09:38:42 +04:00
- Spelling fixes (mike)
2008-09-20 22:56:31 +04:00
2008-09-01 10:34:31 +04:00
* Mon Sep 01 2008 Vladimir V Kamarzin <vvk@altlinux.org> 0.5-alt1
- Fix module-names calculation (Closes: #16946)
2008-04-22 09:46:13 +04:00
* Tue Apr 22 2008 Vladimir V Kamarzin <vvk@altlinux.ru> 0.4-alt1
- Rewrite modules upgrading procedure (Closes: #15380)
2008-04-15 16:35:54 +04:00
* Tue Apr 15 2008 Vladimir V Kamarzin <vvk@altlinux.ru> 0.3-alt4
- update_kernel: bugfix in options parser
2008-04-11 08:54:48 +04:00
* Fri Apr 11 2008 Vladimir V Kamarzin <vvk@altlinux.ru> 0.3-alt3
- Set dependency on /usr/bin/rpmvercmp instead of rpm-utils
2008-03-13 15:43:37 +03:00
* Thu Mar 13 2008 Vladimir V Kamarzin <vvk@altlinux.ru> 0.3-alt2
- Add dependency on rpm-utils
2008-03-11 23:19:29 +03:00
* Wed Mar 12 2008 Vladimir V Kamarzin <vvk@altlinux.ru> 0.3-alt1
- update-kernel:
+ use rpmvercmp(1) for getting newest kernel package name
+ old code for manual choosing of kernel flavour/release replaced with
options -t/-r
2008-03-03 12:38:32 +03:00
* Mon Mar 03 2008 Vladimir V Kamarzin <vvk@altlinux.ru> 0.2-alt1
- update-kernel:
+ implemented " f o r c e " mode
+ recode script to utf8
+ update copyright header
2008-02-18 13:26:34 +03:00
* Mon Feb 18 2008 Michael Shigorin <mike@altlinux.org> 0.1-alt2
- clarified License: (with lav@)
- noarch
* Sun Feb 17 2008 Michael Shigorin <mike@altlinux.org> 0.1-alt1
- initial package
- many thanks to Vitaly Lipatov (lav@) and Anatoly Kitouwaykin (cetus)
for writing and improving the script -- I just had to package it