[Fixed] What happened to boot-isos?

Here is the place were the team and the community projects meet together. Help us to develop SolydXK projects or contribute your ideas for future releases.
JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

[Fixed] What happened to boot-isos?

Postby JSladek » 03 Jul 2015 22:22

I saw this in a discussion of "nightly-builds" perhaps last fall and it's a handy addition. It hasn't worked for quite some time. I can still generate the grub link, but when I try to run it, I get "no such partition", "disk 'loop' not found" & "you need to load the kernel first" errors. I believe that it was being considered as part of a maintenance package for SolydXK. Just curious ...

User avatar
MAYBL8
Posts: 1487
Joined: 10 Mar 2013 18:41
Location: Maryland Heights, MO USA
Contact:

Re: What happened to boot-isos?

Postby MAYBL8 » 03 Jul 2015 23:14

This might be what you are looking for:
http://forums.solydxk.com/viewtopic.php ... air#p32827


JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: What happened to boot-isos?

Postby JSladek » 04 Jul 2015 01:37

No - this was not a grub repair issue. This was placing a Solydxk iso distro file in a subdirectory entitled boot-isos. On grub-update, a line item is placed in the Advanced Options of the grub boot menu for "Live SolydK.iso". Selecting that item would boot into the Live "disk". It used to work, but no longer.

User avatar
MAYBL8
Posts: 1487
Joined: 10 Mar 2013 18:41
Location: Maryland Heights, MO USA
Contact:

Re: What happened to boot-isos?

Postby MAYBL8 » 04 Jul 2015 03:00

Think I found the link but it looks like more info is needed:
http://forums.solydxk.com/viewtopic.php ... sos#p50118


User avatar
grizzler
Posts: 2171
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: What happened to boot-isos?

Postby grizzler » 04 Jul 2015 08:06

JSladek wrote:I can still generate the grub link, but when I try to run it, I get "no such partition", "disk 'loop' not found" & "you need to load the kernel first" errors.
In that case we need to take a look at the grub configuration file (/boot/grub/grub.cfg), since that obviously contains broken entries. Could you post it, please?
Also, for reference a listing of the partition/directory with the ISOs could be useful.
Frank

SolydX EE 64 - tracking Debian Testing

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: What happened to boot-isos?

Postby JSladek » 07 Jul 2015 22:39

Sorry, Grizzler - didn't get any trigger message that there was a response to my last note.

Not sure what you mean by "listing of the partition/directory". It is the Temp partition that has other files/directories for a project that I'll be working on next week. FSTAB entry is: # /dev/sda7 UUID=bd8d6d32-4503-4611-bdf4-47574dbc2149 /home/jim/Temp ext4 rw,noatime,errors=remount-ro 0 0

After the grub.cfg listing, I put the results from ls -l /home/jim/Temp - maybe that is what you are looking for?

BTW - some time back I also tried other .iso files (Kubuntu, I think) and I got the same errors. At the time, I just thought there was something peculiar about the .iso file. But the SolydK iso was working then.

grub.cfg follows:

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="0"
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='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
else
  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
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=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
else
  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
fi
insmod png
if background_image /usr/share/images/desktop-base/lines-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
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 ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'SolydK 64-bit GNU/Linux' --class solydk --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8a8294d0-7025-4a66-bb3b-781e695c211a' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
	else
	  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
	fi
	echo	'Loading Linux 3.16.0-4-amd64 ...'
	linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=8a8294d0-7025-4a66-bb3b-781e695c211a ro  quiet init=/lib/systemd/systemd nosplash
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for SolydK 64-bit GNU/Linux' $menuentry_id_option 'gnulinux-advanced-8a8294d0-7025-4a66-bb3b-781e695c211a' {
	menuentry 'SolydK 64-bit GNU/Linux, with Linux 3.16.0-4-amd64' --class solydk --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-8a8294d0-7025-4a66-bb3b-781e695c211a' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
		else
		  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=8a8294d0-7025-4a66-bb3b-781e695c211a ro  quiet init=/lib/systemd/systemd nosplash
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-4-amd64
	}
	menuentry 'SolydK 64-bit GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class solydk --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-8a8294d0-7025-4a66-bb3b-781e695c211a' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
		else
		  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=8a8294d0-7025-4a66-bb3b-781e695c211a ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-4-amd64
	}
	menuentry 'SolydK 64-bit GNU/Linux, with Linux 3.16-2-amd64' --class solydk --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16-2-amd64-advanced-8a8294d0-7025-4a66-bb3b-781e695c211a' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
		else
		  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
		fi
		echo	'Loading Linux 3.16-2-amd64 ...'
		linux	/boot/vmlinuz-3.16-2-amd64 root=UUID=8a8294d0-7025-4a66-bb3b-781e695c211a ro  quiet init=/lib/systemd/systemd nosplash
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16-2-amd64
	}
	menuentry 'SolydK 64-bit GNU/Linux, with Linux 3.16-2-amd64 (recovery mode)' --class solydk --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16-2-amd64-recovery-8a8294d0-7025-4a66-bb3b-781e695c211a' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
		else
		  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
		fi
		echo	'Loading Linux 3.16-2-amd64 ...'
		linux	/boot/vmlinuz-3.16-2-amd64 root=UUID=8a8294d0-7025-4a66-bb3b-781e695c211a ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16-2-amd64
	}
 	menuentry ' ' {
 		true
 	}
 	menuentry 'Live: solydk64_201506.iso' {
 		loopback loop (hd0,msdos7)/boot-isos/solydk64_201506.iso
 		linux (loop)/live/vmlinuz boot=live findiso=/boot-isos/solydk64_201506.iso config noswap quiet init=/lib/systemd/systemd nosplash
 		initrd (loop)/live/initrd.img
 	}
}

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

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Microsoft Windows XP Home Edition (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-34ACEC00ACEBBB0E' {
	insmod part_msdos
	insmod ntfs
	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  34ACEC00ACEBBB0E
	else
	  search --no-floppy --fs-uuid --set=root 34ACEC00ACEBBB0E
	fi
	parttool ${root} hidden-
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

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

### BEGIN /etc/grub.d/35_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
	else
	  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
	fi
	linux16	/boot/memtest86+.bin
}
### END /etc/grub.d/35_memtest86+ ###

### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_grub-imageboot ###
menuentry "Bootable ISO Image: Image_For_Linux" {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
	else
	  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
	fi
	linux16 /boot/memdisk iso
	initrd16 /boot/images/Image_For_Linux.iso
}
menuentry "Bootable Floppy Image: Spinrite" {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
	else
	  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
	fi
	linux16 /boot/memdisk rawimg
	initrd16 /boot/images/Spinrite.img
}
### END /etc/grub.d/60_grub-imageboot ###
  • jim@jim ~ $ ls -l /home/jim/Temp
    total 6860760
    drwxr-xr-x 2 jim jim 4096 Jul 3 21:58 boot-isos
    -rw-r--r-- 1 jim jim 133050 May 19 2014 Cookie&Luna.jpg
    drwxr-xr-x 2 jim jim 4096 Jun 9 00:26 crontabs
    drwxr-xr-x 6 jim jim 4096 Jun 9 00:14 dot_luckyBackup
    -rw-r--r-- 1 jim jim 1632927744 Jun 5 23:50 linuxmint-17.1-mate-64bit.iso
    drwx------ 2 root root 4096 May 25 18:19 lost+found
    -r-------- 1 jim jim 1466368 May 12 14:28 SANDY_EFI.tbi
    -r-------- 1 jim jim 2247389184 May 12 14:37 SANDY_HOME.tbi
    -r-------- 1 jim jim 3142250496 May 12 14:32 SANDY_SYSTEM.tbi
    -rw-r--r-- 1 jim jim 32061 Jun 21 18:18 SendToMail.odt
    -rw-r--r-- 1 jim jim 759622 May 13 08:23 snapshot2.png
    -rw-r--r-- 1 jim jim 57536 May 13 08:26 snapshot3.png
    -rw-r--r-- 1 jim jim 54403 May 13 08:27 snapshot4.png
    -rw-r--r-- 1 jim jim 62738 May 13 08:28 snapshot5.png
    -rw-r--r-- 1 jim jim 15823 May 13 08:28 snapshot6.png
    -rw-r--r-- 1 jim jim 59459 Jun 8 20:04 solydk1.png
    -rw-r--r-- 1 jim jim 64135 Jun 8 20:04 solydk2.png
    -rw-r--r-- 1 jim jim 67638 Jun 8 20:05 solydk3.png
    -rw-r--r-- 1 jim jim 27773 Jun 8 20:06 solydk4.png

User avatar
Arjen Balfoort
Site Admin
Posts: 9282
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: What happened to boot-isos?

Postby Arjen Balfoort » 08 Jul 2015 06:50

boot-isos needs to be the first directory on a partition.

I have my /home on a separate partition (a different disk for that matter, but that doesn't matter). I created /home/boot-isos/ and placed the ISOs there and after a update-grub they were listed in grub.cfg. You can also create a partition solely for this purpose. A 2G partition should do fine. Create the boot-isos directory and copy the ISO there. update-grub should list the ISO in grub.cfg.


SolydXK needs you!
Development | Testing | Translations

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: What happened to boot-isos?

Postby JSladek » 08 Jul 2015 10:58

I thought that it was the first directory - I believe I put the directory on the drive before adding all the other stuff. Could be wrong - memory isn't what it used to be. But grub-update is finding it .... it's listed at the end of grub.d/10_linux in grub.cfg and from the script, it looks like it should work. What's strange is that this configuration did work until I moved things around to accomodate an SSD. I have a busy sked for a day or two, but I suspect my best bet is to put a separate partition only for boot-iso at the end of the SSD.

Am I correct that this boot-isos scheme only works with SolydXK files? I tried this with a couple of other distros, but they errored out.

User avatar
Arjen Balfoort
Site Admin
Posts: 9282
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: What happened to boot-isos?

Postby Arjen Balfoort » 08 Jul 2015 11:33

JSladek wrote:Am I correct that this boot-isos scheme only works with SolydXK files? I tried this with a couple of other distros, but they errored out.
Indeed, I created this for SolydXK and haven't tested with other distributions although I think the Clonezilla live ISO should also work.


SolydXK needs you!
Development | Testing | Translations

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: What happened to boot-isos?

Postby JSladek » 08 Jul 2015 20:54

It is still not working. I had a chance today to set up a new partition on the SDD and I ran update-grub with both mounted and unmounted drive - the line in grub.cfg looks the same in either case, but the iso does not run - same errors.
  • jim@jim ~ $ ls -l /home/jim/ISO
    total 4
    drwxr-xr-x 2 jim jim 4096 Jul 8 20:27 boot-isos

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="0"
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='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
else
  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
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=-1
else
  if [ x$feature_timeout_style = xy ] ; then
    set timeout_style=menu
    set timeout=5
  # Fallback normal timeout code in case the timeout_style feature is
  # unavailable.
  else
    set timeout=5
  fi
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='hd1,msdos1'
if [ x$feature_platform_search_hint = xy ]; then
  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
else
  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
fi
insmod png
if background_image /usr/share/images/desktop-base/lines-grub.png; then
  set color_normal=white/black
  set color_highlight=black/white
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 ###
function gfxmode {
	set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'SolydK 8 64-bit GNU/Linux' --class solydk --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8a8294d0-7025-4a66-bb3b-781e695c211a' {
	load_video
	insmod gzio
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
	else
	  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
	fi
	echo	'Loading Linux 3.16.0-4-amd64 ...'
	linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=8a8294d0-7025-4a66-bb3b-781e695c211a ro  quiet init=/lib/systemd/systemd nosplash
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.16.0-4-amd64
}
submenu 'Advanced options for SolydK 8 64-bit GNU/Linux' $menuentry_id_option 'gnulinux-advanced-8a8294d0-7025-4a66-bb3b-781e695c211a' {
	menuentry 'SolydK 8 64-bit GNU/Linux, with Linux 3.16.0-4-amd64' --class solydk --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-advanced-8a8294d0-7025-4a66-bb3b-781e695c211a' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
		else
		  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=8a8294d0-7025-4a66-bb3b-781e695c211a ro  quiet init=/lib/systemd/systemd nosplash
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-4-amd64
	}
	menuentry 'SolydK 8 64-bit GNU/Linux, with Linux 3.16.0-4-amd64 (recovery mode)' --class solydk --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16.0-4-amd64-recovery-8a8294d0-7025-4a66-bb3b-781e695c211a' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
		else
		  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
		fi
		echo	'Loading Linux 3.16.0-4-amd64 ...'
		linux	/boot/vmlinuz-3.16.0-4-amd64 root=UUID=8a8294d0-7025-4a66-bb3b-781e695c211a ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16.0-4-amd64
	}
	menuentry 'SolydK 8 64-bit GNU/Linux, with Linux 3.16-2-amd64' --class solydk --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16-2-amd64-advanced-8a8294d0-7025-4a66-bb3b-781e695c211a' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
		else
		  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
		fi
		echo	'Loading Linux 3.16-2-amd64 ...'
		linux	/boot/vmlinuz-3.16-2-amd64 root=UUID=8a8294d0-7025-4a66-bb3b-781e695c211a ro  quiet init=/lib/systemd/systemd nosplash
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16-2-amd64
	}
	menuentry 'SolydK 8 64-bit GNU/Linux, with Linux 3.16-2-amd64 (recovery mode)' --class solydk --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.16-2-amd64-recovery-8a8294d0-7025-4a66-bb3b-781e695c211a' {
		load_video
		insmod gzio
		insmod part_msdos
		insmod ext2
		set root='hd1,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
		else
		  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
		fi
		echo	'Loading Linux 3.16-2-amd64 ...'
		linux	/boot/vmlinuz-3.16-2-amd64 root=UUID=8a8294d0-7025-4a66-bb3b-781e695c211a ro single 
		echo	'Loading initial ramdisk ...'
		initrd	/boot/initrd.img-3.16-2-amd64
	}
 	menuentry ' ' {
 		true
 	}
 	menuentry 'Live: solydk64_201506.iso' {
 		loopback loop (hd1,msdos4)/boot-isos/solydk64_201506.iso
 		linux (loop)/live/vmlinuz boot=live findiso=/boot-isos/solydk64_201506.iso config noswap quiet init=/lib/systemd/systemd nosplash
 		initrd (loop)/live/initrd.img
 	}
}

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

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry 'Microsoft Windows XP Home Edition (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-34ACEC00ACEBBB0E' {
	insmod part_msdos
	insmod ntfs
	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  34ACEC00ACEBBB0E
	else
	  search --no-floppy --fs-uuid --set=root 34ACEC00ACEBBB0E
	fi
	parttool ${root} hidden-
	drivemap -s (hd0) ${root}
	chainloader +1
}
### END /etc/grub.d/30_os-prober ###

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

### BEGIN /etc/grub.d/35_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
	else
	  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
	fi
	linux16	/boot/memtest86+.bin
}
### END /etc/grub.d/35_memtest86+ ###

### BEGIN /etc/grub.d/40_custom ###
# 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.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

### BEGIN /etc/grub.d/60_grub-imageboot ###
menuentry "Bootable ISO Image: Image_For_Linux" {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
	else
	  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
	fi
	linux16 /boot/memdisk iso
	initrd16 /boot/images/Image_For_Linux.iso
}
menuentry "Bootable Floppy Image: Spinrite" {
	insmod part_msdos
	insmod ext2
	set root='hd1,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  8a8294d0-7025-4a66-bb3b-781e695c211a
	else
	  search --no-floppy --fs-uuid --set=root 8a8294d0-7025-4a66-bb3b-781e695c211a
	fi
	linux16 /boot/memdisk rawimg
	initrd16 /boot/images/Spinrite.img
}
### END /etc/grub.d/60_grub-imageboot ###
Very strange ......

User avatar
Arjen Balfoort
Site Admin
Posts: 9282
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: What happened to boot-isos?

Postby Arjen Balfoort » 09 Jul 2015 05:09

I seem to have the same problem on my system with SSD which didn't have that problem before.
The laptop with a regular HD doesn't have the problem.

When I booted into grub, I selected the ISO entry and hit 'c' to enter grub-cli and ran ls.
It returned one (hd0) and several (hd1,msdos#).
Note the "hd1".

I escaped the cli and hit 'e' to edit the grub menu entry for the ISO and replaced "hd0" with "hd1".
Hitting F10 the ISO started just fine.

It seems that, with an SSD, grub somehow swaps hd0 with hd1 but I don't know why. I also don't understand that all other menu entries in grub.cfg use hd0 as root and still boot correctly. Only the loopback ISOs don't.


SolydXK needs you!
Development | Testing | Translations

User avatar
grizzler
Posts: 2171
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: What happened to boot-isos?

Postby grizzler » 09 Jul 2015 06:06

That's probably because the loopback entries don't "search". In ordinary entries, the actual root is "searched" by UUID.

I don't understand the hd0/hd1 bit either, though.
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
Arjen Balfoort
Site Admin
Posts: 9282
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: What happened to boot-isos?

Postby Arjen Balfoort » 09 Jul 2015 09:58

I've been experimenting with this.

Open /etc/solydxk/boot-isos.sh as root and replace code with this:

Code: Select all

#! /bin/bash

# boot-isos.sh  -  2.1.0  -  2015-02-11

ISODIR='/boot-isos'

function check_partition {
	DSK=$1		# Partition (e.g. /dev/sda1)
	MNT=$2		# Current mount point or empty if not mounted

	# Get the third character of the partition
	CHR=${DSK:7:1}
	# Get the last characters of the partition
	PRT=${DSK:8}

	# Mount the partition if it is not mounted already
	if [ ! "$MNT" ]; then
		MNT="/mnt/$CHR$PRT"
		#echo "Mount $DSK on $MNT"
		mkdir -p $MNT
		mount $DSK $MNT
	fi

	# SolydXK - add live iso menu entries if isos were found in given partition
	ISOPATH="$MNT$ISODIR"
	#echo "Check for isos in $ISOPATH"
	if [ "$(ls -A $ISOPATH/*.iso 2>/dev/null)" ]; then
		# Get the partition scheme (mbr or gpt)
		UPS=$(udevadm info --query=property --name=$DSK | sed -n 's/UDISKS_PARTITION_SCHEME=\(.*\)/\1/p')
		[ "$UPS" == mbr ] && UPS=msdos
		# Get boot parameters
		BOOTPRMS=""
		if [ -f /etc/default/grub ]; then
			. /etc/default/grub
			BOOTPRMS="$GRUB_CMDLINE_LINUX_DEFAULT"
		fi
		# Get the UUID of the partition
		UUID=$(grub-probe --target=fs_uuid --device $DSK)
		# Add an empty line
		cat <<-EOT
		 	menuentry ' ' {
		 		true
		 	}
		EOT
		# Loop through the ISOs
		for ISO in $ISOPATH/*.iso; do
			ISONAME=$(basename $ISO)
			cat <<-EOT
			 	menuentry 'Live: $ISONAME' {
			 		search --no-floppy --fs-uuid --set=isopart $UUID
			 		loopback loop (\$isopart)$ISODIR/$ISONAME
			 		linux (loop)/live/vmlinuz boot=live findiso=$ISODIR/$ISONAME noprompt noeject noswap config $BOOTPRMS
			 		initrd (loop)/live/initrd.img
			 	}
			EOT
		done
	fi

	# Unmount the device if it was mounted by this script
	if [ ! "$2" ]; then
		umount $MNT 2>/dev/null
		rmdir $MNT
	fi
}

# Search for isos on all available partitions
while read -r BLK; do
	NM=$(echo $BLK | awk '{print $1}')
	TP=$(echo $BLK | awk '{print $2}')
	FS=$(echo $BLK | awk '{print $3}')
	MP=$(echo $BLK | awk '{print $4}')
	# only look at partitions with a file system (i.e. ignore extended and
	# unformatted (BIOS boot) partitions) which are not root or swap (can't use
	# MP for that, as that might miss swap partitions on other disks)
	if [ $FS ] && [ $FS != swap ] && [ "$TP" == "part" ] && [ "$MP" != "/" ]; then
		check_partition "$NM" "$MP"
	fi
done < <(lsblk -lpno NAME,TYPE,FSTYPE,MOUNTPOINT)	# will only work for root!
After an update-grub the grub.cfg should now have an entry like this:

Code: Select all

 	menuentry 'Live: solydx_8_64_201507.iso' {
 		search --no-floppy --fs-uuid --set=isopart d34cada5-1e76-4744-a0ab-ef6bf6517be1
 		loopback loop ($isopart)/boot-isos/solydx_8_64_201507.iso
 		linux (loop)/live/vmlinuz boot=live findiso=/boot-isos/solydx_8_64_201507.iso noprompt noeject noswap config quiet splash rootfstype=ext4 elevator=deadline
 		initrd (loop)/live/initrd.img
 	}
Your boot parameters might differ, though.

Does this work for you?


SolydXK needs you!
Development | Testing | Translations

User avatar
grizzler
Posts: 2171
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: What happened to boot-isos?

Postby grizzler » 09 Jul 2015 11:11

Schoelje wrote:I've been experimenting with this.
So have I. :lol:

I've come up with something similar, but I found I needed to insmod the relevant part module and the loopback module. I'm still experimenting, but I'll probably have a replacement boot-isos.sh later today.
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
grizzler
Posts: 2171
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: What happened to boot-isos?

Postby grizzler » 09 Jul 2015 11:24

Here's a new boot-isos.sh, which includes code to add the UUID of the partition. It works for me, but I'm slightly concerned about the bit that determines the partitioning scheme. It seems udevadm doesn't always return the same set of values. I had to add another line to catch the missing UDISKS_PARTITION_SCHEME and now I wonder how reliable looking for the alternative ID_PART_ENTRY_SCHEME is...

Edit
Argh! Made an error with the $MNT variable. Don't use this one. New one will be available asap.

Right. This one should be ok.
Attachments
boot-isos.sh.tar.gz
boot-isos.sh 2.2.1
(1.44 KiB) Downloaded 67 times
Frank

SolydX EE 64 - tracking Debian Testing

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: What happened to boot-isos?

Postby JSladek » 09 Jul 2015 11:39

Unless I'm missing something in the conversations, I don't see the drive designations as being an issue. My SDD is actually /dev/sdb (hd1) and my harddrive with WinXP is /dev/sda (hd0).

User avatar
Arjen Balfoort
Site Admin
Posts: 9282
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: What happened to boot-isos?

Postby Arjen Balfoort » 09 Jul 2015 12:00

@Grizzler

It seems I didn't have the need for:

Code: Select all

			 		insmod part_$UPS
			 		insmod loopback
			 		set root=(hd$CHRNR,$UPS$PRT)
because I use the set value for $isopart in loopback loop...it seems to work.

My adapted boot-isos.sh (with some of your code):

Code: Select all

#! /bin/bash

# boot-isos.sh  -  2.1.0  -  2015-02-11

ISODIR='/boot-isos'

function check_partition {
	DSK=$1		# Partition (e.g. /dev/sda1)
	UUID=$2		# UUID of this partition
	MNT=$3		# Current mount point or empty if not mounted

	# Get the third character of the partition
	CHR=${DSK:7:1}
	# Get the last characters of the partition
	PRT=${DSK:8}

	# Mount the partition if it is not mounted already
	if [ ! "$MNT" ]; then
		MNT="/mnt/$CHR$PRT"
		#echo "Mount $DSK on $MNT"
		mkdir -p $MNT
		mount $DSK $MNT
	fi

	# SolydXK - add live iso menu entries if isos were found in given partition
	ISOPATH="$MNT$ISODIR"
	#echo "Check for isos in $ISOPATH"
	if [ "$(ls -A $ISOPATH/*.iso 2>/dev/null)" ]; then
		# Get the partition scheme (mbr or gpt)
		UPS=$(udevadm info --query=property --name=$DSK | sed -n 's/UDISKS_PARTITION_SCHEME=\(.*\)/\1/p')
		[ "$UPS" ] || UPS=$(udevadm info --query=property --name=$DSK | sed -n 's/ID_PART_ENTRY_SCHEME=\(.*\)/\1/p')
		[ "$UPS" == mbr ] && UPS=msdos
		# Get boot parameters
		BOOTPRMS=""
		if [ -f /etc/default/grub ]; then
			. /etc/default/grub
			BOOTPRMS="$GRUB_CMDLINE_LINUX_DEFAULT"
		fi
		# Add an empty line
		cat <<-EOT
		 	menuentry ' ' {
		 		true
		 	}
		EOT
		# Loop through the ISOs
		for ISO in $ISOPATH/*.iso; do
			ISONAME=$(basename $ISO)
			cat <<-EOT
			 	menuentry 'Live: $ISONAME' {
			 		search --no-floppy --fs-uuid --set=isopart $UUID
			 		loopback loop (\$isopart)$ISODIR/$ISONAME
			 		linux (loop)/live/vmlinuz boot=live findiso=$ISODIR/$ISONAME noprompt noeject noswap config $BOOTPRMS
			 		initrd (loop)/live/initrd.img
			 	}
			EOT
		done
	fi

	# Unmount the device if it was mounted by this script
	if [ ! "$2" ]; then
		umount $MNT 2>/dev/null
		rmdir $MNT
	fi
}

# Search for isos on all available partitions
while read -r BLK; do
	NM=$(echo $BLK | awk '{print $1}')
	TP=$(echo $BLK | awk '{print $2}')
	FS=$(echo $BLK | awk '{print $3}')
	ID=$(echo $BLK | awk '{print $4}')
	MP=$(echo $BLK | awk '{print $5}')
	# only look at partitions with a file system (i.e. ignore extended and
	# unformatted (BIOS boot) partitions) which are not root or swap (can't use
	# MP for that, as that might miss swap partitions on other disks)
	if [ $FS ] && [ $FS != swap ] && [ "$TP" == "part" ] && [ "$MP" != "/" ]; then
		check_partition "$NM" "$ID" "$MP"
	fi
done < <(lsblk -lpno NAME,TYPE,FSTYPE,UUID,MOUNTPOINT)	# will only work for root!


SolydXK needs you!
Development | Testing | Translations

User avatar
grizzler
Posts: 2171
Joined: 04 Mar 2013 15:45
Location: The Hague, NL

Re: What happened to boot-isos?

Postby grizzler » 09 Jul 2015 12:05

Careful! You need to change the bit under "# Unmount the device if it was mounted by this script": "$2" is now "$3".

I initially tried to run something like this without the insmods but that failed...
Frank

SolydX EE 64 - tracking Debian Testing

User avatar
Arjen Balfoort
Site Admin
Posts: 9282
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: What happened to boot-isos?

Postby Arjen Balfoort » 09 Jul 2015 12:13

Check!
It's now:

Code: Select all

#! /bin/bash

# boot-isos.sh  - 2015-07-09

ISODIR='/boot-isos'

function check_partition {
	DSK=$1		# Partition (e.g. /dev/sda1)
	UUID=$2		# UUID of this partition
	MNT=$3		# Current mount point or empty if not mounted

	# Get the third character of the partition
	CHR=${DSK:7:1}
	# Get the last characters of the partition
	PRT=${DSK:8}

	# Mount the partition if it is not mounted already
	if [ ! "$MNT" ]; then
		MNT="/mnt/$CHR$PRT"
		#echo "Mount $DSK on $MNT"
		mkdir -p $MNT
		mount $DSK $MNT
	fi

	# SolydXK - add live iso menu entries if isos were found in given partition
	ISOPATH="$MNT$ISODIR"
	#echo "Check for isos in $ISOPATH"
	if [ "$(ls -A $ISOPATH/*.iso 2>/dev/null)" ]; then
		# Get the partition scheme (mbr or gpt)
		UPS=$(udevadm info --query=property --name=$DSK | sed -n 's/UDISKS_PARTITION_SCHEME=\(.*\)/\1/p')
		[ "$UPS" ] || UPS=$(udevadm info --query=property --name=$DSK | sed -n 's/ID_PART_ENTRY_SCHEME=\(.*\)/\1/p')
		[ "$UPS" == mbr ] && UPS=msdos
		# Get boot parameters
		BOOTPRMS=""
		if [ -f /etc/default/grub ]; then
			. /etc/default/grub
			BOOTPRMS="$GRUB_CMDLINE_LINUX_DEFAULT"
		fi
		# Add an empty line
		cat <<-EOT
		 	menuentry ' ' {
		 		true
		 	}
		EOT
		# Loop through the ISOs
		for ISO in $ISOPATH/*.iso; do
			ISONAME=$(basename $ISO)
			cat <<-EOT
			 	menuentry 'Live: $ISONAME' {
			 		insmod part_$UPS
			 		insmod loopback
			 		search --no-floppy --fs-uuid --set=isopart $UUID
			 		loopback loop (\$isopart)$ISODIR/$ISONAME
			 		linux (loop)/live/vmlinuz boot=live findiso=$ISODIR/$ISONAME noprompt noeject noswap config $BOOTPRMS
			 		initrd (loop)/live/initrd.img
			 	}
			EOT
		done
	fi

	# Unmount the device if it was mounted by this script
	if [ ! "$3" ]; then
		umount $MNT 2>/dev/null
		rmdir $MNT
	fi
}

# Search for isos on all available partitions
while read -r BLK; do
	NM=$(echo $BLK | awk '{print $1}')
	TP=$(echo $BLK | awk '{print $2}')
	FS=$(echo $BLK | awk '{print $3}')
	ID=$(echo $BLK | awk '{print $4}')
	MP=$(echo $BLK | awk '{print $5}')
	# only look at partitions with a file system (i.e. ignore extended and
	# unformatted (BIOS boot) partitions) which are not root or swap (can't use
	# MP for that, as that might miss swap partitions on other disks)
	if [ $FS ] && [ $FS != swap ] && [ "$TP" == "part" ] && [ "$MP" != "/" ]; then
		check_partition "$NM" "$ID" "$MP"
	fi
done < <(lsblk -lpno NAME,TYPE,FSTYPE,UUID,MOUNTPOINT)	# will only work for root!
which results in a menu entry like:

Code: Select all

 	menuentry 'Live: solydx_8_64_201507.iso' {
 		insmod part_msdos
 		insmod loopback
 		search --no-floppy --fs-uuid --set=isopart d34cada5-1e76-4744-a0ab-ef6bf6517be1
 		loopback loop ($isopart)/boot-isos/solydx_8_64_201507.iso
 		linux (loop)/live/vmlinuz boot=live findiso=/boot-isos/solydx_8_64_201507.iso noprompt noeject noswap config quiet splash rootfstype=ext4 elevator=deadline
 		initrd (loop)/live/initrd.img
 	}
Will give it a try for a few days and let's see what others might think.


SolydXK needs you!
Development | Testing | Translations

JSladek
Posts: 142
Joined: 19 Jun 2014 23:15
Location: Suffolk VA

Re: What happened to boot-isos?

Postby JSladek » 09 Jul 2015 13:07

I just tried it and I get error:

/etc/solydxk/grub/boot-isos.sh: line 81: warning: here-document at line 40 delimited by end-of-file (wanted `EOT')
/etc/solydxk/grub/boot-isos.sh: line 82: syntax error: unexpected end of file


Return to “Suggestions & ideas / Open Projects”

Who is online

Users browsing this forum: No registered users and 1 guest