|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
installboot program as script
Hello,
I will brief the reason why I have written a minimal script that does the same work as the program installboot(8) (at least what I needed). I had compiled the boot(8) for i386, and I was wondering how to test it, but I did not brave enough for testing in the hard disk of my computer (though I used before installboot because I erased /boot once, but this was another story). So I decided to create a new partition and new file system at a flash memory, after that /boot (new program compiled) was copied at new flash memory file system. I thought that the next step will be easy, just use installboot program, but I did not manage to modify the values that installboot changes to biosboot, because the file system is not the same as the installed system. After that, I created an script to do it "manually". Of course, I have get the offset of the variables from my biosboot, and maybe in other computer could be different. Anyway, I think sharing the script is profitable. The script can be found at https://github.com/jbgg/installboot2. I think this is useful for the community. Thank you for reading. All suggestion are welcome. |
|
|||
Thank you for your answer. I forget "-r /mnt" because the disk only had one partition.
I have tested and it works fine. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
First program in C | Daffy | Programming | 11 | 24th November 2011 03:29 PM |
How to learn to program under BSD? | Sunnz | Programming | 5 | 24th December 2008 11:45 PM |
Learning how to program | Solaris_Delta | Programming | 9 | 24th December 2008 07:58 PM |
run linux's program | johnzlly | OpenBSD General | 38 | 8th November 2008 12:10 PM |
Executing a c program | Libran | Programming | 13 | 12th August 2008 11:42 PM |