diff options
| author | navewindre <boneyaard@gmail.com> | 2025-06-18 05:46:29 +0200 |
|---|---|---|
| committer | navewindre <boneyaard@gmail.com> | 2025-06-18 05:46:29 +0200 |
| commit | afd82678fdc0a03ea21e4f8e70784b27e48af56b (patch) | |
| tree | 6fdb6eb0583b335d61329caceeef13573a85004e | |
| parent | 15f41c1af833148d5f4a08d3b63e4f0345ce939a (diff) | |
liloconfig
| -rwxr-xr-x | slackware-bootstrap/kernel | 2 | ||||
| -rwxr-xr-x | slackware-bootstrap/runlevel | 2 | ||||
| -rwxr-xr-x | slackware-bootstrap/slackpkg | 12 |
3 files changed, 15 insertions, 1 deletions
diff --git a/slackware-bootstrap/kernel b/slackware-bootstrap/kernel index 6818dcc..4332f40 100755 --- a/slackware-bootstrap/kernel +++ b/slackware-bootstrap/kernel @@ -28,6 +28,8 @@ if [[ $dirstr != '' ]]; then cp System.map /boot/System.map-6.15.2.x64 cp .config /boot/config-6.15.2 + liloconfig + rm /boot/vmlinuz ln -s /boot/vmlinuz-generic-6.15.2 /boot/vmlinuz diff --git a/slackware-bootstrap/runlevel b/slackware-bootstrap/runlevel index 03aaaf8..b401c9c 100755 --- a/slackware-bootstrap/runlevel +++ b/slackware-bootstrap/runlevel @@ -7,7 +7,7 @@ echo "if you would like to change the runlevel to 4, enabling" echo "graphical login, you can do that now." echo "=========================================================" -read -p "would you like to change runlevel to 4 [y/n]? (n) " choice +read -p "would you like to change runlevel to 4 [y/n]? (n): " choice if [[ $choice == 'y' ]]; then cp -f $basedir/inittab /etc/inittab else diff --git a/slackware-bootstrap/slackpkg b/slackware-bootstrap/slackpkg index e21e7d8..80f1bb8 100755 --- a/slackware-bootstrap/slackpkg +++ b/slackware-bootstrap/slackpkg @@ -72,6 +72,18 @@ initrdcmd="$(/usr/share/mkinitrd/mkinitrd_command_generator.sh -k $kernel)" initrdcmd=$(echo $initrdcmd | tail -1) $initrdcmd +echo "==================== [ kernel update ] ==========================" +echo "your kernel has been updated by slackpkg. in order to boot," +echo "you will need to update your bootloader config." +echo "if you do not use LILO, or do not boot off of your slackware disk" +echo "simply input 'n'" +echo "=================================================================" + +read -p "would you like to update your bootloader? [y/n] (y): " choice +if [[ $choice != 'n' ]]; then + liloconfig +fi + rm /boot/vmlinuz ln -s /boot/vmlinuz-generic-$kernel /boot/vmlinuz |
