slackupdr-3.4 Release
This is the June 2022 release (v3.4) of slackupdr, a SlackBuild package for Slackware Linux.
This release has been tested on:
- Version - - - - - - - - - Arch - - - - - -Bootloader
- Slackware-14.2 - - - i686 - - - - - - LILO
- Slackware-14.2 - - - x86_64 - - - - CHROOT & LXC
- Slackware-15.0 - - - x86_64 - - - - EFI & LILO
- Slackware-current- -x86_64 - - - - EFI
DESCRIPTION
slackupdr is a CLI menu driven tool. It automates slackpkg, manages installation of multiple kernels, updates LILO & ELILO bootloaders & manages /etc .new & .orig files. slackupdr uses slackpkg, pkgtools, mkinitrd & diff/edit tools.
HISTORY
autoslackpkg development started in 2019 & v2.1 was the last release. autoslackpkg was started after the author upgraded multiple Slackware-14.2 systems to Slackware-current. The primary intent was to automate slackpkg & minimize the effort of upgrades to multiple -current systems.
slackupdr development started in 2021 & v3.0 was the 1st release. slackupdr replaces the autoslackpkg process automation with multi-level, ncurses based menus. slackupdr offers the same functionality as autoslackpkg via menus. Using menus increases the script's flexibility & increases complexity. This complexity requires more understanding of the slackpkg process by the administrator.
REQUIREMENTS
/etc/mkinitrd.conf:
This file is normally optional in Slackware. slackupdr does not
allow the administrator to pass options on the command line to mkinitd.
A sample file /etc/mkinitrd.sample should be available to the
administrator. See mkinitrd.conf(5) for more information.
/etc/slackpkg/slackupdr.conf:
This file is provided with slackupdr. All but 2 of the variables set
in this file can be left to default. The 2 exceptions are TEMPLATE_LILO
& TEMPLATE_ELILO. See slackupdr.conf(5) for more information.
TEMPLATE_LILO & TEMPLATE_ELILO
Depending on the bootloader in use, only 1 of these 2 variables requires modification. This applies the the "LILO Updater" & "EFI Updater" menu items. These templates are used to completely rebuild either lilo.conf or elilo.conf.
The administrator can add or delete lines in the templates as needed with special attention to adding the required comments. There are 3 types of comments that the script uses to process the templates.
The lines with the "#CLONE" comment are copied as-is with the "#CLONE" comment removed before the save to disk.
There is a single line with the "#DEFAULT" comment that must be present. This line is used to point to the default kernel on boot. The "#DEFAULT" comment is removed before the save to disk.
The final 2 comments are the "#GENERIC" & "#HUGE" comments that are required on the lines that make up the kernel image sections. Both comment types are removed before the save to disk.
CHANGELOG
2022-06-07 slackupdr 3.4
added file, cdrom & ftp methods for kernel download
reads slackpkg mirrors file
added diff/edit function to Tools Menu
allows management of /etc .new & .orig files
new DIFF variable in slackupdr.conf, defaults to mcdiff
added bash_trap function
traps on ERR, shows error, command, line number, function & call stack
modified bash_strict_mode function
added 'set -E' / -o errtrace
error trap is inherited by functions, command substitutions & subshells
added 'shopt -s inherit_errexit'
command substitution inherits the value of the errexit
modified function library to plain text from compressed file
renamed to slackupdr_lib from slackupdr_lib.gz
discontinued use of gzip packaging & zcat sourcing in script
added shellcheck to code review process
see slackupdr & slackupdr_lib files for '# shellcheck disable=' comments
Source package:
https://www.go4it2day.com/downloads/slackupdr/3.4/slackupdr-3.4.tar.gz
Slackbuild package:
https://www.go4it2day.com/downloads/slackupdr/3.4/slackupdr.tar.gz
Links:
Built package:
NOTE: a more recent version is available
Source package:
NOTE: a more recent version is available
Slackbuild package:
NOTE: a more recent version is available
Published:
06/07/2022