WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: default boot commands  (Read 2601 times)

Offline b1ackmai1er

  • Jr. Member
  • **
  • Posts: 95
default boot commands
« on: January 20, 2011, 06:34:45 AM »
Hi,

For quick remaster with custom boot commands how about using the boot label to store the boot command.

TC could check the label for a command and run it automatically after the boot command line times out.

regards b1ackmai1er



Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: default boot commands
« Reply #1 on: January 20, 2011, 08:03:22 AM »
hi, can you explain this a bit more - what is the boot label? where is it stored?
where are the folders and files?

Thank you so much
t(w)o be(ers) or not t(w)o be(ers) that is the question

Online curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: default boot commands
« Reply #2 on: January 20, 2011, 10:20:38 AM »
The label is not passed to TC, it's handled entirely by the bootloader. But if you want to have different bootcode sets, using labels is a good way to do that.

Edit: or did you mean alternative init scripts? The kernel has bootcode(s) for that.
The only barriers that can stop you are the ones you create yourself.

Offline beerstein

  • Hero Member
  • *****
  • Posts: 530
Re: default boot commands
« Reply #3 on: January 20, 2011, 12:03:31 PM »
The label is not passed to TC, it's handled entirely by the bootloader. But if you want to have different bootcode sets, using labels is a good way to do that.

Edit: or did you mean alternative init scripts? The kernel has bootcode(s) for that.

Edit: Thank you for the response Sorry I do not understand what you mean
When I want to remaster, I would like to have the boot code (f. i. wait usb or so) in my
remastered iso. So where do I insert that boot code before remastering?
t(w)o be(ers) or not t(w)o be(ers) that is the question

Online curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: default boot commands
« Reply #4 on: January 20, 2011, 12:41:45 PM »
In the bootloader config file for the cd, which would be boot/isolinux/isolinux.cfg.
The only barriers that can stop you are the ones you create yourself.

Offline b1ackmai1er

  • Jr. Member
  • **
  • Posts: 95
Re: default boot commands
« Reply #5 on: January 21, 2011, 08:26:53 AM »
A cdrom can have 32 character disk label which can be displayed using:

dd if=/dev/sr0 bs=1 skip=32808 count=32


What I am suggesting that when the system boots and waits for the optional boot command, that on expiration of that timeout it reads the text from the label field and uses this as the boot command.
 
The advantage of this is that burning tools such as imgburn can easily change the label text without having to do anything else with the iso.

So I could download latest TC iso. Start imageburn, change label to say "VGA=775" and then immediately burn iso to disk. Now disk will boot and use this boot command if another is not entered.

If this is outside scope of TC I would be interested in suggesting this to the developers of the boot code. Could anyone tell me who that is ?

Thanks



Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: default boot commands
« Reply #6 on: January 21, 2011, 10:43:15 AM »
What would be the point.
The boot loader can have a default boot entry. It doesn't need to read a disk label to pick one.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: default boot commands
« Reply #7 on: January 21, 2011, 01:17:50 PM »
Sounds more like a case of what rdev had implemented within the kernel since a long time - not even sure if that would still be supported as of now:
http://linux.die.net/man/8/rdev

Anyway, if you really want to contact the developers of syslinux (incl. isolinux):
http://syslinux.zytor.com/wiki/index.php/Contact
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline b1ackmai1er

  • Jr. Member
  • **
  • Posts: 95
Re: default boot commands
« Reply #8 on: January 21, 2011, 09:43:18 PM »
@tinypoodle

Thanks I will suggest this to the syslinux developers.

I know this can be achieved in other ways but all the other solutions require getting down to file level whereas the idea behind this is that you do not even have to boot the disk to set this up. Changing the default boot instruction becomes a point and click operation.