[Solved]from= cheatcode (Porteus 2.0 rc1 x86-64)

Please reproduce your error on a second machine before posting, and check the error by running without saved changes or extra modules (See FAQ No. 13, "How to report a bug"). For unstable Porteus versions (alpha, beta, rc) please use the relevant thread in our "Development" section.
Post Reply
Kriss
Samurai
Samurai
Posts: 133
Joined: 06 Jul 2011, 07:07
Location: Russia

[Solved]from= cheatcode (Porteus 2.0 rc1 x86-64)

Post#1 by Kriss » 04 Jan 2013, 10:07

Merry Christmas and Happy New Year to everybody!

I'm trying to use Porteus 2.0 rc1 x86-64, but without "from_dir=" I'm stuck with "from=" cheatcode.
In one of the examples it's used like this: "from=UUID:STrING-0F-ChARACtERS/path/folder"
but when I'm trying to use it like this: APPEND initrd=initrd.xz lxde from=UUID:3453-412F/boot/2.0-x86_64
or like this: APPEND initrd=initrd.xz from=UUID:"3453-412F"/boot/2.0-x86_64
it says that from= cheatcode is incorrect
I've tried to use
from=boot/2.0-x86_64
from=/boot/2.0-x86_64
from=/dev/disk/by-uuid/3453-412F/boot/2.0-x86_64
with no luck (can't remember exact error messages though)
Am I doing something wrong?

P.S.
3453-412F - first (and only) fat32 partition on USB flash drive
Porteus is located at /boot/2.0-x86_64 instead of /porteus (I don't like additional directories on my USB so I use directories inside /boot )
Last edited by Kriss on 04 Jan 2013, 16:05, edited 1 time in total.
Suggestions/corrections/additions are always welcome.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4588
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: from= cheatcode (Porteus 2.0 rc1 x86-64)

Post#2 by fanthom » 04 Jan 2013, 10:52

hi Kriss,

this should be ok:

Code: Select all

APPEND initrd=initrd.xz lxde from=UUID:3453-412F/boot/2.0-x86_64
make sure /porteus folder is placed inside /boot/2.0-x86_64 folder so the path to .sgn file is:

Code: Select all

/boot/2.0-x86_64/porteus/porteus-v2.0-x86_64.sgn
Cheers
Please add [Solved] to your thread title if the solution was found.

Kriss
Samurai
Samurai
Posts: 133
Joined: 06 Jul 2011, 07:07
Location: Russia

Re: from= cheatcode (Porteus 2.0 rc1 x86-64)

Post#3 by Kriss » 04 Jan 2013, 14:46

Ah. So there's no way to have porteus in "/boot/2.0-x86_64/porteus-v2.0-x86_64.sgn" like it was possible for v1.2?
That's a pity. Thanks for clarification.

Edit: It works with "/boot/2.0-x86_64/porteus/", nevermind.
Last edited by Kriss on 04 Jan 2013, 15:59, edited 1 time in total.
Suggestions/corrections/additions are always welcome.

User avatar
fanthom
Site Admin
Site Admin
Posts: 4588
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: from= cheatcode (Porteus 2.0 rc1 x86-64)

Post#4 by fanthom » 04 Jan 2013, 15:59

So there's no way to have porteus in "/boot/2.0-x86_64/porteus-v2.0-x86_64.sgn" like it was possible for v1.2?
unfortunately not and once again apologize for changing 'from=' cheat between releases.
i promise it's the last time :wink:

reason for the change is that we want cheats to be simple and easy to remember. most of people keep unpacked ISO in a subfolder:

Code: Select all

/mnt/sdb2/porteus-current/boot
/mnt/sdb2/porteus-current/porteus
so with current 'from=' implementation it's enough to type: 'from=porteus-current' while with 'porteus-1.2 syntax' one would have to type 'from=porteus-current/porteus'
I placed everything in "/boot/2.0-x86_64/porteus/" instead of "/boot/2.0-x86_64/" but it didn't help
just checked and everything is ok.
my details:

Code: Select all

root@porteus:/# blkid /dev/sdb7 
/dev/sdb7: UUID="24cd1b54-52e0-4e70-96a2-8a1d2b45daf3" TYPE="ext4"

Code: Select all

root@porteus:/# find /mnt/sdb7/boot/ -name porteus-v2.0-x86_64.sgn 
/mnt/sdb7/boot/2.0-x86_64/porteus/porteus-v2.0-x86_64.sgn

Code: Select all

root@porteus:/# cat /proc/cmdline 
quiet initrd=/boot/initrd-64.xz from=UUID:24cd1b54-52e0-4e70-96a2-8a1d2b45daf3/boot/2.0-x86_64 nocd nomagic lxde  BOOT_IMAGE=/boot/vmlinuz-64

Code: Select all

root@porteus:/# grep -A1 'found in' /var/log/porteus-livedbg 
# Porteus data found in:
/mnt/sdb7/boot/2.0-x86_64/porteus
i'm posting from this setup.
please double check your one.
Please add [Solved] to your thread title if the solution was found.

Kriss
Samurai
Samurai
Posts: 133
Joined: 06 Jul 2011, 07:07
Location: Russia

Re: from= cheatcode (Porteus 2.0 rc1 x86-64)

Post#5 by Kriss » 04 Jan 2013, 16:00

Sorry, I edited my previous post. It works.
When I checked it for the first time, I copied /porteus folder in which I renamed sgn file to make sure it won't boot from there.
As usual, I make stupid mistakes.
unfortunately not and once again apologize for changing 'from=' cheat between releases.
i promise it's the last time :wink:
Please don't mind me, it's always good to have more options than before (though some of them are gone now). :)
I just didn't realize that there should be "porteus" folder after the path in this cheatcode.
Suggestions/corrections/additions are always welcome.

Post Reply