Blame
| d0ae3c | Anonymous | 2026-01-31 03:40:26 | 1 | # Slackupdr |
| 2 | ||||
| 3 | ====== slackupdr ====== |
|||
| 4 | ||||
| 5 | slackupdr automates the use of slackpkg, manages installation of multiple kernels & updates LILO & ELILO bootloaders. The script expects to be run as the root user. slackupdr is menu & config file driven. it is on https://slackbuilds.org/repository/15.0/system/slackupdr/?search=slackupdr once installed you will need to create a mkinitrd.conf |
|||
| 6 | ||||
| 7 | <code>cp /etc/mkinitrd.conf.sample /etc/mkinitrd.conf</code> |
|||
| 8 | ||||
| 9 | and then simply run slackupdr as root |
|||
| 10 | ||||
| 11 | <code>slackupdr</code> |
|||
| 12 | ||||
| 13 | ||||
| 14 | ==== REQUIREMENTS ==== |
|||
| 15 | ||||
| 16 | <code>/etc/mkinitrd.conf</code> |
|||
| 17 | ||||
| 18 | This file is normally optional in Slackware. slackupdr does not |
|||
| 19 | allow the administrator to pass options on the command line to mkinitd. |
|||
| 20 | A sample file /etc/mkinitrd.sample should be available to the |
|||
| 21 | administrator. See mkinitrd.conf(5) for more information. |
|||
| 22 | ||||
| 23 | <code>/etc/slackpkg/slackupdr.conf</code> |
|||
| 24 | ||||
| 25 | This file is provided with slackupdr. All but 2 of the variables set |
|||
| 26 | in this file can be left to default. The 2 exceptions are TEMPLATE_LILO |
|||
| 27 | & TEMPLATE_ELILO. See slackupdr.conf(5) for more information. |
|||
| 28 | ||||
| 29 | <code>TEMPLATE_LILO & TEMPLATE_ELILO</code> |
|||
| 30 | ||||
| 31 | 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. |
|||
| 32 | ||||
| 33 | 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. |
|||
| 34 | ||||
| 35 | The lines with the "#CLONE" comment are copied as-is with the "#CLONE" comment removed before the save to disk. |
|||
| 36 | ||||
| 37 | 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. |
|||
| 38 | ||||
| 39 | 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. |
