Page 1 of 1

Self-starting Persistent ??

Posted: 22. Oct 2017, 02:20
by Atip
I have placed the persistent option on top as the first boot option
in order to avoid the mistake of pressing Enter to boot non-persistent
and then having to reboot to get into persistent.

How can I make now persistent to self-start without me pressing Enter?

Code: Select all

menu_en.cfg

DEFAULT vesamenu.c32
F2 relinfo.msg
MENU BACKGROUND salix.png
PROMPT 0
TIMEOUT 300
MENU color border	30;44      #00000000 #00000000 none
MENU TIMEOUTROW 24
MENU TABMSGROW 2
MENU CMDLINEROW 26
MENU TABMSG Press [Tab] to edit bootparameters, <F2> for info

LABEL -
	MENU LABEL
	MENU DISABLE

label salix + persistent
MENU LABEL ^Salix Live [persistent]
MENU DEAULT
kernel /boot/vmlinuz
append initrd=/boot/initrd.gz max_loop=255 vga=791 locale=en_US.utf8 keymap=us useswap=yes copy2ram=no tz=Asia/Manila hwc=localtime runlevel=4 changes=persistent

label salix
MENU LABEL ^Salix Live
# MENU DEFAULT
kernel /boot/vmlinuz
append initrd=/boot/initrd.gz max_loop=255 vga=791 locale=en_US.utf8 keymap=us useswap=yes copy2ram=no tz=Asia/Manila hwc=localtime runlevel=4

....snip....

Re: Self-starting Persistent ??

Posted: 22. Oct 2017, 06:29
by elcore
Try this:

Code: Select all

PROMPT 0
TIMEOUT 1
ONTIMEOUT salix

LABEL salix
KERNEL /boot/vmlinuz
APPEND initrd=/boot/initrd.gz max_loop=255 vga=791 locale=en_US.utf8 keymap=us useswap=yes copy2ram=no tz=Asia/Manila hwc=localtime runlevel=4 changes=persistent

Re: Self-starting Persistent ??

Posted: 23. Oct 2017, 03:13
by Atip
Thanks!

Does not work. :(

Re: Self-starting Persistent ??

Posted: 23. Oct 2017, 05:47
by djemos
Edit mainmenu.cfg and change TIMEOUT 300 to TIMEOUT 1
Edit menu_en.cfg and change TIMEOUT 300 to TIMEOUT 1

Re: Self-starting Persistent ??

Posted: 24. Oct 2017, 06:08
by elcore
Works fine here, (USB syslinux on FAT, BIOS, MBR)

Re: Self-starting Persistent ??

Posted: 24. Oct 2017, 08:04
by Atip
djemos wrote:Edit mainmenu.cfg and change TIMEOUT 300 to TIMEOUT 1
Edit menu_en.cfg and change TIMEOUT 300 to TIMEOUT 1
Thanks!
Yes, now it goes straight to salix + persistent, however, there it sits and will
not start to boot w/o me pressing Enter. That is what I like it to do self-start booting.

Re: Self-starting Persistent ??

Posted: 24. Oct 2017, 11:18
by djemos
Default menu is menu_en.cfg. Did you edit menu_en.cfg also to change to TIMEOUT 1 ? Did you change anything else ? Or edit a different menu ? If you look at mainmenu.cfg there is LABEL othermenu3 where there is the line MENU DEFAULT.

Code: Select all

MENU LABEL ^English (US)
	MENU DEFAULT
	KERNEL vesamenu.c32
	APPEND /boot/menus/menu_en.cfg
It has to go straight to boot into persistent. No need to type enter at all. I have tested before write the message.
So just edit all menus and change TIMEOUT 300 to TIMEOUT 1
You change something and boot a different menu.
Also if you have create an encrypted peristent file then you have to type the code and press enter. If so just create an unecrypted persistent file.

Re: Self-starting Persistent ??

Posted: 29. Oct 2017, 02:32
by Atip
Can't make it work.
It's OK, not so urgent anymore since my PC decided to detect my HDs again.