IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
Handle confirmation dialog in remove-old-kernels deterministically and always
pass `-y' to apt-get. By this we can be sure that confirmation is always asked.
(Because apt-get could skip its confirmation dialog.) Also, `--force' is not
(and never was) contradictory with `--dry-run'.
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
'rpmevrcmp' is not needed since we don't output epoch there, thus simple version
sort with `sort -V` is enough.
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This can be used, for example, as:
# update-kernel -H -A virtualbox
instead of post-installing:
# apt-get install kernel-headers-std-def kernel-headers-modules-std-def kernel-modules-virtualbox-std-def
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
Date earlier than 2022/05/19 produce an error:
+ update-kernel -v -f --headers
Running kernel: 5.17.15-un-def-alt1 is not from package
Checking for available std-def kernel packages...
Latest kernel is kernel-image-std-def-5.15.40-alt1
ATTENTION: Selected kernel is 1 months old.
Kernel std-def version 5.15.40-alt1 has 43 external modules. Use -i to select what to install.
Try to install new kernel kernel-image-std-def-5.15.40-alt1 and update its modules [Y/n]? yes
+ apt-get install -o APT::Install::Virtual=true -y kernel-image-std-def#2:5.15.40-alt1:sisyphus+300020.100.1.1@1652646109 kernel-headers-std-def kernel-headers-modules-std-def
Reading Package Lists...
Building Dependency Tree...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
kernel-headers-modules-std-def: Depends: gcc11
E: Broken packages
update-kernel: failed to install kernel-image-std-def-2:5.15.40-alt1:sisyphus+300020.100.1.1@1652646109 with modules
The command '/bin/bash -xec toilet -w 150 First install && update-kernel -v -f --headers && ls -l /boot/vmlinuz /boot/vmlinuz-std-def /boot/initrd.img /boot/initrd-std-def.img && ls -l /boot/$(readlink /boot/vmlinuz)' returned a non-zero code: 1
make: *** [Makefile:8: docker-build] Error 1
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
Use `--dry-run' instead of `--download-only'.
We just about to use `--download-only' for something else.
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
- Remove indentation from 'ATTENTION' warning, because it breaks presentation
of modules lists (as in ugly).
- Show installing external modules list in apt'ish manner to which user is
already familiar.
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This happens because `a=$(...)` assignment eats last newline, then if we `echo
"$a" | wc -l` we miss `0` lines (because there's always 1 empty line) and if we
`echo -n "$a" | wc -l` we get `n-1` lines.
So just count words instead of lines.
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
- 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.
Use (bash) select by a number instead of asking about every module. Should be
easier to select a few modules and does not require extreme attentiveness.
Allow to use standalone `-i' option to add modules to the system.
`-a' is not required to be used tith `-i' anymore.
Install confirmation prompt is moved after modules selection and just before
apt-get install itself.
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>
This should make interactive mode more useful and intuitive.
Link: https://bugzilla.altlinux.org/42321
Signed-off-by: Vitaly Chikunov <vt@altlinux.org>