Quote:
Code:
./configure --enable-stack-protector --with-platform=efi Code:
cat config.log | grep TARGET_CFLAGS Quote:
Code:
./configure --enable-stack-protector=strong --with-platform=efi Code:
cat config.log | grep TARGET_CFLAGS Quote:
Code:
./configure --help | grep enable-stack-protector Quote:
|
Quote:
+ Quote:
During my grub test, I noticed that grub-mkconfig was reporting errors. As I know how to do a chroot, I chose to reboot anyway But, after noticing these errors, if I don't know how to deal with chroot, I could also have chosen to reinstall the previous version, which would have led to a non-bootable computer anyway If the upgrade of a specific package is the culprit, the downgrade must be the first solution, not chroot Side note: It could be interesting to have something similar to arch-chroot on the ISO ;-) Code:
mount $ROOT_PART /mnt |
Quote:
Quote:
|
Quote:
Code:
mount /dev/sda5 /mnt -o subvol=/@ |
Quote:
efivarfs is always mounted on EFI systems in -current now, so that shouldn't be an issue moving forward. All done and exited from the chroot? Then you need umount -R /mnt to unmount everything. |
Quote:
|
So far 2.12 working well for me on both an MBR install and an UEFI install. However, both of these computers are basic setups: ext4 fs, early microcode enabled, and generic kernel using an initramfs.
I did reinstall via a grub-install on both systems. I had to delete the .orig files to prevent double grub menu entries, but it looks like that is resolved in the 2nd build of it. |
Quote:
Code:
#! /bin/sh |
Ok last time I am going to spam the screen with the full code, but I added version_sort to sort the kernels with newest first.
Code:
#! /bin/sh |
Quote:
Code:
In 09_slackware_linux line 112: |
Thanks Didier, I will work on that.
EDIT: It also seems I forgot to add back logic to prioritize SMP kernels first in 32bit. But I am thinking why bother since that is going to be a thing of the past now that Pat has dropped the -smp label. |
Thanks again Didier, I went back and got the script POSIX compliant and tested it with 32/64 15.0 and current. It now works without errors or deprecation warnings. I think it is in a good place.
Code:
#! /bin/sh |
5 Attachment(s)
Quote:
<digression>As I had setup a gpt without efi, at first grub refused to work. No big deal, I shut down the system, did a "qemu-img resize +2G", restarted the VM, added a BIOSBoot partition, which made grub-mkconfig happy. Then I rebooted and got the grub menus grub-1.1.png (main) and grub-1.2.png (advanced options). I had kernel huge and generic 6.1.62.</digression> After that I updated the system using slackpkg and ran geninitrd, not running grub-mkconfig at first. The grub menu did not change, but as the kernel 6.1.62 had been replaced by 6.6.11 as you can see in boot.txt which is the output "ls -1 /boot". As expected all the boot entries mentioning the kernel version were ineffective. I rebooted, then ran grub-mkconfig again. This time of course all boot entries worked (see grub2.1 and grub2.2). Opinion Yes we have a safety net after a kernel upgrade with the symlinks in case the user:
But this is at the price of grub menus cluttered with redundant boot entries, of which not all are effective. Maybe acceptable for sighted users, but not nice for my blind "customers" ;) Conclusion I suggest to adapt Slackware to GRUB (instead of adapting GRUB to Slackware), doing what most other distributions do since a long time:
|
3 Attachment(s)
This is what I am using right now on all of my computers and vm's (VirtualBox). All are BIOS except for one VM that is EFI. I am using kernel-generic on all installs. For the -current installs, no initrd is used, for the my 14.2 and 15.0 installs an initrd is used. The BIOS installs have a BIOS Boot partition, of course the EFI install has an EFI partition.
I am including a screenshot of of my Slackware64-current VM. This is the 09_slackware section for that screenshot: Code:
### BEGIN /etc/grub.d/09_slackware ### This computer has two kernels installed, one is the latest (stock), the other is the last working backup (working). This is /etc/boot: Code:
# ls -l /boot/vmlinuz* This is the 09_slackware section of grub.cfg (I don't have a screenshot): Code:
### BEGIN /etc/grub.d/09_slackware ### Edit: As an after thought I am adding the output of grub-mkconfig for this computer. Code:
grub-mkconfig -o /boot/grub/grub.cfg I have to give credit to marav and LuckyCyborg for give me the idea to come up with this. :hattip: |
Mark
|
All times are GMT -5. The time now is 10:51 AM. |