Salix 15.0: survival grub package

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

Salix 15.0: survival grub package

Post by SalixManiac » 6. Aug 2022, 10:33

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: 1267
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Salix 15.0: survival grub package

Post by djemos » 8. Aug 2022, 11:57

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: 68
Joined: 15. Apr 2022, 02:26

Re: Salix 15.0: survival grub package

Post by SalixManiac » 8. Aug 2022, 20:06

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: 68
Joined: 15. Apr 2022, 02:26

Re: Salix 15.0: survival grub package

Post by SalixManiac » 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/
Colin Chapman “light is right” those last words "the middle pedal is for cowards"

djemos
Salix Warrior
Posts: 1267
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Salix 15.0: survival grub package

Post by djemos » 4. Oct 2022, 18:38

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: 68
Joined: 15. Apr 2022, 02:26

Re: Salix 15.0: survival grub package

Post by SalixManiac » 4. Oct 2022, 20:54

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: 1267
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Salix 15.0: survival grub package

Post by djemos » 4. Oct 2022, 21:22

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

Post Reply