Tiny Core Linux
Tiny Core Base => TCB Talk => Topic started by: b1ackmai1er 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
-
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
-
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 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?
-
In the bootloader config file for the cd, which would be boot/isolinux/isolinux.cfg.
-
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
-
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.
-
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
-
@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.