User avatar
ikey
Project Founder
Posts: 1581
Joined: Sun Jul 27, 2014 10:42 pm
Location: Ireland
Contact: Website

Re: Our first unstable daily ISO!

Thu Jul 09, 2015 11:48 am

If I remember rightly GeneC, it involved hand-editing the host grub.cfg to add the missing "initrd /boot/initramfs-$VERSION.img" line
(i.e. latest unstable, $VERSION is 4.1.1)

But either way, this route is just a whacking great big pain in the ass.Can't check atm because I'm not even on a BIOS system anymore :o

At some level we're too foreign for other distributions to spot (Which, tbf, is quite funny.). The oddest part to me is GRUB works in our native setup. We added lsb_release, use consistent naming schemes, I'm not sure where the problem lies, it's only ever the initramfs it can't find. I wonder if we have to suck up to these legacy constructs and add symlinks in / ..
Image

User avatar
GeneC
Posts: 453
Joined: Mon Jul 28, 2014 8:30 pm
Location: Maine, USA

Re: Our first unstable daily ISO!

Thu Jul 09, 2015 12:04 pm

Here is my /boot/grub.cfg if it helps..? (from Sparky from which I boot). Its a BIOS machine.

Code: Select all

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="Sparky 4.1"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}
function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  27e2b91a-7bed-4a1e-a997-95cfe64af7dd
else
  search --no-floppy --fs-uuid --set=root 27e2b91a-7bed-4a1e-a997-95cfe64af7dd
fi
    font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
  set gfxmode=1024x768
  load_video
  insmod gfxterm
  set locale_dir=$prefix/locale
  set lang=en_US
  insmod gettext
fi
terminal_output gfxterm
if [ "${recordfail}" = 1 ] ; then
  set timeout=30
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=3
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=3
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd0,msdos2'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  27e2b91a-7bed-4a1e-a997-95cfe64af7dd
else
  search --no-floppy --fs-uuid --set=root 27e2b91a-7bed-4a1e-a997-95cfe64af7dd
fi
insmod jpeg
if background_image /home/gene/Pictures/dark-grunge.jpg; then
  set color_normal=dark-gray/black
  set color_highlight=light-cyan/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux_proxy ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode

### END /etc/grub.d/10_linux_proxy ###

### BEGIN /etc/grub.d/14_uefi-firmware ###
### END /etc/grub.d/14_uefi-firmware ###

### BEGIN /etc/grub.d/41_custom_proxy ###
menuentry "LMDE 3.19" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-3.19-5.dmz.1-liquorix-amd64--d931a8ba-104c-41f2-8d57-53fc7e353b7f' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  d931a8ba-104c-41f2-8d57-53fc7e353b7f
		else
		  search --no-floppy --fs-uuid --set=root d931a8ba-104c-41f2-8d57-53fc7e353b7f
		fi
		linux /boot/vmlinuz-3.19-5.dmz.1-liquorix-amd64 root=UUID=d931a8ba-104c-41f2-8d57-53fc7e353b7f ro vga=792 quiet splash nomodeset nouveau.modeset=0
		initrd /boot/initrd.img-3.19-5.dmz.1-liquorix-amd64
}
### END /etc/grub.d/41_custom_proxy ###

### BEGIN /etc/grub.d/42_linux_proxy ###
menuentry "Sparky 4.1" --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.1-1.dmz.1-liquorix-amd64-advanced-27e2b91a-7bed-4a1e-a997-95cfe64af7dd' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos2'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos2 --hint-efi=hd0,msdos2 --hint-baremetal=ahci0,msdos2  27e2b91a-7bed-4a1e-a997-95cfe64af7dd
		else
		  search --no-floppy --fs-uuid --set=root 27e2b91a-7bed-4a1e-a997-95cfe64af7dd
		fi
		echo	'Loading Linux 4.1-1.dmz.1-liquorix-amd64 ...'
		linux	/boot/vmlinuz-4.1-1.dmz.1-liquorix-amd64 root=UUID=27e2b91a-7bed-4a1e-a997-95cfe64af7dd ro vga=792 quiet splash nomodeset nouveau.modeset=0
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-4.1-1.dmz.1-liquorix-amd64
}
### END /etc/grub.d/42_linux_proxy ###

### BEGIN /etc/grub.d/43_os-prober_proxy ###
menuentry "Solus 4.1" --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/kernel-4.1.1--60ef169c-d43d-4312-855e-b56eaec7cc42' {
		insmod part_msdos
		insmod ext2
		set root='hd0,msdos3'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos3 --hint-efi=hd0,msdos3 --hint-baremetal=ahci0,msdos3  60ef169c-d43d-4312-855e-b56eaec7cc42
		else
		  search --no-floppy --fs-uuid --set=root 60ef169c-d43d-4312-855e-b56eaec7cc42
		fi
		linux /boot/kernel-4.1.1 root=UUID=60ef169c-d43d-4312-855e-b56eaec7cc42 ro quiet splash
		initrd /boot/initramfs-4.1.1.img
}
### END /etc/grub.d/43_os-prober_proxy ###

/etc/default/grub
(using grub-customizer)

Code: Select all

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT="Sparky 4.1"
GRUB_TIMEOUT="3"
GRUB_DISTRIBUTOR="`lsb_release -i -s 2> /dev/null || echo Debian`"
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nomodeset nouveau.modeset=0"
GRUB_CMDLINE_LINUX="vga=792"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE="1024x768"

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

GRUB_SAVEDEFAULT="false"
export GRUB_MENU_PICTURE="/home/gene/Pictures/dark-grunge.jpg"
export GRUB_COLOR_NORMAL="dark-gray/black"
export GRUB_COLOR_HIGHLIGHT="light-cyan/black"
Let me know if you need something else... ;)
Image
GeneC
Solus 3 ~(˘▾˘~)

User avatar
ikey
Project Founder
Posts: 1581
Joined: Sun Jul 27, 2014 10:42 pm
Location: Ireland
Contact: Website

Re: Our first unstable daily ISO!

Thu Jul 09, 2015 12:15 pm

Cheers GeneC :D So yeah, it was the initrd line.. :]
Image

wongs
Posts: 179
Joined: Tue Oct 28, 2014 8:28 am

Re: Our first unstable daily ISO!

Thu Jul 09, 2015 5:25 pm

vriales wrote:I've tried to run every ISO you guys have had and not one has worked. Don't know if it's my machine, but it's relatively a fast machine with middle to high end components. Runs every other Linux distro I've tried to run on it. For some reason it won't run Evolve/Solus. Now I'm not using the Solus GRUB and I have no intention of using Solus GRUB, but every other distro I install runs fine without installing the GRUB and using Linux Mint 17.2 GrUB.
You can choose not to install Solus' grub and keep using your main distro's grub. Coincidentally I also boot from Mint 17's grub .

BUT... all other distros's grub cannot properly recognise Solus yet. The initrd line is always missing as detected by that other distro's grub/os-prober.

It is not the only distro with that issue. Manjaro (and likely Arch), due to them having extra boot instructions about Intel microcode, does have the initrd line, but only the microcode command is picked up by other distros; the initramfs bit is missing.

Solution - if you don't use Solus' grub like me, unfortunately you must edit Mint's grub.cfg file (as adminstrator) whenever Solus has a kernel update. But trust me, once you edit the file appropriately, Solus will boot and show up nicely.


For me, I don't edit the grub.cfg file or use grub-customizer because these require you to update grub or to save the changed settings in grub customizer. Takes more time. Also, I have various distros, so the Mint grub.cfg file is long.

I created a new file called custom.cfg in the /boot/grub folder (same folder as grub.cfg file). It should have the following contents, except of course your root drive and partition number, UUID of partition, and the kernel/initramfs number, will be different. You can copy the Solus entry from your Mint grub.cfg file and just edit appropriately to add the initrd line.

Once you save it amd make it executable, and later whenever you have to edit it to change kernel numbers, you don't have to update grub in Mint. Just reboot and you'll see the custom.cfg entry at the bottom of all the normal grub.cfg entries.

Code: Select all

#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
menuentry "solusproject"{
	insmod part_gpt
	insmod ext2
	set root='hd1,gpt7'
	search --no-floppy --fs-uuid --set=root ac42c705-41bf-4b9a-a0fb-e2a1fef74b21
	linux /boot/kernel-4.1.1 root=UUID=ac42c705-41bf-4b9a-a0fb-e2a1fef74b21 
	initrd /boot/initramfs-4.1.1.img
}

If you formatted the drive with the older style partition table instead of gpt, the above "insmod part_gpt" portions should read like this:

Code: Select all

insmod part_msdos 
	insmod ext2
	set root='hd1,msdos8'
Again, drive and partition number will vary.

Return to “Announcements”