Limine: can it find .iso?

Moderator: BarryK

Post Reply
Thanos
Posts: 76
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 2 times
Been thanked: 14 times

Limine: can it find .iso?

Post by Thanos »

This is a grub menu entry:

Code: Select all

title slax linux

find  --set-root /boot/slax.iso
map --mem /boot/slax.iso (0xff)
map --hook
chainloader (0xff)

boot

It mean that search boot/slax.iso in ALL partitions of ALL disks, then set the partition as '/' , load the iso file into memory and boot the iso like a real cd.

I think this way is very simple and useful, hope our limine can do this :thumbup2:

BTW, why easyos need the wkg_uuid?
It is only for one partition, after we move the easyos from a partition to another partition , we must edit the limine.cfg file.
Is there a universal way to boot easyos from any partition without uuid?

Thanos
Posts: 76
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 2 times
Been thanked: 14 times

Re: Does limine can do this?

Post by Thanos »

Who can answer this question?

I do not want to change the limine.cfg any way only because the uuid changed.

I am a new user of easyos and my english is poor, so maybe my question is foolish, please forgive me.

williwaw
Posts: 1595
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 145 times
Been thanked: 291 times

Re: Does limine can do this?

Post by williwaw »

Code: Select all

title slax linux

find  --set-root /boot/slax.iso
map --mem /boot/slax.iso (0xff)
map --hook
chainloader (0xff)

boot

is for run in ram without changes, like a live cd?

the best way to do this in easy is to keep
wkg_uuid=ce4ef678-b351-49dd-b07c-5abeb8a0281a wkg_dir=easyos/
in the KERNEL_CMDLINE=
and check the permanent box in menu > shutdown > reboot, lockdown in ram

BTW, why easyos need the wkg_uuid?

the last thing the boot loader does is pass OS specific commands to the booted OS with the KERNEL_CMDLINE=
every distro is different.

perhaps if you describe what it is you want to accomplish as a user, it may be easier to tell you the best way to do it.

Thanos
Posts: 76
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 2 times
Been thanked: 14 times

Re: Does limine can do this?

Post by Thanos »

I want to know that WHY easyos need the wkg_uuid parameter.

All other puppy I have seen don't need this, they can work very well in any partition, even we don't know where is it.

I like limine very much, but it need the search function and map function, so I can't throw grub away.

williwaw
Posts: 1595
Joined: Tue Jul 14, 2020 11:24 pm
Has thanked: 145 times
Been thanked: 291 times

Re: Does limine can do this?

Post by williwaw »

when you boot a puppy, the boot loader finishes its job and puppy starts looking for its savefile or savefolder. the name of the save must be specific enought for puppy to find it. like fossapup64save-xyz

with easy, the save is named /xxx/.session which is kept in the working directory /.xxx, and the working directory needs a different name of what ever you choose, but there are no specific naming requirements of .session to let easy do a search thru different directories or partitions. easy needs to be told where to find its save.

the difference you describe is a difference between easy and puppy. easy is not a puppy. some things are similar, but much is different and different boot loaders wont make up for that.

boot loaders can find specific .iso's like you show for slax.
limine boot loader installer can search for different installs and write different menus

are you trying to boot easy as a live cd or with persistence?
do you need limine installer boot loader installer to find a distro that it presently cannot find?

Thanos
Posts: 76
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 2 times
Been thanked: 14 times

Re: Does limine can do this?

Post by Thanos »

Thanks for you a lot of answers!!!

I just want to write my own limine.cfg without tools, so I am tired of the uuid.

First,I really hope limine can search a file by \path\filename form everywhere without uuid and something like this.

Second,I really hope limine can map a iso file as a cd and boot it.

If limine can search the iso file and boot it as a real cd, then limine will be the best boot loader!

User avatar
bugnaw333
Posts: 232
Joined: Wed Jul 20, 2022 11:04 pm
Location: Cebu, Philippines
Has thanked: 348 times
Been thanked: 33 times

Re: Does limine can do this?

Post by bugnaw333 »

Thanos
Posts: 76
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 2 times
Been thanked: 14 times

Re: Does limine can do this?

Post by Thanos »

I know it,thanks.

Thanos
Posts: 76
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 2 times
Been thanked: 14 times

Re: Does limine can do this?

Post by Thanos »

I know it,thanks.

User avatar
BarryK
Posts: 2273
Joined: Tue Dec 24, 2019 1:04 pm
Has thanked: 93 times
Been thanked: 564 times

Re: Does limine can do this?

Post by BarryK »

wkg_uuid and wkg_dir has nothing to do with Limine.

It is read by the init script in the initrd, so that EasyOS knows where it is installed, that is, where the working-partition is.

If you click on the 'initrd' file in /mnt/wkg in a running EasyOS, it will open up and you can study the 'init' script.

Actually, there are alternatives to wkg_uuid:
wkg_dev, wkg_label

Example:

Code: Select all

# blkid /dev/sdb3
/dev/sdb3: LABEL="bk3" UUID="1c3d6726-2494-4915-bcd8-6370352d6f74" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="a97fc95d-711d-40e0-b431-b41393701cb7"

wkg_dev=sdb3
If /dev/sdb3 is the working-partition, but this is not good for usb drives as the device name can change.

wkg_label=bk3
But you will need to be sure that the filesystem label is unique.

Thanos
Posts: 76
Joined: Wed Mar 29, 2023 6:02 am
Has thanked: 2 times
Been thanked: 14 times

Re: Does limine can do this?

Post by Thanos »

BarryK wrote: Sat Apr 01, 2023 2:54 am

wkg_uuid and wkg_dir has nothing to do with Limine.

It is read by the init script in the initrd, so that EasyOS knows where it is installed, that is, where the working-partition is.

If you click on the 'initrd' file in /mnt/wkg in a running EasyOS, it will open up and you can study the 'init' script.

Actually, there are alternatives to wkg_uuid:
wkg_dev, wkg_label

Example:

Code: Select all

# blkid /dev/sdb3
/dev/sdb3: LABEL="bk3" UUID="1c3d6726-2494-4915-bcd8-6370352d6f74" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="a97fc95d-711d-40e0-b431-b41393701cb7"

wkg_dev=sdb3
If /dev/sdb3 is the working-partition, but this is not good for usb drives as the device name can change.

wkg_label=bk3
But you will need to be sure that the filesystem label is unique.

Thanks a lot!!! You are my idol.

Post Reply

Return to “EasyOS”