Salix 15.0: survival grub package

If you have any suggestions or ideas about improving Salix, here's the place to post them.
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

Salix 15.0: survival grub package

Post by SalixManiac »

Hello,
Could Djemos make a optional grub-2.06 package?
A very basic package just for the bios without zfs and efi is only 5.1Mo.

Users less lilo user like me would say thank you :lol:
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Salix 15.0: survival grub package

Post by djemos »

If i understood well what you want.
slackware without efi grub-package x86_64 only build using slackware slackbuild modified it to build without efi, zfs is not build by default. (size 4.9 MB)
For x86 build just run again the slackbuild in a x86 salix system.

SALIX without efi grub-package x86_64 only build using SLKBUILD without efi, zfs is not build by default. (size 5.4 MB because of including salix.png, grubconfig etc)
For x86 build just run again the fakeroot slkbuild -X in a x86 salix system.
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

Re: Salix 15.0: survival grub package

Post by SalixManiac »

A big thank you to you Djemos.
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

Re: Salix 15.0: survival grub package

Post by SalixManiac »

Hello djemos

I have little problems, I used your slackbuild, but this will create an empty /boot/grub directory and grub.cfg is installed in /boot :geek:

https://people.salixos.org/djemos/salix ... WARE-grub/
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Salix 15.0: survival grub package

Post by djemos »

SalixManiac wrote: 4. Oct 2022, 11:51 Hello djemos

I have little problems, I used your slackbuild, but this will create an empty /boot/grub directory and grub.cfg is installed in /boot :geek:

https://people.salixos.org/djemos/salix ... WARE-grub/
Installing the package there is nothing in /boot/grub. Then have to install grub using

Code: Select all

sudo grub-install /dev/sda 
after installation running

Code: Select all

sudo grub-mkconfig -o /boot/grub/grub.cfg
then a grub.cfg will created in /boot/grub/ using settings in /etc/default/grub file.
No grub.cfg exist in /boot/ only grub folder /boot/grub/ This grub.cfg maybe left there from other installation. I does not belong to the package.

Can also install the salix package where in /boot/grub/ there is salix.png and also can run sudo update-grub to update grub after installation.

Be careful: Test this in vmware. I suggest to do this in vmware to not break grub and cannot boot your system. You can fix this with booting with live iso. If it happens.
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

Re: Salix 15.0: survival grub package

Post by SalixManiac »

Ooops my fault
$ sudo grub-mkconfig -o /boot/grub.cfg instead of $ sudo grub-mkconfig -o /boot/grub/grub.cfg :oops:

$ sudo grub-mkconfig -o /boot/grub/grub.cfg
Linux image found: /boot/vmlinuz-huge-5.15.63 Linux image found: /boot/vmlinuz-huge Caution: The operating system sonar will be run to detect other bootable partitions. Its output will be used to detect the bootable binaries they contain and create new boot inputs. Slackware 15.0 x86_64 found on /dev/sda2

$ sudo grub-install dev/sda1
Unable to find a GRUB device for dev/sda2. Check device.map..
:?

mtab file:
/dev/sda2 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
/dev/sda1 /boot ext3 rw 0 0
/dev/sda3 /home ext3 rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
fusectl /sys/fs/fuse/connections fusectl rw 0 0
gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,user=fabrice 0 0
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Salix 15.0: survival grub package

Post by djemos »

no "sudo grub-install dev/sda1"
So you need to install the bootloader to /dev/sda. Don't install the bootloader to a partition.

run

Code: Select all

sudo grub-install /dev/sda
and then

Code: Select all

sudo grub-mkconfig -o /boot/grub/grub.cfg
You have /boot in /dev/sda1
and salix system / in /dev/sda2
It's ok but i never use a separate partition for /boot
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

Re: Salix 15.0: survival grub package

Post by SalixManiac »

sudo grub-install /dev/sda
Unable to find a GRUB device for dev/sda2. Check device.map..

Yes GRUB do a nervous breakdown with /dev/sda1 /boot ext3 rw 0 0 :lol: :lol: :lol:

If I can enable intel-microcode and no=mitigation with Lilo, I wouldn't switch to GRUB, but I can't find documentation.
Lilo is the bootloader of Salix 15.0, so I'm giving her a chance :D
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Salix 15.0: survival grub package

Post by djemos »

This will work

Code: Select all

sudo grub-install --target=i386-pc  --boot-directory /boot --recheck --force /dev/sda
User avatar
SalixManiac
Posts: 113
Joined: 15. Apr 2022, 02:26

Re: Salix 15.0: survival grub package

Post by SalixManiac »

sudo grub-install --target=i386-pc --boot-directory /boot --recheck --force /dev/sda

djemos you are the best, everything work perfectly :D
I even removed the lilo package.

PS: 64 bit salix-xfce 64, a mbr table, /dev/sda1 /boot (just because i like this build), /dev/sda2 /, i have a chipset intel cougar who doesn't pupport TSC timer deadline and a cpu intel haswell who doesn't pupport acpi but with intel-microcode enabled with GRUB the TSC timer deadline est functional and the acpi is correctly deactivate.
Colin Chapman “light is right” those last words "the middle pedal is for cowards"
Post Reply