OS-Portable Installer

This forums is for OS project announcements including project openings, new releases, update notices, test requests, and job openings (both paying and volunteer).
Post Reply
User avatar
Thor
Member
Member
Posts: 51
Joined: Mon Jul 06, 2009 12:55 am
Location: Kamloops, BC, Canada

OS-Portable Installer

Post 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 :)
Last edited by Thor on Fri Aug 21, 2009 9:38 pm, edited 1 time in total.
Vancouver Canucks fan for life
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

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

Post 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.)
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Thor
Member
Member
Posts: 51
Joined: Mon Jul 06, 2009 12:55 am
Location: Kamloops, BC, Canada

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

Post by Thor »

Thanks :D

If you have any suggestions for things like Filesystem support, cusomizeable features, etc. I would appreciate your input.
Vancouver Canucks fan for life
User avatar
xvedejas
Member
Member
Posts: 168
Joined: Thu Jun 04, 2009 5:01 pm

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

Post 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?
User avatar
Thor
Member
Member
Posts: 51
Joined: Mon Jul 06, 2009 12:55 am
Location: Kamloops, BC, Canada

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

Post 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).
Vancouver Canucks fan for life
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

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

Post 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
User avatar
Thor
Member
Member
Posts: 51
Joined: Mon Jul 06, 2009 12:55 am
Location: Kamloops, BC, Canada

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

Post 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!
Vancouver Canucks fan for life
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

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

Post 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)
User avatar
Thor
Member
Member
Posts: 51
Joined: Mon Jul 06, 2009 12:55 am
Location: Kamloops, BC, Canada

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

Post 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 :)
Vancouver Canucks fan for life
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

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

Post 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 :)
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
Thor
Member
Member
Posts: 51
Joined: Mon Jul 06, 2009 12:55 am
Location: Kamloops, BC, Canada

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

Post 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.
Vancouver Canucks fan for life
User avatar
Troy Martin
Member
Member
Posts: 1686
Joined: Fri Apr 18, 2008 4:40 pm
Location: Langley, Vancouver, BC, Canada
Contact:

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

Post by Troy Martin »

There should be a companion bootloader to this. Sort of like GRUB on banned substances.

That would be awesome.
Image
Image
Solar wrote:It keeps stunning me how friendly we - as a community - are towards people who start programming "their first OS" who don't even have a solid understanding of pointers, their compiler, or how a OS is structured.
I wish I could add more tex
User avatar
Thor
Member
Member
Posts: 51
Joined: Mon Jul 06, 2009 12:55 am
Location: Kamloops, BC, Canada

Re: OS-Portable Installer

Post 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
Vancouver Canucks fan for life
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Re: OS-Portable Installer

Post 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)
PatrickV
Member
Member
Posts: 151
Joined: Sun Jul 06, 2008 7:50 pm
Location: New Zealand
Contact:

Re: OS-Portable Installer

Post 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.
Post Reply