Page 1 of 1

OS-Portable Installer

Posted: Fri Aug 21, 2009 4:06 pm
by Thor
I recently completed a beta version of my operating system's installer (Bootable floppy that installs the OS to the hard drive) and I'm thinking that it would be possible to modify it so that it can be used by almost any operating system.

But before I commit the time to doing so, I would like to hear from people if there would be any interest in such a tool. What do you guys think? I've provided some screenshots so you can see what it's like.

Image
The Installer Start Screen

Image
Partition Select Menu

Image
Installing Files... (No progress bar yet :()

Feel free to comment or ask questions. If there's interest, I'll start working on it :D

Edit: Work has begun! Changed topic :)

Re: OS-Portable Installer - Is there any interest?

Posted: Fri Aug 21, 2009 4:12 pm
by Alboin
That's probably one of the better ideas I've read on these forums. If it were as customizable as GRUB, for instance, another osdeving tool used by much of the community, I can see your installer as being a counterpart to it.

To note, however, I have for use for it at the moment. (My osdev work has been *slow* in the last months.)

Re: OS-Portable Installer - Is there any interest?

Posted: Fri Aug 21, 2009 4:21 pm
by Thor
Thanks :D

If you have any suggestions for things like Filesystem support, cusomizeable features, etc. I would appreciate your input.

Re: OS-Portable Installer - Is there any interest?

Posted: Fri Aug 21, 2009 4:39 pm
by xvedejas
Grub itself already has lots of support for various filesystems, I wonder how practical it would be to build your tool on top of grub?

Re: OS-Portable Installer - Is there any interest?

Posted: Fri Aug 21, 2009 4:51 pm
by Thor
xvedejas wrote:Grub itself already has lots of support for various filesystems, I wonder how practical it would be to build your tool on top of grub?
Meh, not very. It uses its own custom bootloader, and the installer itself runs in 32-bit protected mode. It can only boot from a FAT12 floppy right now, but I was more meaning filesystems used by the Operating System being installed.

However, the MBR and Bootloader files to be written to the HDD can be customized, so there's nothing stopping the installed OS from using GRUB.

GRUB would actually be a good default bootloader to be installed (if no custom one is specified).

Re: OS-Portable Installer - Is there any interest?

Posted: Fri Aug 21, 2009 5:32 pm
by earlz
I say its a neat idea, but I see a few problems with it.

1. Filesystems. A lot of us OS devers also like to be FS designers while we are at it. How would we use your installer with a custom filesystem?

2. Install-time scripts. Many OSs need for certain things to be set a certain way at installation time. How would you accommodate for this? (please don't say an installer scripting language. That is very limited)

other than that. It really sounds like a good idea if it can be implemented right

Re: OS-Portable Installer - Is there any interest?

Posted: Fri Aug 21, 2009 7:30 pm
by Thor
earlz wrote: 1. Filesystems. A lot of us OS devers also like to be FS designers while we are at it. How would we use your installer with a custom filesystem?

2. Install-time scripts. Many OSs need for certain things to be set a certain way at installation time. How would you accommodate for this? (please don't say an installer scripting language. That is very limited)
Good points. I suppose the 2nd could be accomplished through modules making use of the installer's standard library, but even that is rather limiting.

I suppose the best way would be for an OS to have a kind of "Stage 2 Installer" that is only loaded on first boot - ie, it doesn't actually install anything, but simply sets it up. But of course we're talking about a way to fix it with the installer. :P

As for custom filesystems, it would be possible to also do so through a module loaded by the installer...

Anyways, I have decided that I will go through with the project, so I'll try to keep you guys updated on what's happening with it :)

Wish me luck!

Re: OS-Portable Installer - Is there any interest?

Posted: Fri Aug 21, 2009 8:09 pm
by earlz
good luck and be sure to create a decent design before starting.. (contrary to popular belief, things don't just fall into place as you start implementing)

Re: OS-Portable Installer - Is there any interest?

Posted: Fri Aug 21, 2009 8:27 pm
by Thor
Yeah, I do already have a working version complete but it only works for my OS. I am rewriting quite a bit of it for this project though :)

Re: OS-Portable Installer - Is there any interest?

Posted: Fri Aug 21, 2009 8:39 pm
by Troy Martin
I'd use something that could install my OS to a hard drive.. provided it can install GRUB Legacy too. At one point I was trying to figure out how to use GRUB's menu to install itself, my kernel, and my kernel's support files to the hard drive, but I gave up on that, hehe.

As long as it supports at least FAT, I'm in :)

Re: OS-Portable Installer - Is there any interest?

Posted: Fri Aug 21, 2009 9:03 pm
by Thor
It can install whatever you want it to :)

I have a basic config file, which allows you to provide a list of files to be copied as well as an MBR and bootsector, and OS Name. The bootsector is installed to the start of the partition being installed to, and files are installed to the partition using the appropriate FS driver. So you could specify the bootsector as GRUB and include the second stage in the files list, and there you are :).

I'm planning on adding support for modules which will be executed after files are copied once I'm done the restructuring / updating phase.

Re: OS-Portable Installer - Is there any interest?

Posted: Fri Aug 21, 2009 9:22 pm
by Troy Martin
There should be a companion bootloader to this. Sort of like GRUB on banned substances.

That would be awesome.

Re: OS-Portable Installer

Posted: Sat Aug 22, 2009 1:14 am
by Thor
Working on bugfixes, restructuring, and general updating right now... hopefully I should have something for you guys to test within a few days or so :D

Re: OS-Portable Installer

Posted: Sat Aug 22, 2009 9:18 am
by earlz
How would it handle such things as "install_boot" on OpenBSD for writing it's boot loader onto disk. It first writes the first stage bootloader, and then the second stage it put in boot (iirc) in a special disk location so that it can be found easily? (using FFS)

Re: OS-Portable Installer

Posted: Sat Nov 14, 2009 7:34 pm
by PatrickV
This installer is a good idea, most people are confined to virtual floppy disks. I think this is a great tool. By the way how is going with it has been 2 months since you lasted posted.