[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.
User avatar
Arjen Balfoort
Site Admin
Posts: 9130
Joined: 26 Jan 2013 19:36
Location: Netherlands
Contact:

Re: What happened to boot-isos?

Postby Arjen Balfoort » 09 Jul 2015 13:33

I haven't had problems on either of my two systems. Perhaps not all code was copied correctly.
Here's the attachment. Copy it to /etc/solydxk/grub/boot-isos.sh and make sure it's executable.
Attachments
boot-isos.sh.tar.gz
(1.29 KiB) Downloaded 55 times


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 15:10

Works fine, Arjen. Got a little "scared" when the screen was quiet until the splash screen, but it started, ran programs and exited just like it should. BTW - I find that add-on of yours very useful to try out programs and settings on SolydK without screwing up my regular system. Many thanks to Frank, too.

I'll mark this post "fixed" even though you are going to be watching it for a few days.

Jim

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

Re: [Fixed] What happened to boot-isos?

Postby grizzler » 09 Jul 2015 17:19

Earlier today I mentioned that determining the partition table scheme in boot-isos.sh may not be quite as reliable as I once thought it was (I remember suggesting the udevadm solution). Turns out there's a much simpler way: using parted. This has a print command and a switch to display machine parseable output:

Code: Select all

p07@asus:~$ sudo parted -m /dev/sdb print
BYT;
/dev/sdb:500GB:scsi:512:512:gpt:Seagate Expansion:;
1:1049kB:107GB:107GB:ext4:Linux filesystem:;
2:107GB:108GB:524MB:fat32::boot, esp;
3:108GB:108GB:1049kB:::bios_grub;
4:108GB:109GB:1180MB:linux-swap(v1)::;
5:109GB:122GB:12,9GB:ext4::;
By putting that in a line like this (with the device name in DSK):

Code: Select all

PTS=$(parted -m $DSK print | grep -F $DSK | cut -d: -f6)
you get gpt or msdos in the PTS variable.

I suggest removing the three lines with UPS in favour of the one above and changing the first insmod to

Code: Select all

insmod part_$PTS
Frank

SolydX EE 64 - tracking Debian Testing

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

Re: [Fixed] What happened to boot-isos?

Postby Arjen Balfoort » 09 Jul 2015 17:33

Hmmmm...I get:

Code: Select all

insmod part_loop
Checking:

Code: Select all

sudo parted -m /dev/sda4 print
BYT;
/dev/sda4:207GB:unknown:512:512:loop:Unknown:;
1:0.00B:207GB:207GB:ext4::;


SolydXK needs you!
Development | Testing | Translations

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

Re: [Fixed] What happened to boot-isos?

Postby grizzler » 09 Jul 2015 17:38

Sorry, I missed a final edit to that line. :?

It should be:

Code: Select all

PTS=$(parted -m ${DSK:0:8} print | grep -F ${DSK:0:8} | cut -d: -f6)
Forgot DSK includes the partition number... :roll:
Frank

SolydX EE 64 - tracking Debian Testing

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

Re: [Fixed] What happened to boot-isos?

Postby Arjen Balfoort » 09 Jul 2015 18:34

I'll check it out tomorrow.


SolydXK needs you!
Development | Testing | Translations

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

Re: [Fixed] What happened to boot-isos?

Postby JSladek » 10 Jul 2015 00:48

Works well on this end ....

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

Re: [Fixed] What happened to boot-isos?

Postby Arjen Balfoort » 10 Jul 2015 08:53

boot-isos.sh successfully tested on different systems.
solydxk-system has been updated and is now available in the repository.

Thank you all for your help!


SolydXK needs you!
Development | Testing | Translations

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

Re: [Fixed] What happened to boot-isos?

Postby JSladek » 10 Jul 2015 11:46

As I suspected, there is no need to make sure boot-isos is the first directory of the partition. The only thing that you cannot do is have it below that level in a sub-directory.

A thought last night - the script is now dependent on parted being installed. If parted is removed, grub-update will halt with an error. For people like me that tend to remove applications that "don't appear to be needed", I wonder if a check in the script might be in order to abort if parted does not exist ...

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

Re: [Fixed] What happened to boot-isos?

Postby Arjen Balfoort » 10 Jul 2015 11:56

If you purge parted it will also purge solydxk-system and with that boot-isos.sh.


SolydXK needs you!
Development | Testing | Translations


Return to “Suggestions & ideas / Open Projects”

Who is online

Users browsing this forum: No registered users and 3 guests